Searched refs:ptr (Results 1 – 7 of 7) sorted by relevance
/nanopb-3.4.0/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-3.4.0/extra/ |
D | pb_syshdr.h | 69 void *realloc(void *ptr, size_t size); 70 void free(void *ptr);
|
/nanopb-3.4.0/ |
D | pb.h | 475 # define pb_realloc(ptr, size) realloc(ptr, size) argument 478 # define pb_free(ptr) free(ptr) argument
|
D | pb_decode.c | 563 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/ |
D | pb.h | 475 # define pb_realloc(ptr, size) realloc(ptr, size) argument 478 # define pb_free(ptr) free(ptr) argument
|