[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?).
- [Emacs-diffs] branch concurrency-libtask created (now cc11c5a), Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask 4b160e6 5/6: Remove wrong assertion, Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask 150bbf2 3/6: Support for Windows fibers, Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask cc11c5a 6/6: Transfer signals to main coroutine, Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask b9d1f96 1/6: Clarify the behavior of minor mode commands, Philipp Stephani, 2016/10/25
- [Emacs-diffs] concurrency-libtask c349c4d4 4/6: malloc is redefined by config.h,
Philipp Stephani <=
- [Emacs-diffs] concurrency-libtask 133208f 2/6: WIP: CSP based on libtask, Philipp Stephani, 2016/10/25