-/* xscreensaver, Copyright (c) 1993 Jamie Zawinski <jwz@mcom.com>
+/* xscreensaver, Copyright (c) 1993-1996 Jamie Zawinski <jwz@netscape.com>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* implied warranty.
*/
-#ifdef VMS
-#include "config.h"
-#endif /* VMS */
-
#if __STDC__
# include <stdlib.h>
# include <unistd.h>
#endif
+#include <stdio.h>
+
#if __STDC__
# define P(x)x
#else
#ifdef NO_MOTIF
# define NO_DEMO_MODE
+
+ /* #### If anyone ever finishes the Athena locking code, remove this.
+ Until then, Locking requires Motif. */
# ifndef NO_LOCKING
# define NO_LOCKING
# endif
+
#endif
extern char *progname, *progclass;
extern Bool verbose_p;
+extern FILE *real_stderr;
+extern FILE *real_stdout;
+
extern void initialize_screensaver_window P((void));
extern void raise_window P((Bool inhibit_fade, Bool between_hacks_p));
extern void blank_screen P((void));
extern void kill_screenhack P((void));
extern Colormap copy_colormap P((Display *, Colormap, Colormap));
-extern void fade_colormap P((Display*, Colormap, Colormap, int, int, Bool));
+extern void fade_colormap P((Display*,Colormap,Colormap,int,int,Bool,Bool));
extern void blacken_colormap P((Display *, Colormap));
extern int BadWindow_ehandler P((Display *dpy, XErrorEvent *error));
+
+extern char *timestring P((void));
+extern Bool window_exists_p P((Display *dpy, Window window));