diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-12-28 22:27:29 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-12-28 22:27:29 +0000 |
commit | 7b0295ab201ba2b3416c6913eb5177d76d6e9cc5 (patch) | |
tree | 1bf39f21c64536984fbe1a6aa340f1c00c31be64 | |
parent | 5adf72de273fbcbb3459cba3443fc3cbf87eda4a (diff) | |
download | gcc-7b0295ab201ba2b3416c6913eb5177d76d6e9cc5.zip gcc-7b0295ab201ba2b3416c6913eb5177d76d6e9cc5.tar.gz gcc-7b0295ab201ba2b3416c6913eb5177d76d6e9cc5.tar.bz2 |
gen-table.pl: Const-ify output.
* gen-table.pl: Const-ify output. Document the location of a
suitable unicode input file.
* chartables.h: Regenerate.
From-SVN: r48354
-rw-r--r-- | gcc/java/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/java/chartables.h | 6 | ||||
-rw-r--r-- | gcc/java/gen-table.pl | 8 |
3 files changed, 16 insertions, 5 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 5dd0502..b5b34bc 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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. diff --git a/gcc/java/chartables.h b/gcc/java/chartables.h index 28de2a4..9c50e67 100644 --- a/gcc/java/chartables.h +++ b/gcc/java/chartables.h @@ -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 */ diff --git a/gcc/java/gen-table.pl b/gcc/java/gen-table.pl index 44bdc2a..cb0a870 100644 --- a/gcc/java/gen-table.pl +++ b/gcc/java/gen-table.pl @@ -19,6 +19,10 @@ # 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; |