diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 09:42:48 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 21:44:35 -0700 |
commit | 80ac8c6d04c04ec1f892883397507f32292ae590 (patch) | |
tree | 4133191d4c63cd27315491b6f82028cf3efca134 /scope.h | |
parent | 245871145e6a12739ed8d4512b5e2cb6b1a1721c (diff) | |
download | xscope-80ac8c6d04c04ec1f892883397507f32292ae590.tar.gz |
Ansify prototypes and move extern declarations to header files
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'scope.h')
-rw-r--r-- | scope.h | 26 |
1 files changed, 11 insertions, 15 deletions
@@ -56,6 +56,8 @@ #include <X11/Xos.h> #include <X11/Xfuncs.h> #include <stdio.h> +#include <stdlib.h> +#include <string.h> #include <netdb.h> #ifdef SVR4 #include <sys/filio.h> @@ -94,23 +96,9 @@ extern char *ScopeHost; extern int Interrupt, SingleStep, BreakPoint; -extern void ReadCommands (); - extern char ServerHostName[MAXHOSTNAMELEN]; extern char AudioServerHostName[MAXHOSTNAMELEN]; -/* external function type declarations */ - -extern void *Malloc (long n); -#ifdef X_NOT_STDC_ENV -extern char *strcpy(); -extern char *sprintf(); -#else -#include <stdlib.h> -#include <string.h> -#endif -extern char *ClientName(); - /* ********************************************** */ /* */ /* ********************************************** */ @@ -125,7 +113,7 @@ struct fdinfo Boolean Server; long ClientNumber; FD pair; - char buffer[BUFFER_SIZE]; + unsigned char buffer[BUFFER_SIZE]; int bufcount; int bufstart; int buflimit; /* limited writes */ @@ -134,3 +122,11 @@ struct fdinfo }; extern struct fdinfo FDinfo[StaticMaxFD]; +extern int littleEndian; +extern char HandleSIGUSR1; +extern char Leader[]; +extern long ServerBasePort; +extern char ScopeEnabled; +extern long TranslateText; + + |