an int.
Compatible with other versions of curses.
-/* $NetBSD: fly.c,v 1.6 1997/10/11 02:07:20 lukem Exp $ */
+/* $NetBSD: fly.c,v 1.7 1999/04/18 03:30:12 simonb Exp $ */
/*
* Copyright (c) 1983, 1993
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95";
#else
#if 0
static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: fly.c,v 1.6 1997/10/11 02:07:20 lukem Exp $");
+__RCSID("$NetBSD: fly.c,v 1.7 1999/04/18 03:30:12 simonb Exp $");
#endif
#endif /* not lint */
#endif
#endif /* not lint */
visual()
{
destroyed = 0;
visual()
{
destroyed = 0;
- if (initscr() == ERR) {
+ if (initscr() == NULL) {
puts("Whoops! No more memory...");
return (0);
}
puts("Whoops! No more memory...");
return (0);
}
-/* $NetBSD: player.h,v 1.6 1998/03/29 04:57:20 mrg Exp $ */
+/* $NetBSD: player.h,v 1.7 1999/04/18 03:30:12 simonb Exp $ */
/*
* Copyright (c) 1983, 1993
/*
* Copyright (c) 1983, 1993
#define SLOT_R (SLOT_L+SLOT_X-1)
#ifdef SIGTSTP
#define SLOT_R (SLOT_L+SLOT_X-1)
#ifdef SIGTSTP
-#define SCREENTEST() (initscr() != ERR && signal(SIGTSTP, SIG_DFL) != SIG_ERR && STAT_R < COLS && SCROLL_Y > 0)
+#define SCREENTEST() (initscr() != NULL && signal(SIGTSTP, SIG_DFL) != SIG_ERR && STAT_R < COLS && SCROLL_Y > 0)
-#define SCREENTEST() (initscr() != ERR && STAT_R < COLS && SCROLL_Y > 0)
+#define SCREENTEST() (initscr() != NULL && STAT_R < COLS && SCROLL_Y > 0)