#include "xbt.h"
#include "xbt/datadesc.h"
+#include "xbt/file_stat.h"
#include "../../src/xbt/datadesc/datadesc_private.h" // RAAAAH! ugly relative path, but it's late, I want it to be done NOW.
-#include "simix/datatypes.h"
+#include "simgrid/simix.h"
#include "../../src/simix/smx_smurf_private.h" // RAAAAH! ugly relative path, but it's even later and it still doesn't work
static void define_types(void) {
exit(1);
}
- parse_from_file("s_smx_simcall_t");
+// parse_from_file("s_smx_simcall_t");
parse_from_file(argv[1]);
int cpt;
if (field->offset[GRAS_THISARCH]<= offset&&
field->offset[GRAS_THISARCH]+field->type->size[GRAS_THISARCH] >= offset) {
found = 1;
- printf("This offset is somewhere in field %s, which starts at offset %zu and is of size %zu\n",
+ printf("This offset is somewhere in field %s, which starts at offset %ld and is of size %ld\n",
field->name,field->offset[GRAS_THISARCH],field->type->size[GRAS_THISARCH]);
}
}
if (!found) {
- printf("Damnit, the structure is too short to find the the field (last field %s was at offset %zu, with size %zu). Weird.\n",
+ printf("Damnit, the structure is too short to find the the field (last field %s was at offset %ld, with size %ld). Weird.\n",
field->name,field->offset[GRAS_THISARCH],field->type->size[GRAS_THISARCH]);
}
}