X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/51c29cb74069758cf13b97bb7e17b1c2485281f9..84d25b7fc1866e662d07f1e5d4b17f13c8547fc9:/dab/main.cc diff --git a/dab/main.cc b/dab/main.cc index 399aa83f..97d93eaa 100644 --- a/dab/main.cc +++ b/dab/main.cc @@ -1,4 +1,4 @@ -/* $NetBSD: main.cc,v 1.2 2003/12/28 17:53:48 thorpej Exp $ */ +/* $NetBSD: main.cc,v 1.5 2008/04/28 20:22:54 martin Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -15,13 +15,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the NetBSD - * Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED @@ -40,9 +33,9 @@ * main.C: Main dots program */ #include "defs.h" -RCSID("$NetBSD: main.cc,v 1.2 2003/12/28 17:53:48 thorpej Exp $") +RCSID("$NetBSD: main.cc,v 1.5 2008/04/28 20:22:54 martin Exp $") -#include +#include #include #include #include @@ -52,6 +45,8 @@ RCSID("$NetBSD: main.cc,v 1.2 2003/12/28 17:53:48 thorpej Exp $") #include "human.h" #include "ttyscrn.h" +GAMESCREEN *sc; + // Print the command line usage static void usage(char* pname) { @@ -60,8 +55,8 @@ static void usage(char* pname) p++; else p = pname; - std::cerr << "Usage: " << p - << " [-w] [-p ] [-n ] [ []]" << std::endl; + (void)::fprintf(stderr, + "Usage: %s [-w] [-p ] [-n ] [ []]\n", p); } // Play a single game @@ -173,7 +168,7 @@ int main(int argc, char** argv) } } - GAMESCREEN *sc = TTYSCRN::create(acs, ny, nx); + sc = TTYSCRN::create(acs, ny, nx); if (sc == NULL) ::errx(1, "Dimensions too large for current screen.");