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