[PPL-devel] [GIT] ppl/ppl(master): Simplified.

Roberto Bagnara bagnara at cs.unipr.it
Tue Feb 21 09:17:30 CET 2012


Module: ppl/ppl
Branch: master
Commit: a00acbd1037dc7da2fff39884f185b06f2e2dabd
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=a00acbd1037dc7da2fff39884f185b06f2e2dabd

Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date:   Tue Feb 21 09:17:14 2012 +0100

Simplified.

---

 utils/text2cxxarray.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/utils/text2cxxarray.in b/utils/text2cxxarray.in
index 4b2ea23..571e791 100644
--- a/utils/text2cxxarray.in
+++ b/utils/text2cxxarray.in
@@ -56,7 +56,7 @@ GetOptions(
 my @lines = <>;
 my $size = @lines + 1;
 
-print "extern const char* const $array_name" . "[$size]";
+print "extern const char* const ${array_name}[$size]";
 
 if (! $decl_only) {
     print " = {\n";
@@ -70,4 +70,5 @@ if (! $decl_only) {
     print "  0";
     print "}";
 }
+
 print ";\n";




More information about the PPL-devel mailing list