diff options
author | Akim Demaille <demaille@gostai.com> | 2012-02-19 11:40:36 +0100 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2012-02-19 18:25:24 +0100 |
commit | 43e9e2a113dd4c30e304e5130cfca83ea704c14e (patch) | |
tree | a58411947a36119c6d2b0fbf569737e460f53278 /data/yacc.c | |
parent | a055b2f07dbbc37cf15b5d8cfb8b0df226d3f65e (diff) | |
download | bison-43e9e2a113dd4c30e304e5130cfca83ea704c14e.tar.gz |
maint: address sc_prohibit_always-defined_macros.
* cfg.mk: No longer skip it, except where EXIT_SUCCESS is used
as a witness for stdlib.h.
Skip this test when appropriate.
* data/yacc.c: Drop a note about why EXIT_SUCCESS is defined here.
Conflicts:
cfg.mk
Diffstat (limited to 'data/yacc.c')
-rw-r--r-- | data/yacc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/data/yacc.c b/data/yacc.c index 3d535009..d18b2698 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -437,6 +437,7 @@ b4_push_if([], [b4_lac_if([], [[ # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && ]b4_c_modern[ # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif |