+2007-07-17 Ben Pfaff <blp@gnu.org>
+
+ Patch #19335. Reviewed by John Darrington.
+
+ * evaluate.h.pl: Use strict and all warnings. Fix warnings that
+ this triggers.
+
+ * evaluate.inc.pl: Ditto.
+
+ * generate.pl: Ditto.
+
+ * operations.h.pl: Ditto.
+
+ * optimize.inc.pl: Ditto.
+
+ * parse.inc.pl: Ditto.
+
2007-04-15 Ben Pfaff <blp@gnu.org>
* parse.c (expr_get_function): New function.
# Parse input file.
our (%ops);
-our (@funcs, @opers);
+our (@funcs, @opers, @order);
parse_input ();
# Produce output.
$ops{$a}->{OPNAME} cmp $ops{$b}->{OPNAME}}
@funcs;
@opers = sort {$ops{$a}->{NAME} cmp $ops{$b}->{NAME}} @opers;
- our (@order) = (@funcs, @opers);
+ @order = (@funcs, @opers);
}
# Reads the next token into $token, $toktype.
+use strict;
+use warnings 'all';
+
do 'generate.pl';
+our (@types, @order, %ops);
sub generate_output {
my (@members) = ("\"\"", "\"\"", 0, 0, 0, "{}", 0, 0);
for my $type (@types) {
next if $type->{ROLE} eq 'fixed';
- my (@members) = ("\"$type->{NAME}\"", "\"$type->{HUMAN_NAME}\"",
+ my ($human_name) = $type->{HUMAN_NAME};
+ $human_name = "" if !defined $human_name;
+
+ my (@members) = ("\"$type->{NAME}\"", "\"\"",
0, "OP_$type->{NAME}", 0, "{}", 0, 0);
print "{", join (', ', @members), "},\n";
}