]> saetta.ns0.it Git - reptool/libreptool/commitdiff
Deprecation in bison working.
authorAndrea Zagli <azagli@libero.it>
Sun, 30 Oct 2011 15:53:58 +0000 (16:53 +0100)
committerAndrea Zagli <azagli@libero.it>
Sun, 30 Oct 2011 15:53:58 +0000 (16:53 +0100)
src/parser.y

index 44985c66e511d00f3d76de30ebaca27d3b3c875b..cde5bb521234606357ad172fb8c73b476c73084a 100644 (file)
@@ -37,7 +37,7 @@ string: exp      { *ret = g_strdup ($1); }
 
 exp:      INTEGER           { $$ = $1; }
         | FLOAT             { $$ = $1; }
-        | STRING            { $$ = g_strndup ($1 + 1, strlen ($1) - 2) }
+        | STRING            { $$ = g_strndup ($1 + 1, strlen ($1) - 2); }
         | FIELD             { $$ = rpt_report_get_field (rpt_report, g_strndup ($1 + 1, strlen ($1) - 2)); }
         | SPECIAL           { $$ = rpt_report_get_special (rpt_report, $1); }
                | exp '+' exp           { $$ = g_strdup_printf ("%f", strtod ($1, NULL) + strtod ($3, NULL)); }