summaryrefslogtreecommitdiff
path: root/mallocx.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-05-15 12:23:19 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-05-15 12:23:19 +0300
commitadffce1cdaa9990e6084955624b6a330bec2b200 (patch)
treead6f4731e522c85b245013c2beb8a71de71398e7 /mallocx.c
parenta63c89e709e9cd42b652a54062709029a8b653d6 (diff)
downloadbdwgc-adffce1cdaa9990e6084955624b6a330bec2b200.tar.gz
Remove stubborn.c file
(code refactoring) * BCC_MAKEFILE (XXXOBJS): Remove XXXstubborn.obj entry. * CMakeLists.txt (SRC): Remove stubborn.c entry. * Makefile.am (libgc_la_SOURCES): Likewise. * Makefile.direct (CSRCS): Likewise. * PCR-Makefile (CSRC): Likewise. * build/s60v3/libgc.mmp (SOURCE): Likewise. * doc/README.Mac (Files to build the GC libraries): Likewise. * Makefile.direct (OBJS): Remove stubborn.o entry. * PCR-Makefile (COBJ): Likewise. * SMakefile.amiga (OBJS): Likewise. * digimars.mak (OBJS): Likewise. * NT_MAKEFILE (OBJS): Remove stubborn.obj entry. * OS2_MAKEFILE (OBJS): Likewise. * WCC_MAKEFILE (OBJS): Likewise. * SMakefile.amiga (stubborn.o): Remove rule. * digimars.mak (stubborn.obj): Likewise. * extra/gc.c: Do not include stubborn.c. * gc.mak: Remove rules for stubborn.obj and stubborn.sbr. * mallocx.c [MANUAL_VDB] (GC_dirty): Move the function declaration from stubborn.c. * mallocx.c (GC_malloc_stubborn, GC_change_stubborn, GC_end_stubborn_change): Move the function implementation from stubborn.c. * stubborn.c: Delete file.
Diffstat (limited to 'mallocx.c')
-rw-r--r--mallocx.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/mallocx.c b/mallocx.c
index 29167eb9..f9376836 100644
--- a/mallocx.c
+++ b/mallocx.c
@@ -600,3 +600,24 @@ GC_API GC_ATTR_MALLOC char * GC_CALL GC_strndup(const char *str, size_t size)
return copy;
}
#endif /* GC_REQUIRE_WCSDUP */
+
+GC_API void * GC_CALL GC_malloc_stubborn(size_t lb)
+{
+ return GC_malloc(lb);
+}
+
+GC_API void GC_CALL GC_change_stubborn(const void *p GC_ATTR_UNUSED)
+{
+ /* Empty. */
+}
+
+#if defined(MANUAL_VDB)
+ void GC_dirty(ptr_t p);
+#endif
+
+GC_API void GC_CALL GC_end_stubborn_change(const void *p GC_ATTR_UNUSED)
+{
+# ifdef MANUAL_VDB
+ GC_dirty((ptr_t)p);
+# endif
+}