]> git.draconx.ca Git - cdecl99.git/blobdiff - src/parse-decl.c
Enable i18n in Bison.
[cdecl99.git] / src / parse-decl.c
index 3ffb1029ae181b596da102f367130f5f84bd83c4..dc187c00b00c440eb5b059781b376f4e3ffdf712 100644 (file)
@@ -23,6 +23,7 @@
 #include "typemap.h"
 #include "parse.h"
 #include "scan.h"
+#include "i18n.h"
 
 /*
  * Determine if a declarator declares an identifier (other than a function
@@ -391,6 +392,8 @@ struct cdecl *cdecl_parse_decl(const char *declstr)
        struct cdecl *decl;
        int rc;
 
+       cdecl__init_i18n();
+
        rc = cdecl__yylex_init(&scanner);
        if (rc != 0)
                return NULL;
@@ -437,6 +440,8 @@ struct cdecl *cdecl_parse_english(const char *english)
        struct cdecl *decl;
        int rc;
 
+       cdecl__init_i18n();
+
        rc = cdecl__yylex_init_extra(true, &scanner);
        if (rc != 0)
                return NULL;