Searched refs:ptr (Results 1 – 7 of 7) sorted by relevance
/nanopb-2.7.6/tests/common/ |
D | malloc_wrappers_syshdr.h | 3 #define pb_realloc(ptr,size) realloc_with_check(ptr,size) argument 4 #define pb_free(ptr) free_with_check(ptr) argument
|
D | malloc_wrappers.c | 101 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()
|
D | malloc_wrappers.h | 5 void* realloc_with_check(void *ptr, size_t size);
|
/nanopb-2.7.6/extra/ |
D | pb_syshdr.h | 69 void *realloc(void *ptr, size_t size); 70 void free(void *ptr);
|
/nanopb-2.7.6/spm_headers/nanopb/ |
D | pb.h | 438 # define pb_realloc(ptr, size) realloc(ptr, size) argument 441 # define pb_free(ptr) free(ptr) argument
|
/nanopb-2.7.6/ |
D | pb.h | 438 # define pb_realloc(ptr, size) realloc(ptr, size) argument 441 # define pb_free(ptr) free(ptr) argument
|
D | pb_decode.c | 561 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()
|