bla bla bla

SVN revision: 3712
This commit is contained in:
Tom Gilbert 2000-10-25 11:48:43 +00:00
parent 3974364a5b
commit d0e6540f88
3 changed files with 8 additions and 2 deletions

View File

@ -2,6 +2,9 @@
#include "e_ev_x.h"
#include "e_mem.h"
#include "e_util.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* private funtion prototypes */
static void e_ev_x_handle_events(int fd);

View File

@ -5,6 +5,9 @@
#include "e_ev_signal.h"
#include <Edb.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* glocal (yes global/local) variabels for events */
Ev_Fd_Handler *fd_handlers = NULL;
@ -248,7 +251,7 @@ e_event_loop(void)
/* error */
if ((errno == ENOMEM) || (errno == EINVAL) || (errno == EBADF))
{
fprintf(stderr, "EEEEEEEEEEEEEEEEEEEEK\n");
fprintf(stderr, "Lost connection to X display.\n");
exit(1);
}
}

View File

@ -9,7 +9,7 @@
#define NEW(dat, num) malloc(sizeof(dat) * (num))
#define NEW_PTR(num) malloc(sizeof(void *) * (num))
#define FREE(dat) {if (dat) {free(dat); dat = NULL;} else {printf("eek - NULL free\n");sleep(30);}}
#define FREE(dat) {free(dat); dat = NULL;}
#define IF_FREE(dat) {if (dat) FREE(dat);}
#define REALLOC(dat, type, num) {if (dat) dat = realloc(dat, sizeof(type) * (num)); else dat = malloc(sizeof(type) * (num));}
#define REALLOC_PTR(dat, num) {if (dat) dat = realloc(dat, sizeof(void *) * (num)); else dat = malloc(sizeof(void *) * (num));}