aboutsummaryrefslogtreecommitdiff
path: root/etpo/lexer.l
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-05-25 18:39:33 +0200
committerGuido Günther <agx@sigxcpu.org>2009-05-25 18:39:33 +0200
commit6186ec0b46466bfb2c96662d4d1eff6dec5bd4db (patch)
tree1f1d664b997bbdc68cddce233c616ef60b783c47 /etpo/lexer.l
parentdocument changes and release 0.9.1-1 (diff)
parentImported Upstream version 0.10 (diff)
downloadkrb5-auth-dialog-6186ec0b46466bfb2c96662d4d1eff6dec5bd4db.tar.gz
krb5-auth-dialog-6186ec0b46466bfb2c96662d4d1eff6dec5bd4db.tar.bz2
krb5-auth-dialog-6186ec0b46466bfb2c96662d4d1eff6dec5bd4db.zip
Merge commit 'upstream/0.10'
Diffstat (limited to 'etpo/lexer.l')
-rw-r--r--etpo/lexer.l10
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
bgstack15