]> granicus.if.org Git - re2c/commit
Unified macro names in header guards.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 9 Jun 2015 16:36:36 +0000 (17:36 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 9 Jun 2015 16:36:36 +0000 (17:36 +0100)
commit13162cd5823f8017178ee7e57c767f7c9045b085
treeab8b8a74dd5bbc416037cc2373543ac9d815ffb5
parentd2ca05e0032a299b52a36cf3563a9d3ecd3ac801
Unified macro names in header guards.

Inspired by sudden collision with '__COUNTER__' I occasionally got
while guarding 'src/util/counter.h'.

Now all headers use guards of the form '_RE2C_PATH_TO_HEADER_BASENAME_'.
Some compilers (e.g. clang++) would warn about [-Wreserved-id-macro],
but their reasonong about reserved macro names is quite crude and re2c
is not able to confirm their standards anyway (e.g. autoconf-generated
macro name 'SIZEOF___INT64').
43 files changed:
re2c/src/codegen/bitmap.h
re2c/src/codegen/code_names.h
re2c/src/codegen/emit.h
re2c/src/codegen/go.h
re2c/src/codegen/indent.h
re2c/src/codegen/input_api.h
re2c/src/codegen/label.h
re2c/src/codegen/output.h
re2c/src/codegen/print.h
re2c/src/codegen/scc.h
re2c/src/codegen/skeleton/path.h
re2c/src/codegen/skeleton/skeleton.h
re2c/src/dfa/action.h
re2c/src/dfa/dfa.h
re2c/src/dfa/encoding/enc.h
re2c/src/dfa/encoding/range_suffix.h
re2c/src/dfa/encoding/utf16/utf16.h
re2c/src/dfa/encoding/utf16/utf16_range.h
re2c/src/dfa/encoding/utf16/utf16_regexp.h
re2c/src/dfa/encoding/utf8/utf8.h
re2c/src/dfa/encoding/utf8/utf8_range.h
re2c/src/dfa/encoding/utf8/utf8_regexp.h
re2c/src/dfa/ins.h
re2c/src/dfa/re.h
re2c/src/dfa/rule_rank.h
re2c/src/dfa/state.h
re2c/src/globals.h
re2c/src/mbo_getopt.h
re2c/src/parse/input.h
re2c/src/parse/parser.h
re2c/src/parse/scanner.h
re2c/src/parse/token.h
re2c/src/util/allocate.h
re2c/src/util/c99_stdint.h
re2c/src/util/counter.h
re2c/src/util/forbid_copy.h
re2c/src/util/free_list.h
re2c/src/util/local_increment.h
re2c/src/util/range.h
re2c/src/util/smart_ptr.h
re2c/src/util/substr.h
re2c/src/util/uniq_vector.h
re2c/src/util/wrap_iterator.h