From: Ivan Maidanski Date: Fri, 10 Mar 2017 16:04:46 +0000 (+0300) Subject: Remove notes that K&R C compiler is unsupported X-Git-Tag: v8.0.0~870 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9f5b1eb63d7967a37641ca06a66919fb553ac38;p=platform%2Fupstream%2Flibgc.git Remove notes that K&R C compiler is unsupported * README.QUICK: Remove a note that ANSI C compiler is required/assumed (not a K&R C compiler). * doc/README.cords: Likewise. * doc/README.macros (GC_GCJ_SUPPORT): Likewise. * include/gc_backptr.h: Likewise. * pcr_interface.c [PCR]: Likewise. * tools/if_not_there.c: Likewise. --- diff --git a/README.QUICK b/README.QUICK index 26ddcf9..f30f116 100644 --- a/README.QUICK +++ b/README.QUICK @@ -48,9 +48,8 @@ as described in doc/README.macros, or possibly use --enable-threads=posix when running the configure script. If you wish to use the cord (structured string) library with the stand-alone -Makefile.direct, type "make -f Makefile.direct cords". -(This requires an ANSI C compiler. You may -need to redefine CC in the Makefile. The CORD_printf implementation in +Makefile.direct, type "make -f Makefile.direct cords". (You may need to +override CC specified in the Makefile. The CORD_printf implementation in cordprnt.c is known to be less than perfectly portable. The rest of the package should still work.) See include/cord.h for the API. diff --git a/doc/README.cords b/doc/README.cords index f64dd2e..b574ded 100644 --- a/doc/README.cords +++ b/doc/README.cords @@ -40,9 +40,6 @@ almost a screen. It does not understand tabs, which will show up as highlighted "I"s. Use the UNIX "expand" program first.) To build the editor, type "make cord/de" in the gc directory. -This package assumes an ANSI C compiler such as gcc. It will -not compile with an old-style K&R compiler. - Note that CORD_printf iand friends use C functions with variable numbers of arguments in non-standard-conforming ways. This code is known to break on some platforms, notably PowerPC. It should be possible to diff --git a/doc/README.macros b/doc/README.macros index 1b3c249..86533f2 100644 --- a/doc/README.macros +++ b/doc/README.macros @@ -354,7 +354,6 @@ CHECKSUMS Reports on erroneously clear dirty bits, and unexpectedly GC_GCJ_SUPPORT Includes support for gcj (and possibly other systems that include a pointer to a type descriptor in each allocated object). - Building this way requires an ANSI C compiler. USE_I686_PREFETCH Causes the collector to issue Pentium III style prefetch instructions. No effect except on X86 Linux platforms. diff --git a/include/gc_backptr.h b/include/gc_backptr.h index c7e29d2..257be61 100644 --- a/include/gc_backptr.h +++ b/include/gc_backptr.h @@ -20,8 +20,6 @@ * to answer questions such as "who is pointing to this" or * "why is this object being retained by the collector" * - * This API assumes that we have an ANSI C compiler. - * * Most of these calls yield useful information on only after * a garbage collection. Usually the client will first force * a full collection and then gather information, preferably diff --git a/pcr_interface.c b/pcr_interface.c index 35213bf..c703305 100644 --- a/pcr_interface.c +++ b/pcr_interface.c @@ -14,8 +14,6 @@ # ifdef PCR /* - * Note that POSIX PCR requires an ANSI C compiler. Hence we are allowed - * to make the same assumption here. * We wrap all of the allocator functions to avoid questions of * compatibility between the prototyped and nonprototyped versions of the f */ diff --git a/tools/if_not_there.c b/tools/if_not_there.c index 68946d2..190a582 100644 --- a/tools/if_not_there.c +++ b/tools/if_not_there.c @@ -1,5 +1,4 @@ /* Conditionally execute a command based if the file argv[1] doesn't exist */ -/* Except for execvp, we stick to ANSI C. */ # include "private/gc_priv.h" # include