[GIT] ppl/ppl(master): Portability improved.
Module: ppl/ppl Branch: master Commit: a1ae10fce329c8d02540538f7ce9a29779e1a711 URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=a1ae10fce329c... Author: Roberto Bagnara <bagnara@cs.unipr.it> Date: Fri Mar 23 20:22:26 2012 +0100 Portability improved. (Thanks to Tim Donahue.) --- utils/text2cxxarray.in | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/utils/text2cxxarray.in b/utils/text2cxxarray.in index 571e791..e484735 100644 --- a/utils/text2cxxarray.in +++ b/utils/text2cxxarray.in @@ -56,7 +56,9 @@ GetOptions( my @lines = <>; my $size = @lines + 1; -print "extern const char* const ${array_name}[$size]"; +print "extern const char* const "; +print $array_name; +print "[$size]"; if (! $decl_only) { print " = {\n";
participants (1)
-
Roberto Bagnara