#ifndef MY_GRAPHICS_DEFS #include #include #define BLACK 0 #define WHITE 1 typedef struct { GC gc; Widget db; Display * disp; int xmax,ymax; XImage * the_screen; unsigned long fg,bg; } environment; typedef struct { int x,y; } point ; typedef struct { point e1, e2; } line; #define MY_GRAPHICS_DEFS #endif