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

Function fxPatternParserCreateTerm

xs/sources/xsre.c:2267–2276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2265}
2266
2267void* fxPatternParserCreateTerm(txPatternParser* parser, size_t size, txTermMeasure measure)
2268{
2269 txTerm* term = c_malloc(size);
2270 if (!term)
2271 fxPatternParserError(parser, gxErrors[mxNotEnoughMemory]);
2272 term->next = parser->first;
2273 term->dispatch.measure = measure;
2274 parser->first = term;
2275 return term;
2276}
2277
2278void fxPatternParserInitialize(txPatternParser* parser)
2279{

Callers 15

fxCharSetAnyFunction · 0.85
fxCharSetCombineFunction · 0.85
fxCharSetDigitsFunction · 0.85
fxCharSetEmptyFunction · 0.85
fxCharSetNotFunction · 0.85
fxCharSetRangeFunction · 0.85
fxCharSetSingleFunction · 0.85
fxCharSetSpacesFunction · 0.85
fxCharSetStringsFunction · 0.85
fxCharSetStringsSequenceFunction · 0.85
fxCharSetWordsFunction · 0.85

Calls 1

fxPatternParserErrorFunction · 0.85

Tested by

no test coverage detected