]> git.draconx.ca Git - gob-dx.git/blobdiff - src/lexer.l
Release 0.93.4
[gob-dx.git] / src / lexer.l
index b155aa76d8d1ada419c4a96a85ba46f4a678b126..1e7de5356e1c72ba0e8a63f125d11a2abd677396 100644 (file)
@@ -51,9 +51,9 @@ static void
 clear_cbuf(void)
 {
        if(!cbuf) {
-               cbuf = g_string_new("");
+               cbuf = g_string_new(NULL);
        } else {
-               cbuf = g_string_assign(cbuf,"");
+               cbuf = g_string_assign(cbuf, "");
        }
 }
 
@@ -367,7 +367,7 @@ class               {
                                char *s;
                                s = g_strdup_printf("'%s' keyword should not "
                                                    "be used when generating "
-                                                   "C++ code",yytext);
+                                                   "C++ code", yytext);
                                print_error(TRUE, s, line_no);
                                g_free(s);
                        }
@@ -395,6 +395,7 @@ class               {
 <CLASS_CODE_I>public   {yylval.line = line_no; return PUBLIC;}
 <CLASS_CODE_I>private  {yylval.line = line_no; return PRIVATE;}
 <CLASS_CODE_I>protected        {yylval.line = line_no; return PROTECTED;}
+<CLASS_CODE_I>classwide        {yylval.line = line_no; return CLASSWIDE;}
 <CLASS_CODE_I>argument {yylval.line = line_no; return ARGUMENT;}
 <CLASS_CODE_I>virtual  {yylval.line = line_no; return VIRTUAL;}
 <CLASS_CODE_I>signal   {yylval.line = line_no; return SIGNAL;}