MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / dtoa_alloc

Function dtoa_alloc

strings/dtoa.c:722–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720*/
721
722static char *dtoa_alloc(int i, Stack_alloc *alloc)
723{
724 char *rv;
725 int aligned_size= MY_ALIGN(i, SIZEOF_CHARP);
726 if (alloc->free + aligned_size <= alloc->end)
727 {
728 rv= alloc->free;
729 alloc->free+= aligned_size;
730 }
731 else
732 rv= malloc(i);
733 return rv;
734}
735
736
737/*

Callers 1

dtoaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected