Changeset 3185 in MondoRescue for branches/3.0/mondo/src/include


Ignore:
Timestamp:
Sep 20, 2013, 2:29:57 PM (12 years ago)
Author:
Bruno Cornec
Message:

Simplify the interface of mr_getline and mr_asprintf. With 3.1 compatibility now will allow backports from this branch into 3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/include/mr_mem.h

    r3128 r3185  
    1919#define mr_free(x) mr_free_int((void **)&x,__LINE__,__FILE__)
    2020#define mr_allocstr(x,y) mr_allocstr_int(x,y,__LINE__,__FILE__)
    21 #define mr_asprintf(x,y,args...) mr_asprintf_int(x,__LINE__,__FILE__,y,## args)
    22 #define mr_getline(x,y) mr_getline_int(x,y,__LINE__,__FILE__)
     21#define mr_asprintf(x,y,args...) mr_asprintf_int((char **)&x,__LINE__,__FILE__,y,## args)
     22#define mr_getline(x,y) mr_getline_int((char **)&x,y,__LINE__,__FILE__)
    2323#define mr_malloc(x) mr_malloc_int((size_t)x,__LINE__,__FILE__)
    2424#define mr_setenv(x,y) mr_setenv_int(x,y,__LINE__,__FILE__)
Note: See TracChangeset for help on using the changeset viewer.