1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <stdlib.h> #include "malloc-ipa-8-lto.h" boxed_int * make_boxed_int (int i) { boxed_int *result = (boxed_int *)wrapped_malloc (sizeof (boxed_int)); if (!result) abort (); result->i = i; return result; } void free_boxed_int (boxed_int *bi) { wrapped_free (bi); }