aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/boehm.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-04-04 20:40:20 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-04-04 20:40:20 +0000
commitc0b864fce74e47f47672788276d1ae0745323f3b (patch)
treec851672dba9f99ab8fe6980ce20fa54c24aa0837 /gcc/java/boehm.c
parent69c0caa16692ebab160b10ff1705eec5eebebae6 (diff)
downloadgcc-c0b864fce74e47f47672788276d1ae0745323f3b.zip
gcc-c0b864fce74e47f47672788276d1ae0745323f3b.tar.gz
gcc-c0b864fce74e47f47672788276d1ae0745323f3b.tar.bz2
boehm.c (mark_reference_fields, set_bit): Prototype.
* boehm.c (mark_reference_fields, set_bit): Prototype. (set_bit): Un-ANSI-fy definition. * class.c (init_test_hash_newfunc, decl_hash, decl_compare): Prototype. * decl.c (emit_init_test_initialization): Likewise. * gjavah.c (jni_print_char): Likewise. * parse.y (create_new_parser_context): Likewise. From-SVN: r32908
Diffstat (limited to 'gcc/java/boehm.c')
-rw-r--r--gcc/java/boehm.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/gcc/java/boehm.c b/gcc/java/boehm.c
index 504637e..9897839 100644
--- a/gcc/java/boehm.c
+++ b/gcc/java/boehm.c
@@ -31,6 +31,15 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#include "java-tree.h"
#include "parse.h"
+static unsigned int mark_reference_fields PARAMS ((tree,
+ unsigned HOST_WIDE_INT *,
+ unsigned HOST_WIDE_INT *,
+ unsigned int,
+ int *, int *, int *));
+static void set_bit PARAMS ((unsigned HOST_WIDE_INT *,
+ unsigned HOST_WIDE_INT *,
+ unsigned int));
+
/* Compute a procedure-based object descriptor. We know that our
`kind' is 0, and `env' is likewise 0, so we have a simple
computation. From the GC sources:
@@ -42,8 +51,9 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
/* Treat two HOST_WIDE_INT's as a contiguous bitmap, with bit 0 being
the least significant. This function sets bit N in the bitmap. */
static void
-set_bit (unsigned HOST_WIDE_INT *low, unsigned HOST_WIDE_INT *high,
- unsigned int n)
+set_bit (low, high, n)
+ unsigned HOST_WIDE_INT *low, *high;
+ unsigned int n;
{
HOST_WIDE_INT *which;