gen-table.pl: Const-ify output.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 28 Dec 2001 22:27:29 +0000 (22:27 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 28 Dec 2001 22:27:29 +0000 (22:27 +0000)
* gen-table.pl: Const-ify output.  Document the location of a
suitable unicode input file.

* chartables.h: Regenerate.

From-SVN: r48354

gcc/java/ChangeLog
gcc/java/chartables.h
gcc/java/gen-table.pl

index 5dd0502692066d849c9f483db0547d65041c59dc..b5b34bc1cd6d65eee801cd4436efcd9d5c953b93 100644 (file)
@@ -1,3 +1,10 @@
+2001-12-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * gen-table.pl: Const-ify output.  Document the location of a
+       suitable unicode input file.
+
+       * chartables.h: Regenerate.
+
 2001-12-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * chartables.h: Const-ify.
index 28de2a4cd9de422a807124e0a32de8b61702e161..9c50e67930848e9c2e7af39fb8f6e814cceecdfd 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is automatically generated.  DO NOT EDIT!
    Instead, edit gen-table.pl and re-run.  */
 
-#ifndef CHARTABLES_H
-#define CHARTABLES_H
+#ifndef GCC_CHARTABLES_H
+#define GCC_CHARTABLES_H
 
 #define LETTER_START 1
 #define LETTER_PART  2
@@ -3209,4 +3209,4 @@ static const char *const type_table[256] = {
   page255
 };
 
-#endif /* CHARTABLES_H */
+#endif /* ! GCC_CHARTABLES_H */
index 44bdc2a4cee4323a3a1875cce16d8906c89a8898..cb0a870291f7fd47736a1f03a019d1bcfb80be46 100644 (file)
 
 # gen-table.pl - Generate tables for gcj from Unicode data.
 # Usage: perl gen-table.pl DATA-FILE
+#
+# A suitable DATA-FILE is available at:
+# ftp://www.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt
+
 
 # Names of fields in Unicode data table.
 $CODE = 0;
@@ -191,11 +195,11 @@ sub print_tables
 
     for ($count = 0; $count <= $last; $count += 256)
     {
-       $row[$count / 256] = &print_row ($count, '(char *) ', 'char', 1,
+       $row[$count / 256] = &print_row ($count, '(char *) ', 'const char', 1,
                                         'page');
     }
 
-    print OUT "static char *type_table[256] = {\n";
+    print OUT "static const char *const type_table[256] = {\n";
     for ($count = 0; $count <= $last; $count += 256)
     {
        print OUT ",\n" if $count > 0;