Home
last modified time | relevance | path

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

/nanopb-3.4.0/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-3.4.0/extra/
Dpb_syshdr.h69 void *realloc(void *ptr, size_t size);
70 void free(void *ptr);
/nanopb-3.4.0/
Dpb.h475 # define pb_realloc(ptr, size) realloc(ptr, size) argument
478 # define pb_free(ptr) free(ptr) argument
Dpb_decode.c563 void *ptr = *(void**)pData; in allocate_field() local
598 ptr = pb_realloc(ptr, array_size * data_size); in allocate_field()
599 if (ptr == NULL) in allocate_field()
602 *(void**)pData = ptr; in allocate_field()
/nanopb-3.4.0/spm_headers/nanopb/
Dpb.h475 # define pb_realloc(ptr, size) realloc(ptr, size) argument
478 # define pb_free(ptr) free(ptr) argument