Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 7 of 7) sorted by relevance

/nanopb-2.7.6/tests/common/
Dmalloc_wrappers_syshdr.h3 #define pb_realloc(ptr,size) realloc_with_check(ptr,size) argument
4 #define pb_free(ptr) free_with_check(ptr) argument
Dmalloc_wrappers.c101 void* realloc_with_check(void *ptr, size_t size) in realloc_with_check() argument
103 if (!ptr && size) in realloc_with_check()
108 else if (ptr && size) in realloc_with_check()
111 char *buf = (char*)ptr - PREFIX_SIZE; in realloc_with_check()
135 …) fprintf(stderr, "Realloc 0x%04x/%u to %u failed\n", (unsigned)(uintptr_t)ptr, (unsigned)oldsize,… in realloc_with_check()
145 …) fprintf(stderr, "Realloc 0x%04x/%u to 0x%04x/%u\n", (unsigned)(uintptr_t)ptr, (unsigned)oldsize,… in realloc_with_check()
148 else if (ptr && !size) in realloc_with_check()
151 free_with_check(ptr); in realloc_with_check()
Dmalloc_wrappers.h5 void* realloc_with_check(void *ptr, size_t size);
/nanopb-2.7.6/extra/
Dpb_syshdr.h69 void *realloc(void *ptr, size_t size);
70 void free(void *ptr);
/nanopb-2.7.6/spm_headers/nanopb/
Dpb.h438 # define pb_realloc(ptr, size) realloc(ptr, size) argument
441 # define pb_free(ptr) free(ptr) argument
/nanopb-2.7.6/
Dpb.h438 # define pb_realloc(ptr, size) realloc(ptr, size) argument
441 # define pb_free(ptr) free(ptr) argument
Dpb_decode.c561 void *ptr = *(void**)pData; in allocate_field() local
596 ptr = pb_realloc(ptr, array_size * data_size); in allocate_field()
597 if (ptr == NULL) in allocate_field()
600 *(void**)pData = ptr; in allocate_field()