From e8368231412c57222c53c0dc1fac7f711fa051e2 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 13 May 2015 17:46:00 -0600 Subject: regen/mk_PL_charclass.pl: Suppress extra null array element We don't output a trailing comma after the final element in these C arrays, and thus prevent the C compiler from generating a useless null element --- regen/mk_PL_charclass.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'regen/mk_PL_charclass.pl') diff --git a/regen/mk_PL_charclass.pl b/regen/mk_PL_charclass.pl index 1cabfc4de9..86f316206b 100644 --- a/regen/mk_PL_charclass.pl +++ b/regen/mk_PL_charclass.pl @@ -343,6 +343,8 @@ foreach my $charset (get_supported_code_pages()) { ? sprintf "/* U+%02X %s */ %s,\n", $ord, $name, $bits[$ord] : sprintf "/* 0x%02X U+%02X %s */ %s,\n", $index, $ord, $name, $bits[$ord]; } + $out[-1] =~ s/,$//; # No trailing comma in the final entry + print $out_fh join "", @out; print $out_fh "\n" . get_conditional_compile_line_end(); } -- cgit v1.2.1