From 28c8159745754e1bd577797c2ef0d0bebded8299 Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Fri, 14 Nov 2003 16:49:23 +0000 Subject: XFree86 4.3.0.1 --- dsimple.h | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) (limited to 'dsimple.h') diff --git a/dsimple.h b/dsimple.h index a634848..a11cae7 100644 --- a/dsimple.h +++ b/dsimple.h @@ -26,6 +26,7 @@ other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/programs/xlsfonts/dsimple.h,v 1.8 2002/12/24 17:43:01 tsi Exp $ */ /* * Just_display.h: This file contains the definitions needed to use the @@ -40,16 +41,28 @@ from The Open Group. /* Global variables used by routines in just_display.c */ -char *program_name = "unknown_program"; /* Name of this program */ -Display *dpy; /* The current display */ -int screen; /* The current screen */ +extern char *program_name; /* Name of this program */ +extern Display *dpy; /* The current display */ +extern int screen; /* The current screen */ #define INIT_NAME program_name=argv[0] /* use this in main to setup program_name */ /* Declaritions for functions in just_display.c */ -void Fatal_Error(); +#if NeedFunctionPrototypes +char *Malloc(unsigned); +char *Realloc(char *, int); +char *Get_Display_Name(int *, char **); +Display *Open_Display(char *); +void Setup_Display_And_Screen(int *, char **); +XFontStruct *Open_Font(char *); +void Beep(void); +Pixmap ReadBitmapFile(Drawable, char *, int *, int *, int *, int *); +void WriteBitmapFile(char *, Pixmap, int, int, int, int); +Window Select_Window_Args(int *, char **); +void usage(void); +#else char *Malloc(); char *Realloc(); char *Get_Display_Name(); @@ -60,10 +73,11 @@ void Beep(); Pixmap ReadBitmapFile(); void WriteBitmapFile(); Window Select_Window_Args(); +void usage(); +#endif #define X_USAGE "[host:display]" /* X arguments handled by Get_Display_Name */ -#define SELECT_USAGE "[{-root|-id |-font |-name }]" /* * Other_stuff.h: Definitions of routines in other_stuff. @@ -73,9 +87,22 @@ Window Select_Window_Args(); * Send bugs, etc. to chariot@athena.mit.edu. */ +#if NeedFunctionPrototypes +unsigned long Resolve_Color(Window, char *); +Pixmap Bitmap_To_Pixmap(Display *, Drawable, GC, Pixmap, int, int); +Window Select_Window(Display *); +void blip(void); +Window Window_With_Name(Display *, Window, char *); +#else unsigned long Resolve_Color(); Pixmap Bitmap_To_Pixmap(); Window Select_Window(); -void out(); void blip(); Window Window_With_Name(); +#endif +#ifdef __GNUC__ +void Fatal_Error(char *, ...) __attribute__((__noreturn__)); +#else +void Fatal_Error(char *, ...); +#endif +void outl(char *, ...); -- cgit v1.2.3