]> Dogcows Code - chaz/openbox/blobdiff - openbox/parse.l
move the openbox engine into librender and the kernel. the theme is loaded and stored...
[chaz/openbox] / openbox / parse.l
index 4dcdc2ca8c440d432b0e9560d10b1c208b322b71..64896e07249d6806cb7f2d6678a5b3a417991b3e 100644 (file)
@@ -4,7 +4,7 @@
 #  include <stdlib.h>
 #endif
 
-int yylineno = 1;
+extern int lineno;
 %}
 
 real [-0-9][0-9]*\.[0-9]+
@@ -15,9 +15,9 @@ bool ([tT][rR][uU][eE]|[fF][aA][lL][sS][eE]|[yY][eE][sS]|[nN][oO]|[oO][nN]|[oO][
 
 %%
 
-^[ \t]*#.*\n /* comment */ { ++yylineno; }
+^[ \t]*#.*\n /* comment */ { ++lineno; }
 ^[ \t]*#.*   /* comment */
-^[ \t]*\n    /* empty lines */ { ++yylineno; }
+^[ \t]*\n    /* empty lines */ { ++lineno; }
 [ \t]        /* whitespace */
 {real}       { yylval.real = atof(yytext); return REAL; }
 {integer}    { yylval.integer = atoi(yytext); return INTEGER; }
This page took 0.022997 seconds and 4 git commands to generate.