Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Gcc is *very* permissive with pointers to functions. If we declare them as function...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 4 Oct 2007 13:07:35 +0000 (13:07 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 4 Oct 2007 13:07:35 +0000 (13:07 +0000)
commit0446fc9e3f379b9aff5e0bb44cf06d06b9e663cc
treee21b7e31d1378834d84f7c8501278ab3cb7a1787
parente0c3ddb2a70bac21cf1b9c57b6ef8860f9f6d924
Gcc is *very* permissive with pointers to functions. If we declare them as function, it understands that we meant pointer to functions. If we try to call a pointer to function, it understand we want to dereference that pointer before the call. Visual C++ is not that cleaver (what a surprise). So, try to sanitize a bit the situation by doing the Right Thing without expecting the compiler to understand what we really meant in the middle of what we said. (sorry for the huge diff)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4783 48e7efb5-ca39-0410-a469-dd3cf9ba447f
41 files changed:
include/gras/datadesc.h
include/gras/module.h
include/surf/surfxml_parse.h
include/xbt/dict.h
include/xbt/dynar.h
include/xbt/function_types.h
include/xbt/graph.h
include/xbt/graphxml_parse.h
include/xbt/heap.h
include/xbt/matrix.h
include/xbt/set.h
include/xbt/synchro.h
include/xbt/virtu.h
src/gras/DataDesc/ddt_create.c
src/gras/DataDesc/ddt_parse.c
src/gras/Msg/msg_private.h
src/gras/Msg/timer.c
src/gras/Virtu/gras_module.c
src/gras/Virtu/process.c
src/include/simix/simix.h
src/simix/private.h
src/simix/smx_deployment.c
src/simix/smx_global.c
src/surf/surfxml_parse.c
src/xbt/context_private.h
src/xbt/dict.c
src/xbt/dict_multi.c
src/xbt/dict_private.h
src/xbt/dynar.c
src/xbt/dynar_private.h
src/xbt/graph.c
src/xbt/graphxml_parse.c
src/xbt/heap.c
src/xbt/heap_private.h
src/xbt/mallocator_private.h
src/xbt/set.c
src/xbt/xbt_matrix.c
src/xbt/xbt_os_thread.c
src/xbt/xbt_rl_synchro.c
src/xbt/xbt_sg_synchro.c
src/xbt/xbt_virtu.c