1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Support for abbreviated struct declarations.

This commit is contained in:
Bruno Haible
2003-06-02 11:43:01 +00:00
parent eba9cf3822
commit fcd638a42f
6 changed files with 168 additions and 4 deletions

View File

@@ -713,7 +713,7 @@ Input::read_input ()
_struct_decl = struct_decl;
/* Set _struct_tag to the naked "struct something". */
const char *p;
for (p = struct_decl; *p && *p != '{' && *p != '\n'; p++)
for (p = struct_decl; *p && *p != '{' && *p != ';' && *p != '\n'; p++)
;
for (; p > struct_decl;)
if (p[-1] == '\n' || p[-1] == ' ' || p[-1] == '\t')