From a795b1932780503cf5422920975a1c38994c7581 Mon Sep 17 00:00:00 2001 From: Yinan Zhang Date: Wed, 17 Jun 2020 16:15:06 -0700 Subject: [PATCH] Remove beginning define in source files ``` sed -i "/^#define JEMALLOC_[A-Z_]*_C_$/d" src/*.c; ``` --- src/arena.c | 1 - src/background_thread.c | 1 - src/base.c | 1 - src/bitmap.c | 1 - src/buf_writer.c | 1 - src/ckh.c | 1 - src/counter.c | 1 - src/ctl.c | 1 - src/extent_dss.c | 1 - src/extent_mmap.c | 1 - src/hash.c | 1 - src/large.c | 1 - src/malloc_io.c | 1 - src/mutex.c | 1 - src/mutex_pool.c | 1 - src/pages.c | 1 - src/prng.c | 1 - src/prof.c | 1 - src/prof_data.c | 1 - src/prof_log.c | 1 - src/prof_recent.c | 1 - src/rtree.c | 1 - src/stats.c | 1 - src/tcache.c | 1 - src/thread_event.c | 1 - src/ticker.c | 1 - src/tsd.c | 1 - src/witness.c | 1 - 28 files changed, 28 deletions(-) diff --git a/src/arena.c b/src/arena.c index b61d373b..2a3af5c6 100644 --- a/src/arena.c +++ b/src/arena.c @@ -1,4 +1,3 @@ -#define JEMALLOC_ARENA_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/background_thread.c b/src/background_thread.c index 6b680530..db11405e 100644 --- a/src/background_thread.c +++ b/src/background_thread.c @@ -1,4 +1,3 @@ -#define JEMALLOC_BACKGROUND_THREAD_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/base.c b/src/base.c index ebb42da5..d3732bab 100644 --- a/src/base.c +++ b/src/base.c @@ -1,4 +1,3 @@ -#define JEMALLOC_BASE_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/bitmap.c b/src/bitmap.c index 468b3178..0ccedc5d 100644 --- a/src/bitmap.c +++ b/src/bitmap.c @@ -1,4 +1,3 @@ -#define JEMALLOC_BITMAP_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/buf_writer.c b/src/buf_writer.c index 06a2735b..7c6f7940 100644 --- a/src/buf_writer.c +++ b/src/buf_writer.c @@ -1,4 +1,3 @@ -#define JEMALLOC_BUF_WRITER_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/ckh.c b/src/ckh.c index 1bf6df5a..9441fbad 100644 --- a/src/ckh.c +++ b/src/ckh.c @@ -34,7 +34,6 @@ * respectively. * ******************************************************************************/ -#define JEMALLOC_CKH_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/ckh.h" diff --git a/src/counter.c b/src/counter.c index 71eda69f..8f1ae3af 100644 --- a/src/counter.c +++ b/src/counter.c @@ -1,4 +1,3 @@ -#define JEMALLOC_COUNTER_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/ctl.c b/src/ctl.c index 24d9eb34..24c959c4 100644 --- a/src/ctl.c +++ b/src/ctl.c @@ -1,4 +1,3 @@ -#define JEMALLOC_CTL_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/extent_dss.c b/src/extent_dss.c index 17a08227..81161b3a 100644 --- a/src/extent_dss.c +++ b/src/extent_dss.c @@ -1,4 +1,3 @@ -#define JEMALLOC_EXTENT_DSS_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/extent_mmap.c b/src/extent_mmap.c index 17fd1c8f..5f0ee2d2 100644 --- a/src/extent_mmap.c +++ b/src/extent_mmap.c @@ -1,4 +1,3 @@ -#define JEMALLOC_EXTENT_MMAP_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/hash.c b/src/hash.c index 7b2bdc2b..3a26b393 100644 --- a/src/hash.c +++ b/src/hash.c @@ -1,3 +1,2 @@ -#define JEMALLOC_HASH_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/large.c b/src/large.c index cc3e727c..3ea08be4 100644 --- a/src/large.c +++ b/src/large.c @@ -1,4 +1,3 @@ -#define JEMALLOC_LARGE_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/malloc_io.c b/src/malloc_io.c index d2879bb4..f5004f0a 100644 --- a/src/malloc_io.c +++ b/src/malloc_io.c @@ -1,4 +1,3 @@ -#define JEMALLOC_MALLOC_IO_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/mutex.c b/src/mutex.c index bffcfb5f..83d9ce76 100644 --- a/src/mutex.c +++ b/src/mutex.c @@ -1,4 +1,3 @@ -#define JEMALLOC_MUTEX_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/mutex_pool.c b/src/mutex_pool.c index f24d10e4..d7861dcd 100644 --- a/src/mutex_pool.c +++ b/src/mutex_pool.c @@ -1,4 +1,3 @@ -#define JEMALLOC_MUTEX_POOL_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/pages.c b/src/pages.c index 62e84f04..9413d874 100644 --- a/src/pages.c +++ b/src/pages.c @@ -1,4 +1,3 @@ -#define JEMALLOC_PAGES_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/pages.h" diff --git a/src/prng.c b/src/prng.c index 83c04bf9..3a26b393 100644 --- a/src/prng.c +++ b/src/prng.c @@ -1,3 +1,2 @@ -#define JEMALLOC_PRNG_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/prof.c b/src/prof.c index db895f85..8ab68932 100644 --- a/src/prof.c +++ b/src/prof.c @@ -1,4 +1,3 @@ -#define JEMALLOC_PROF_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/prof_data.c b/src/prof_data.c index fe9ef154..49cc6ee3 100644 --- a/src/prof_data.c +++ b/src/prof_data.c @@ -1,4 +1,3 @@ -#define JEMALLOC_PROF_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/prof_log.c b/src/prof_log.c index 00c76596..bda01d04 100644 --- a/src/prof_log.c +++ b/src/prof_log.c @@ -1,4 +1,3 @@ -#define JEMALLOC_PROF_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/prof_recent.c b/src/prof_recent.c index 9af753f6..426f62ec 100644 --- a/src/prof_recent.c +++ b/src/prof_recent.c @@ -1,4 +1,3 @@ -#define JEMALLOC_PROF_RECENT_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/rtree.c b/src/rtree.c index 07a4e9ac..6496b5af 100644 --- a/src/rtree.c +++ b/src/rtree.c @@ -1,4 +1,3 @@ -#define JEMALLOC_RTREE_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/stats.c b/src/stats.c index fb88e5a6..407b60cc 100644 --- a/src/stats.c +++ b/src/stats.c @@ -1,4 +1,3 @@ -#define JEMALLOC_STATS_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/tcache.c b/src/tcache.c index ff428842..b73fd0dd 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -1,4 +1,3 @@ -#define JEMALLOC_TCACHE_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/thread_event.c b/src/thread_event.c index 99a188dd..bb91baa7 100644 --- a/src/thread_event.c +++ b/src/thread_event.c @@ -1,4 +1,3 @@ -#define JEMALLOC_THREAD_EVENT_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/ticker.c b/src/ticker.c index d7b8cd26..3a26b393 100644 --- a/src/ticker.c +++ b/src/ticker.c @@ -1,3 +1,2 @@ -#define JEMALLOC_TICKER_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/tsd.c b/src/tsd.c index cc1b3ac8..0dd4036b 100644 --- a/src/tsd.c +++ b/src/tsd.c @@ -1,4 +1,3 @@ -#define JEMALLOC_TSD_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h" diff --git a/src/witness.c b/src/witness.c index e9ddf596..4474af04 100644 --- a/src/witness.c +++ b/src/witness.c @@ -1,4 +1,3 @@ -#define JEMALLOC_WITNESS_C_ #include "jemalloc/internal/jemalloc_preamble.h" #include "jemalloc/internal/jemalloc_internal_includes.h"