emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] concurrency-libtask c349c4d4 4/6: malloc is redefined by c


From: Philipp Stephani
Subject: [Emacs-diffs] concurrency-libtask c349c4d4 4/6: malloc is redefined by config.h
Date: Tue, 25 Oct 2016 23:25:28 +0000 (UTC)

branch: concurrency-libtask
commit c349c4d4dc68a8620b351dbd79a3c730f5694426
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>

    malloc is redefined by config.h
    
    But we need to define emacs as preprocessor symbol, not just EMACS.
---
 lib/libtask/taskimpl.h |   10 ----------
 src/Makefile.in        |    2 +-
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/lib/libtask/taskimpl.h b/lib/libtask/taskimpl.h
index 2b1dd8f..2b1e31c 100644
--- a/lib/libtask/taskimpl.h
+++ b/lib/libtask/taskimpl.h
@@ -212,13 +212,3 @@ void       deltask(Tasklist*, Task*);
 
 extern Task    *taskrunning;
 extern int     taskcount;
-
-
-#ifdef EMACS
-#define malloc unexec_malloc
-#define realloc unexec_realloc
-#define free unexec_free
-void *unexec_malloc (size_t size);
-void *unexec_realloc (void *old_ptr, size_t new_size);
-void unexec_free (void *ptr);
-#endif
diff --git a/src/Makefile.in b/src/Makefile.in
index aa2db11..3570316 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -611,7 +611,7 @@ libtask = \
 $(libtask): $(lib)/libtask/*.h
 
 $(lib)/libtask/%.o: $(lib)/libtask/%.c $(lib)/libtask/*.h lisp.h config.h 
globals.h
-       $(AM_V_CC)$(CC) -c -DEMACS -I. -I$(lib) $(CPPFLAGS) $(CFLAGS) -o $@ $<
+       $(AM_V_CC)$(CC) -c -DEMACS -Demacs -I. -I$(lib) $(CPPFLAGS) $(CFLAGS) 
-o $@ $<
 
 ## We have to create $(etc) here because init_cmdargs tests its
 ## existence when setting Vinstallation_directory (FIXME?).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]