diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-05-25 18:39:27 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-05-25 18:39:27 +0200 |
commit | d911517dc2f9c4c3ce57529ac4d64c17185544e9 (patch) | |
tree | b4f7a09a3cf84ac25b3cabdcf74fb448ef82eb53 /etpo/lexer.l | |
parent | Imported Upstream version 0.9.1 (diff) | |
download | krb5-auth-dialog-d911517dc2f9c4c3ce57529ac4d64c17185544e9.tar.gz krb5-auth-dialog-d911517dc2f9c4c3ce57529ac4d64c17185544e9.tar.bz2 krb5-auth-dialog-d911517dc2f9c4c3ce57529ac4d64c17185544e9.zip |
Imported Upstream version 0.10
Diffstat (limited to 'etpo/lexer.l')
-rw-r--r-- | etpo/lexer.l | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/etpo/lexer.l b/etpo/lexer.l index 9b5fee7..9bc4b75 100644 --- a/etpo/lexer.l +++ b/etpo/lexer.l @@ -53,6 +53,8 @@ error_code|ec { yylval.sval = g_strdup(yytext); <QUOTED>\n { yylval.sval = g_strdup(yytext); return LITERAL; }; <*>^#.*$ { }; +<*>^(error_table_base|index)[ \t]+[0-9]+$ { }; +<*>^(prefix|id|error_table_manager)[ \t]+.*$ { }; %% /* Complete list of filenames, an iterator for that list, and the contents of @@ -102,15 +104,15 @@ yywrap(void) static void header(void) { - const char *boilerplate = "const char *dummy = {\n"; - printf(boilerplate); + const char *boilerplate = "#include <glib/gi18n.h>\n\nconst char *dummy[] = {\n"; + printf("%s", boilerplate); } static void tail(void) { - const char *boilerplate = "};\n"; - printf(boilerplate); + const char *boilerplate = "\tNULL\n};\n"; + printf("%s", boilerplate); } int |