Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ONGOING work on exceptions plus minor cleanups.
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 6 Aug 2005 22:20:59 +0000 (22:20 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 6 Aug 2005 22:20:59 +0000 (22:20 +0000)
commit9189fe94c14ef9e31142d1603a1979ea7e731a0a
tree5952ee59ea3ea97f5d13544758748dce85d8bc9a
parentcb9dad4e95bf3b7434cae7f56ec767befca84f4e
ONGOING work on exceptions plus minor cleanups.
DO NOT checkout if you need it *fully* functional.

 - Eradicate xbt_error_t in flavor of exceptions (there's still 98 such
   beasts from 463)
 - Kill some unused variable (compile with -Wunused-variable to achieve
   previous count down)
 - Now that the return value of the functions are not used by the error
   handling, begin moving the OUT argument from the last position to its
   natural place. For example:
      xbt_error_t gras_socket_server(unsigned short port,
                                     /* OUT */ gras_socket_t *dst);
   became:
      gras_socket_t gras_socket_server(unsigned short port);
   More may be needed on that front.
 - Begin adding some exception free functions for the fools:
    xbt_dict_get_or_null returns NULL when not found without throwing any
      exception. It prevents you to store NULL in the dict, but saves your
      mind from the C-ANSI exception madness.
    More are needed here, I guess.
 - Add the backtrace to the exceptions to ease their debuging. This is
   highly non-portable (glibc only), and the autotoys are not in place yet
   This is probably not the only portability breakage.
 - GRAS_DEFINE_TYPE (the parsing macro) is still broken by these changes
   But I need some sleep.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1582 48e7efb5-ca39-0410-a469-dd3cf9ba447f
92 files changed:
acmacro/compiler-flags.m4
examples/amok/bandwidth/bandwidth.c
examples/gras/ping/ping.c
examples/gras/tokenS/tokenS.c
include/gras.h
include/gras/messages.h
include/gras/process.h
include/gras/timer.h
include/gras/transport.h
include/msg/msg.h
include/xbt/config.h
include/xbt/dict.h
include/xbt/dynar.h
include/xbt/error.h
include/xbt/ex.h
include/xbt/set.h
include/xbt/sysdep.h
src/Makefile.am
src/amok/Bandwidth/bandwidth.c
src/amok/Bandwidth/saturate.c
src/amok/base.c
src/gras/DataDesc/cbps.c
src/gras/DataDesc/datadesc_interface.h
src/gras/DataDesc/ddt_create.c
src/gras/DataDesc/ddt_exchange.c
src/gras/DataDesc/ddt_parse.c
src/gras/DataDesc/ddt_parse.yy.c
src/gras/DataDesc/ddt_parse.yy.l
src/gras/Msg/msg.c
src/gras/Msg/msg_private.h
src/gras/Msg/timer.c
src/gras/Transport/rl_transport.c
src/gras/Transport/sg_transport.c
src/gras/Transport/transport.c
src/gras/Transport/transport_interface.h
src/gras/Transport/transport_plugin_buf.c
src/gras/Transport/transport_plugin_file.c
src/gras/Transport/transport_plugin_sg.c
src/gras/Transport/transport_plugin_tcp.c
src/gras/Transport/transport_private.h
src/gras/Virtu/process.c
src/gras/Virtu/rl_emul.c
src/gras/Virtu/rl_process.c
src/gras/Virtu/sg_emul.c
src/gras/Virtu/sg_process.c
src/include/surf/surf_parse.h
src/msg/deployment.c
src/msg/environment.c
src/msg/global.c
src/msg/gos.c
src/msg/m_process.c
src/msg/msg_config.c
src/msg/task.c
src/surf/cpu.c
src/surf/network.c
src/surf/network_dassf.c
src/surf/surf_parse.c
src/surf/surf_timer.c
src/surf/trace_mgr.c
src/surf/workstation.c
src/surf/workstation_KCCFLN05.c
src/xbt/config.c
src/xbt/context.c
src/xbt/dict.c
src/xbt/dict_cursor.c
src/xbt/dict_elm.c
src/xbt/dict_multi.c
src/xbt/dict_private.h
src/xbt/dynar.c
src/xbt/error.c
src/xbt/ex.c
src/xbt/fifo.c
src/xbt/log.c
src/xbt/set.c
src/xbt/sysdep.c
testsuite/gras/datadesc_usage.c
testsuite/gras/mk_datadesc_structs.pl
testsuite/gras/trp_file_client.c
testsuite/gras/trp_file_server.c
testsuite/gras/trp_tcp_client.c
testsuite/gras/trp_tcp_server.c
testsuite/run_tests.in
testsuite/surf/surf_usage2.c
testsuite/xbt/config_usage.c
testsuite/xbt/dict_crash.c
testsuite/xbt/dict_usage.c
testsuite/xbt/dynar_double.c
testsuite/xbt/dynar_int.c
testsuite/xbt/dynar_string.c
testsuite/xbt/ex_test.c
testsuite/xbt/multidict_crash.c
testsuite/xbt/set_usage.c