summaryrefslogtreecommitdiff
path: root/gcc/java/gen-table.pl
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-29 04:31:10 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-29 04:31:10 +0000
commit1a2fd6950cfc230b9cf8e0a2d8ef1631bd78a2e4 (patch)
treebbab815104e4081b062df510f66c8fe1a6330f55 /gcc/java/gen-table.pl
parent13a52fd5847765c040a2b49339b4e48bc388ec6d (diff)
downloadgcc-1a2fd6950cfc230b9cf8e0a2d8ef1631bd78a2e4.tar.gz
* gen-table.pl: Don't process characters after \uffff. Added
comment pointing to input file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48359 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/gen-table.pl')
-rw-r--r--gcc/java/gen-table.pl13
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/java/gen-table.pl b/gcc/java/gen-table.pl
index cb0a870291f..98d003ca60b 100644
--- a/gcc/java/gen-table.pl
+++ b/gcc/java/gen-table.pl
@@ -1,6 +1,6 @@
#! /usr/bin/perl
-# Copyright (C) 2000 Free Software Foundation
+# Copyright (C) 2000, 2001 Free Software Foundation
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,9 +20,13 @@
# 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
-
+# You can find the Unicode data file here:
+# ftp://www.unicode.org/Public/3.0-Update1/UnicodeData-3.0.1.txt
+# Please update this URL when this program is used with a more
+# recent version of the table. Note that this table cannot be
+# distributed with gcc.
+# This program should not be re-run indiscriminately. Care must be
+# taken that what it generates is in sync with the Java specification.
# Names of fields in Unicode data table.
$CODE = 0;
@@ -80,6 +84,7 @@ while (<INPUT>)
}
$code = hex ($fields[$CODE]);
+ last if $code > 0xffff;
if ($code > $last_code + 1)
{
# Found a gap.