pkgsrc/lang/oo2c/patches/patch-ac
jtb 367f3348f4 Update to 2.0.11.
Changes:
(Exceptions): A catch clause like `CATCH T(e):' introduces a read-only
variable `e' of type `T' within the block.  The `(e)' part is
optional.  New method Name() and new procedure Abort().  FatalError()
now takes a message string as argument.

(Object): The functions NewUCS4Region() and NewUCS4() have been
revived.

(ADT:ArrayList): New methods Sort() and Elements().

(ADT:StringBuffer): Now provides an INIT() method, covering the
functionality of the old NewCapacity() constructor.  New method
CharsUTF16().

(ADT:Comparator): Provides a comparator class `String'.

(oo2c): Super calls can be issued for all type-bound procedures of the
base type, instead of just the procedure that is currently being
redefined.

(oo2c): The compiler warns if an INIT() method does not call the
INIT() of the base type.

Plus the usual number of bug fixes...
2003-08-30 21:00:08 +00:00

19 lines
610 B
Text

$NetBSD: patch-ac,v 1.3 2003/08/30 21:00:10 jtb Exp $
--- lib/src/RT0.c.orig 2003-08-19 19:52:54.000000000 +0100
+++ lib/src/RT0.c 2003-08-19 19:55:02.000000000 +0100
@@ -14,9 +14,13 @@
#define MAX_BACKTRACE_LEVELS 20 /* max number of backtraced procedure calls */
/* note: __config.h might set defines for gc.h, like GC_PTHREADS */
-#if defined(HAVE_LIBGC) && defined(HAVE_GC_GC_H)
+#if defined(HAVE_LIBGC)
# define USE_BOEHM_GC
+#if defined(HAVE_GC_GC_H)
# include <gc/gc.h>
+#elif defined(HAVE_GC_H)
+# include <gc.h>
+#endif
#else
# define GC_MALLOC malloc
# define GC_MALLOC_ATOMIC malloc