diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2021-09-25 07:32:33 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2021-09-25 08:03:22 +0200 |
commit | 028df02a9fd60a489caaed066e5b07f96e029878 (patch) | |
tree | df0c9fe9c7e10c032d4ea2b06b037db95d62abe9 /cfg.mk | |
parent | 71dfc86d58c2276fde3bea2a32646eed4e95fe5c (diff) | |
download | bison-028df02a9fd60a489caaed066e5b07f96e029878.tar.gz |
avoid using atoi
* cfg.mk: Disable sc_indent as auto indent is too invasive for now.
Enable sc_prohibit_atoi_atof, except where we don't care.
* src/location.c, src/muscle-tab.c: Use strtol instead of atoi.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -42,7 +42,7 @@ url_dir_list = \ # Tests not to run as part of "make distcheck". local-checks-to-skip = \ sc_immutable_NEWS \ - sc_prohibit_atoi_atof + sc_indent # The local directory containing the checked-out copy of gnulib used in # this release. Used solely to get a date for the "announcement" target. @@ -164,6 +164,7 @@ $(call exclude, prohibit_always-defined_macros=^data/skeletons/yacc.c$$ \ prohibit_always-defined_macros+=?|^src/(parse-gram.c|system.h)$$ \ prohibit_always-defined_macros+=?|^tests/regression.at$$ \ + prohibit_atoi_atof=^(doc|etc|examples|tests)/ \ prohibit_doubled_word=^tests/named-refs.at$$ \ prohibit_magic_number_exit=^doc/bison.texi$$ \ prohibit_magic_number_exit+=?|^tests/(conflicts|regression).at$$ \ |