diff options
| -rw-r--r-- | dmenu.h | 18 |
1 files changed, 9 insertions, 9 deletions
| @@ -29,16 +29,16 @@ typedef struct { | |||
| 29 | } font; | 29 | } font; |
| 30 | } DC; /* draw context */ | 30 | } DC; /* draw context */ |
| 31 | 31 | ||
| 32 | extern int screen; | 32 | int screen; |
| 33 | extern Display *dpy; | 33 | Display *dpy; |
| 34 | extern DC dc; /* global drawing context */ | 34 | DC dc; /* global drawing context */ |
| 35 | 35 | ||
| 36 | /* draw.c */ | 36 | /* draw.c */ |
| 37 | extern void drawtext(const char *text, unsigned long col[ColLast]); | 37 | void drawtext(const char *text, unsigned long col[ColLast]); |
| 38 | extern unsigned int textw(const char *text); | 38 | unsigned int textw(const char *text); |
| 39 | extern unsigned int textnw(const char *text, unsigned int len); | 39 | unsigned int textnw(const char *text, unsigned int len); |
| 40 | 40 | ||
| 41 | /* util.c */ | 41 | /* util.c */ |
| 42 | extern void *emalloc(unsigned int size); /* allocates memory, exits on error */ | 42 | void *emalloc(unsigned int size); /* allocates memory, exits on error */ |
| 43 | extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ | 43 | void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ |
| 44 | extern char *estrdup(const char *str); /* duplicates str, exits on allocation error */ | 44 | char *estrdup(const char *str); /* duplicates str, exits on allocation error */ |
