1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/*
* Globally accessible information from xgraph
*/
#ifndef _XGRAPH_H_
#define _XGRAPH_H_
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <X11/Xresource.h>
#define VERSION_STRING "11.3.2 December 1989"
#define MAXKEYS 50
#define MAXATTR 8
#define MAXSETS 64
#define MAXBUFSIZE 120
#define MAXLS 50
#define STRDUP(xx) (strcpy(malloc((unsigned) (strlen(xx)+1)), (xx)))
typedef unsigned long Pixel;
/* Globally accessible values */
extern Display *disp; /* Open display */
extern Visual *vis; /* Standard visual */
extern Colormap cmap; /* Standard colormap */
extern int screen; /* Screen number */
extern int depth; /* Depth of screen */
extern void do_hardcopy(); /* Carries out hardcopy */
extern void ho_dialog(); /* Hardcopy dialog */
extern void set_X(); /* Initializes X device */
#if 0
/* To make lint happy */
extern char *malloc();
extern char *realloc();
extern char *sprintf();
extern char *strcpy();
extern char *strcat();
extern char *rindex();
extern char *index();
extern void exit();
extern void free();
extern double atof();
#endif
extern void abort();
#endif /* _XGRAPH_H_ */
|