Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix HAVE_FOOBAR flags handling
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 9 Mar 2016 10:14:02 +0000 (11:14 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Wed, 9 Mar 2016 10:54:56 +0000 (11:54 +0100)
commita4d071afeab4b3ff0a50eefbf48a391d4e8978aa
tree25fe9bce17e3c334468bd0d8aa226343bfe5feb0
parentefaa420b9308f3814c360660953650cf8e26d744
Fix HAVE_FOOBAR flags handling

* always #define them (to 0 or 1);

* check with FOO instead of defined(FOO);

This way we detect missing #includes with -Wundef.
47 files changed:
include/xbt/mmalloc.h
src/include/mc/datatypes.h
src/include/mc/mc.h
src/mc/Process.cpp
src/mc/mc_checkpoint.cpp
src/mc/mc_compare.cpp
src/mc/mc_ignore.cpp
src/mc/mc_smx.cpp
src/mc/mc_snapshot.cpp
src/mc/mc_unw_vmread.cpp
src/simgrid/sg_config.c
src/simix/BoostContext.cpp
src/simix/RawContext.cpp
src/simix/UContext.cpp
src/simix/smx_context.cpp
src/simix/smx_global.cpp
src/simix/smx_private.h
src/smpi/smpi_bench.cpp
src/smpi/smpi_dvfs.cpp
src/surf/surf_interface.cpp
src/xbt/automaton/automaton_lexer.yy.c
src/xbt/automaton/parserPromela.lex
src/xbt/automaton/parserPromela.tab.cacc
src/xbt/automaton/parserPromela.yacc
src/xbt/ex.c
src/xbt/mmalloc/mm.c
src/xbt/mmalloc/mm_module.c
src/xbt/mmalloc/mmorecore.c
src/xbt/parmap.cpp
src/xbt/snprintf.c
src/xbt/xbt_log_appender_file.c
src/xbt/xbt_log_layout_format.c
src/xbt/xbt_main.c
src/xbt/xbt_os_thread.c
src/xbt/xbt_os_time.c
teshsuite/simdag/platforms/Evaluate_parse_time.c
teshsuite/smpi/mpich3-test/coll/nonblocking3.c
teshsuite/smpi/mpich3-test/datatype/contents.c
teshsuite/smpi/mpich3-test/rma/linked_list.c
teshsuite/smpi/mpich3-test/rma/linked_list_bench_lock_all.c
teshsuite/smpi/mpich3-test/rma/linked_list_bench_lock_excl.c
teshsuite/smpi/mpich3-test/rma/linked_list_bench_lock_shr.c
teshsuite/smpi/mpich3-test/rma/linked_list_fop.c
teshsuite/smpi/mpich3-test/rma/linked_list_lockall.c
teshsuite/xbt/parmap_bench/parmap_bench.c
teshsuite/xbt/parmap_test/parmap_test.c
tools/cmake/src/internal_config.h.in