Commit 5ca1627b by Kaveh R. Ghazi Committed by Kaveh Ghazi

gjavah.c (overloaded_jni_method_exists_p): Add prototype.

       * gjavah.c (overloaded_jni_method_exists_p): Add prototype.
       (print_name_for_stub_or_jni, process_file): Constify a char*.

From-SVN: r31813
parent 54551044
2000-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gjavah.c (overloaded_jni_method_exists_p): Add prototype.
(print_name_for_stub_or_jni, process_file): Constify a char*.
2000-02-03 Tom Tromey <tromey@cygnus.com> 2000-02-03 Tom Tromey <tromey@cygnus.com>
* jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input. * jcf-io.c (jcf_print_utf8_replace): Handle UTF-8 input.
......
...@@ -148,6 +148,8 @@ static void print_class_decls PARAMS ((FILE *, JCF *, int)); ...@@ -148,6 +148,8 @@ static void print_class_decls PARAMS ((FILE *, JCF *, int));
static void usage PARAMS ((void)) ATTRIBUTE_NORETURN; static void usage PARAMS ((void)) ATTRIBUTE_NORETURN;
static void help PARAMS ((void)) ATTRIBUTE_NORETURN; static void help PARAMS ((void)) ATTRIBUTE_NORETURN;
static void version PARAMS ((void)) ATTRIBUTE_NORETURN; static void version PARAMS ((void)) ATTRIBUTE_NORETURN;
static int overloaded_jni_method_exists_p PARAMS ((const unsigned char *, int,
const char *, int));
JCF_u2 current_field_name; JCF_u2 current_field_name;
JCF_u2 current_field_value; JCF_u2 current_field_value;
...@@ -1085,7 +1087,7 @@ DEFUN (print_name_for_stub_or_jni, (stream, jcf, name_index, signature_index, ...@@ -1085,7 +1087,7 @@ DEFUN (print_name_for_stub_or_jni, (stream, jcf, name_index, signature_index,
AND int name_index AND int signature_index AND int name_index AND int signature_index
AND int is_init AND const char *name_override AND int flags) AND int is_init AND const char *name_override AND int flags)
{ {
char *prefix = flag_jni ? "Java_" : "\n"; const char *const prefix = flag_jni ? "Java_" : "\n";
print_cxx_classname (stream, prefix, jcf, jcf->this_class); print_cxx_classname (stream, prefix, jcf, jcf->this_class);
fputs (flag_jni ? "_" : "::", stream); fputs (flag_jni ? "_" : "::", stream);
print_full_cxx_name (stream, jcf, name_index, print_full_cxx_name (stream, jcf, name_index,
...@@ -1567,7 +1569,7 @@ DEFUN(process_file, (jcf, out), ...@@ -1567,7 +1569,7 @@ DEFUN(process_file, (jcf, out),
if (written_class_count++ == 0 && out) if (written_class_count++ == 0 && out)
{ {
char *cstart, *cstart2, *mode, *cend, *what, *jflag; const char *cstart, *cstart2, *mode, *cend, *what, *jflag;
if (flag_jni) if (flag_jni)
{ {
cstart = "/*"; cstart = "/*";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment