chiark / gitweb /
cleanup: use flex-generated declarations for scanner interface
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Jun 2011 11:07:48 +0000 (12:07 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2011 15:38:42 +0000 (16:38 +0100)
commit27f5042b0435d26ae98b22f8e42115e44afe53bc
tree41f0ed96c285d39d331b046fb74917c2788b1a3d
parentfcbc59051841c6e76a6737acf8ccaac4afd98666
cleanup: use flex-generated declarations for scanner interface

We now pass the --header=... option to flex.  This causes it to
generate a header file describing the flex interface.  We #include
this almost everywhere we #include conffile_internal.h, and that makes
the declarations of yyin and yylex in conffile_internal.h redundant so
remove them.

Note that flex generates a conffile.yy.c which also contains many of
the same declarations as in conffile.yy.h.  So, unfortunately, we
should not #include conffile.yy.h in conffile.hh.c and therefore not
in conffile_internal.h either (if we want -Wredundant-decls, which we do).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
Makefile.in
conffile.c
conffile.y
conffile_internal.h