Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Use reference to types intead of type IDs
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 18 Mar 2014 14:51:51 +0000 (15:51 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 18 Mar 2014 15:09:23 +0000 (16:09 +0100)
commit99a794dae9b8a2ddbe8cd650cad97105f41f94bf
tree128b133318271459cf1c50786d1594e7a17813c1
parentad5ee977c604c3348f24ef6f27e2ba160c87ae7b
[mc] Use reference to types intead of type IDs

We do not need to pass the type ID+object_info everywhere.
It is much simpler to pass a pointer to the type (dw_type_t):

 * remove 'info', 'other_info' parameters;

 * remove cumbersome 'switch_types' logic (code duplication);

 * remove type ID confusion in mm_diff (the type ID of each block was
   stored but not the originating ELF obejct leading to an ambiguity);

 * the code is now generalisable to more than 2 ELF objects;

 * remove type lookups (by name, by ID) which are all resolved at
   initialisation time.
include/xbt/mmalloc.h
src/mc/mc_compare.c
src/mc/mc_global.c
src/mc/mc_private.h
src/xbt/mmalloc/mm_diff.c