diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-09 23:13:02 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-09 23:13:02 +0000 |
commit | e7bf79cf831a76f2e0d6c514f704aebcb6c389e8 (patch) | |
tree | 760b52810f3536e2b65c087bfc4d987320a2c3c1 /gcc/java/jcf-dump.c | |
parent | f76ffb92526bc9c8a3d0239e7c594c48b7929186 (diff) | |
download | gcc-e7bf79cf831a76f2e0d6c514f704aebcb6c389e8.tar.gz |
* expr.c, gjavah.c, javaop.h, jcf-dump.c, jcf-io.c, jcf-reader.c,
jcf-write.c, jcf.h, jv-scan.c: Don't rely on the `DEFUN', `AND' or
`__STDC__' macros.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61131 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-dump.c')
-rw-r--r-- | gcc/java/jcf-dump.c | 41 |
1 files changed, 14 insertions, 27 deletions
diff --git a/gcc/java/jcf-dump.c b/gcc/java/jcf-dump.c index 8e327f75637..afe472fa844 100644 --- a/gcc/java/jcf-dump.c +++ b/gcc/java/jcf-dump.c @@ -111,8 +111,7 @@ static void print_exception_table PARAMS ((struct JCF *, #define PRINT_SIGNATURE_ARGS_ONLY 2 static int -DEFUN(utf8_equal_string, (jcf, index, value), - JCF *jcf AND int index AND const char * value) +utf8_equal_string (JCF *jcf, int index, const char * value) { if (CPOOL_INDEX_IN_RANGE (&jcf->cpool, index) && JPOOL_TAG (jcf, index) == CONSTANT_Utf8) @@ -346,8 +345,7 @@ DEFUN(utf8_equal_string, (jcf, index, value), #include "javaop.h" static void -DEFUN(print_constant_ref, (stream, jcf, index), - FILE *stream AND JCF *jcf AND int index) +print_constant_ref (FILE *stream, JCF *jcf, int index) { fprintf (stream, "#%d=<", index); if (index <= 0 || index >= JPOOL_SIZE(jcf)) @@ -362,8 +360,7 @@ DEFUN(print_constant_ref, (stream, jcf, index), or 'm' (method flags). */ static void -DEFUN (print_access_flags, (stream, flags, context), - FILE *stream AND uint16 flags AND char context) +print_access_flags (FILE *stream, uint16 flags, char context) { if (flags & ACC_PUBLIC) fprintf (stream, " public"); if (flags & ACC_PRIVATE) fprintf (stream, " private"); @@ -387,8 +384,7 @@ DEFUN (print_access_flags, (stream, flags, context), static void -DEFUN(print_name, (stream, jcf, name_index), - FILE* stream AND JCF* jcf AND int name_index) +print_name (FILE* stream, JCF* jcf, int name_index) { if (JPOOL_TAG (jcf, name_index) != CONSTANT_Utf8) fprintf (stream, "<not a UTF8 constant>"); @@ -401,8 +397,7 @@ DEFUN(print_name, (stream, jcf, name_index), print it tersely, otherwise more verbosely. */ static void -DEFUN(print_constant_terse, (out, jcf, index, expected), - FILE *out AND JCF *jcf AND int index AND int expected) +print_constant_terse (FILE *out, JCF *jcf, int index, int expected) { if (! CPOOL_INDEX_IN_RANGE (&jcf->cpool, index)) fprintf (out, "<constant pool index %d not in range>", index); @@ -422,8 +417,7 @@ DEFUN(print_constant_terse, (out, jcf, index, expected), If verbosity==2, add more descriptive text. */ static void -DEFUN(print_constant, (out, jcf, index, verbosity), - FILE *out AND JCF *jcf AND int index AND int verbosity) +print_constant (FILE *out, JCF *jcf, int index, int verbosity) { int j, n; jlong num; @@ -579,8 +573,7 @@ DEFUN(print_constant, (out, jcf, index, verbosity), } static void -DEFUN(print_constant_pool, (jcf), - JCF *jcf) +print_constant_pool (JCF *jcf) { int i; for (i = 1; i < JPOOL_SIZE(jcf); i++) @@ -595,8 +588,8 @@ DEFUN(print_constant_pool, (jcf), } static void -DEFUN(print_signature_type, (stream, ptr, limit), - FILE* stream AND const unsigned char **ptr AND const unsigned char *limit) +print_signature_type (FILE* stream, const unsigned char **ptr, + const unsigned char *limit) { int array_size; if ((*ptr) >= limit) @@ -657,8 +650,7 @@ DEFUN(print_signature_type, (stream, ptr, limit), } static void -DEFUN(print_signature, (stream, jcf, signature_index, int options), - FILE* stream AND JCF *jcf AND int signature_index AND int options) +print_signature (FILE* stream, JCF *jcf, int signature_index, int options) { if (JPOOL_TAG (jcf, signature_index) != CONSTANT_Utf8) print_constant_terse (out, jcf, signature_index, CONSTANT_Utf8); @@ -704,8 +696,7 @@ DEFUN(print_signature, (stream, jcf, signature_index, int options), static void -DEFUN(print_exception_table, (jcf, entries, count), - JCF *jcf AND const unsigned char *entries AND int count) +print_exception_table (JCF *jcf, const unsigned char *entries, int count) { /* Print exception table. */ int i = count; @@ -736,8 +727,7 @@ DEFUN(print_exception_table, (jcf, entries, count), #include "jcf-reader.c" static void -DEFUN(process_class, (jcf), - JCF *jcf) +process_class (JCF *jcf) { int code; if (jcf_parse_preamble (jcf) != 0) @@ -849,8 +839,7 @@ version () } int -DEFUN(main, (argc, argv), - int argc AND char** argv) +main (int argc, char** argv) { JCF jcf[1]; int argi, opt; @@ -1069,10 +1058,8 @@ DEFUN(main, (argc, argv), static void -DEFUN(disassemble_method, (jcf, byte_ops, len), - JCF* jcf AND const unsigned char *byte_ops AND int len) +disassemble_method (JCF* jcf, const unsigned char *byte_ops, int len) { -#undef AND /* Causes problems with opcodes for iand and land. */ #undef PTR int PC; int i; |