]> granicus.if.org Git - gc/commitdiff
Move pcr_interface.c, real_malloc.c to 'extra' folder
authorIvan Maidanski <ivmai@mail.ru>
Tue, 13 Jun 2017 20:41:10 +0000 (23:41 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 13 Jun 2017 20:41:10 +0000 (23:41 +0300)
(code refactoring)

* Makefile.am (EXTRA_DIST): Add extra/ prefix to pcr_interface.c,
real_malloc.c.
* PCR-Makefile (CSRC): Likewise.
* PCR-Makefile (COBJ): Add extra/ prefix to pcr_interface.o,
real_malloc.o.
* extra/gc.c: Remove include pcr_interface.c; update comment about
files which are not included.
* pcr_interface.c: Move to "extra" folder.
* real_malloc.c: Likewise.
* include/private/gc_priv.h (GC_INNER, GC_EXTERN): Update comment.

Makefile.am
PCR-Makefile
extra/gc.c
extra/pcr_interface.c [moved from pcr_interface.c with 100% similarity]
extra/real_malloc.c [moved from real_malloc.c with 100% similarity]
include/private/gc_priv.h

index 4d0174b677d6dd6b9245838cfec6955073121785..719c188b42e31ec3431d5880d9759653e29e6761 100644 (file)
@@ -208,7 +208,7 @@ EXTRA_DIST += tools/if_mach.c tools/if_not_there.c tools/setjmp_t.c \
     tools/threadlibs.c gc.mak extra/MacOS.c extra/AmigaOS.c \
     extra/symbian/global_end.cpp extra/symbian/global_start.cpp \
     extra/symbian/init_global_static_roots.cpp extra/symbian.cpp \
-    pcr_interface.c real_malloc.c \
+    extra/pcr_interface.c extra/real_malloc.c \
     build/s60v3/bld.inf build/s60v3/libgc.mmp \
     extra/Mac_files/datastart.c extra/Mac_files/dataend.c \
     extra/Mac_files/MacOS_config.h \
index 28d11216ae3f8279fc10d68d8585f99b84bea72a..de26a9ac72cef82a42e4c4e8b596eb05a618ea4c 100644 (file)
@@ -32,9 +32,9 @@ LDFLAGS = $(CONFIG_LDFLAGS)
 # Fix to point to local pcr installation directory.
 PCRDIR= ..
 
-COBJ= alloc.o reclaim.o allchblk.o misc.o os_dep.o mark_rts.o headers.o mark.o obj_map.o pcr_interface.o blacklst.o finalize.o new_hblk.o real_malloc.o dyn_load.o dbg_mlc.o fnlz_mlc.o malloc.o stubborn.o checksums.o typd_mlc.o ptr_chck.o mallocx.o
+COBJ= alloc.o reclaim.o allchblk.o misc.o os_dep.o mark_rts.o headers.o mark.o obj_map.o blacklst.o finalize.o new_hblk.o extra/pcr_interface.o extra/real_malloc.o dyn_load.o dbg_mlc.o fnlz_mlc.o malloc.o stubborn.o checksums.o typd_mlc.o ptr_chck.o mallocx.o
 
-CSRC= reclaim.c allchblk.c misc.c alloc.c mach_dep.c os_dep.c mark_rts.c headers.c mark.c obj_map.c pcr_interface.c blacklst.c finalize.c new_hblk.c real_malloc.c dyn_load.c dbg_mlc.c fnlz_mlc.c malloc.c stubborn.c checksums.c typd_mlc.c ptr_chck.c mallocx.c
+CSRC= reclaim.c allchblk.c misc.c alloc.c mach_dep.c os_dep.c mark_rts.c headers.c mark.c obj_map.c blacklst.c finalize.c new_hblk.c extra/pcr_interface.c extra/real_malloc.c dyn_load.c dbg_mlc.c fnlz_mlc.c malloc.c stubborn.c checksums.c typd_mlc.c ptr_chck.c mallocx.c
 
 SHELL= /bin/sh
 
index a77fba65c19fc5dba6c267d6db1b4fcc6b7d3583..ea3648e6283f661d248e010e172ea16d24774b75 100644 (file)
@@ -65,7 +65,6 @@
 #include "../dyn_load.c"
 #include "../gc_dlopen.c"
 #include "../mach_dep.c"
-#include "../pcr_interface.c"
 #include "../pthread_stop_world.c"
 #include "../pthread_support.c"
 #include "../specific.c"
@@ -84,4 +83,4 @@
 # include "gc_pthread_redirects.h"
 #endif
 
-/* real_malloc.c, extra/MacOS.c, extra/msvc_dbg.c are not included. */
+/* The files from "extra" folder are not included. */
similarity index 100%
rename from pcr_interface.c
rename to extra/pcr_interface.c
similarity index 100%
rename from real_malloc.c
rename to extra/real_malloc.c
index ed2f1714e9648f1c9281791aaa48a634456af5a8..25b88f6d532a0fd1b0242dce7fe3b9919becd14f 100644 (file)
@@ -126,8 +126,7 @@ typedef char * ptr_t;   /* A generic pointer to which we can add        */
   /* for the GC-scope function definitions and prototypes.  Must not be */
   /* used in gcconfig.h.  Shouldn't be used for the debugging-only      */
   /* functions.  Currently, not used for the functions declared in or   */
-  /* called from the "dated" source files (pcr_interface.c and files    */
-  /* located in the "extra" folder).                                    */
+  /* called from the "dated" source files (located in "extra" folder).  */
 # if defined(GC_DLL) && defined(__GNUC__) && !defined(MSWIN32) \
         && !defined(MSWINCE) && !defined(CYGWIN32)
 #   if GC_GNUC_PREREQ(4, 0) && !defined(GC_NO_VISIBILITY)
@@ -147,7 +146,7 @@ typedef char * ptr_t;   /* A generic pointer to which we can add        */
   /* variables.  Must not be used in gcconfig.h.  Shouldn't be used for */
   /* the debugging-only or profiling-only variables.  Currently, not    */
   /* used for the variables accessed from the "dated" source files      */
-  /* (pcr_interface.c, specific.c/h, and in the "extra" folder).        */
+  /* (specific.c/h, and in the "extra" folder).                         */
   /* The corresponding variable definition must start with GC_INNER.    */
 #endif /* !GC_INNER */