+Mon May 2 22:02:52 2005 Ben Pfaff <blp@gnu.org>
+
+ * expressions/generate.pl: (get_token) Make use of /g
+ backward-compatible with Perl 5.6.1.
+
Sun May 1 23:00:19 2005 Ben Pfaff <blp@gnu.org>
* var-display.c: (cmd_variable_alignment) Fix memory leak.
our ($line);
lookahead ();
return if defined ($toktype) && $toktype eq 'eof';
- $toktype = 'id', return
- if ($token) = $line =~ /\G([a-zA-Z_][a-zA-Z_.0-9]*)/gc;
- $toktype = 'int', return if ($token) = $line =~ /\G[0-9]+/gc;
+ $toktype = 'id', $token = $1, return
+ if $line =~ /\G([a-zA-Z_][a-zA-Z_.0-9]*)/gc;
+ $toktype = 'int', $token = $1, return if $line =~ /\G([0-9]+)/gc;
$toktype = 'punct', $token = $1, return if $line =~ /\G([][(),*;.])/gc;
if ($line =~ /\G=/gc) {
$toktype = "expression";