MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxPatternParserCreateChunk

Function fxPatternParserCreateChunk

xs/sources/xsre.c:2257–2265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2255}
2256
2257void* fxPatternParserCreateChunk(txPatternParser* parser, txSize size)
2258{
2259 txTerm* term = c_malloc(sizeof(txTerm*) + size);
2260 if (!term)
2261 fxPatternParserError(parser, gxErrors[mxNotEnoughMemory]);
2262 term->next = parser->first;
2263 parser->first = term;
2264 return (void*)(((txByte*)term) + sizeof(txTerm*));
2265}
2266
2267void* fxPatternParserCreateTerm(txPatternParser* parser, size_t size, txTermMeasure measure)
2268{

Callers 3

fxCharSetCombineFunction · 0.85
fxCharSetStringsFunction · 0.85
fxCaptureNamePutFunction · 0.85

Calls 1

fxPatternParserErrorFunction · 0.85

Tested by

no test coverage detected