summaryrefslogtreecommitdiffstats
path: root/src/xmalloc.c
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-04-03 16:32:04 -0300
committermongo <andmarti@gmail.com>2017-04-03 16:32:04 -0300
commit451d00fc159a9811f036994a39d2c8646d01e7ee (patch)
treeb3c6588b79d444578ef5bc668562be5f0db40c39 /src/xmalloc.c
parente829f116491fa441452cbc77cb52e1a511fb13ba (diff)
cleaning code. removing unneeded/comments lines. starting to isolate UI code
Diffstat (limited to 'src/xmalloc.c')
-rw-r--r--src/xmalloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xmalloc.c b/src/xmalloc.c
index 3d15e1f..858accb 100644
--- a/src/xmalloc.c
+++ b/src/xmalloc.c
@@ -1,16 +1,16 @@
-#include <ncurses.h>
#include <stdlib.h>
+
#include "sc.h"
#include "xmalloc.h"
#include "macros.h"
#include "color.h"
#include "conf.h"
-extern void free();
-extern void exit();
-
#define MAGIC ((double) 1234567890.12344)
+extern void free();
+extern int shall_quit;
+
char * scxmalloc(unsigned n) {
//register char *ptr;
//if ((ptr = malloc(n + sizeof(double))) == NULL) fatal("scxmalloc: no memory");
@@ -50,6 +50,6 @@ void scxfree(char *p) {
void fatal(char * str) {
//fprintf(stderr,"%s\n", str);
- //exit(1);
sc_error("%s", str);
+ shall_quit = 2;
}