Home
last modified time | relevance | path

Searched refs:ANTLR3_MALLOC (Results 1 – 19 of 19) sorted by relevance

/external/antlr/runtime/C/src/
Dantlr3collections.c135 table = (pANTLR3_HASH_TABLE)ANTLR3_MALLOC(sizeof(ANTLR3_HASH_TABLE)); in antlr3HashTableNew()
145 …table->buckets = (pANTLR3_HASH_BUCKET) ANTLR3_MALLOC((size_t) (sizeof(ANTLR3_HASH_BUCKET) * sizeHi… in antlr3HashTableNew()
569 entry = (pANTLR3_HASH_ENTRY)ANTLR3_MALLOC((size_t)sizeof(ANTLR3_HASH_ENTRY)); in antlr3HashPutI()
640 entry = (pANTLR3_HASH_ENTRY)ANTLR3_MALLOC((size_t)sizeof(ANTLR3_HASH_ENTRY)); in antlr3HashPut()
679 en = (pANTLR3_HASH_ENUM) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_HASH_ENUM)); in antlr3EnumNew()
869 list = (pANTLR3_LIST)ANTLR3_MALLOC((size_t)sizeof(ANTLR3_LIST)); in antlr3ListNew()
970 stack = (pANTLR3_STACK)ANTLR3_MALLOC((size_t)sizeof(ANTLR3_STACK)); in antlr3StackNew()
1061 vector = (pANTLR3_VECTOR) ANTLR3_MALLOC((size_t)(sizeof(ANTLR3_VECTOR))); in antlr3VectorNew()
1095 …vector->elements = (pANTLR3_VECTOR_ELEMENT)ANTLR3_MALLOC((size_t)(sizeof(ANTLR3_VECTOR_ELEMENT) * … in antlr3SetVectorApi()
1328 …vector->elements = (pANTLR3_VECTOR_ELEMENT)ANTLR3_MALLOC((sizeof(ANTLR3_VECTOR_ELEMENT)* newSize)); in antlr3VectorResize()
[all …]
Dantlr3bitset.c84 bitset = (pANTLR3_BITSET) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_BITSET)); in antlr3BitsetNew()
103 …bitset->blist.bits = (pANTLR3_BITWORD) ANTLR3_MALLOC((size_t)(numelements * sizeof(ANTLR3_BITWO… in antlr3BitsetNew()
147 bitset = (pANTLR3_BITSET) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_BITSET)); in antlr3BitsetCopy()
167 …bitset->blist.bits = (pANTLR3_BITWORD)ANTLR3_MALLOC((size_t)(numElements * sizeof(ANTLR3_BITWOR… in antlr3BitsetCopy()
657 intList = (pANTLR3_INT32)ANTLR3_MALLOC(numInts * sizeof(ANTLR3_INT32)); in antlr3BitsetToIntList()
Dantlr3string.c190 string = (pANTLR3_STRING) ANTLR3_MALLOC(sizeof(ANTLR3_STRING)); in newRaw8()
219 string = (pANTLR3_STRING) ANTLR3_MALLOC(sizeof(ANTLR3_STRING)); in newRawUTF16()
383 utf8String->chars = (pANTLR3_UINT8)ANTLR3_MALLOC(utf8String->size +1); in toUTF8_UTF16()
434 string->chars = (pANTLR3_UINT8) ANTLR3_MALLOC((size_t)(sizeof(ANTLR3_UINT8) * (size+1))); in newSize8()
464 string->chars = (pANTLR3_UINT8) ANTLR3_MALLOC((size_t)(sizeof(ANTLR3_UINT16) * (size+1))); in newSizeUTF16()
1441 newStr->chars = (pANTLR3_UINT8) ANTLR3_MALLOC((size_t)(string->len + 1)); in to8_UTF16()
Dantlr3parser.c67 parser = (pANTLR3_PARSER) ANTLR3_MALLOC(sizeof(ANTLR3_PARSER)); in antlr3ParserNew()
Dantlr3commontree.c71 factory = (pANTLR3_ARBORETUM) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_ARBORETUM)); in antlr3ArboretumNew()
150 ANTLR3_MALLOC((size_t)(sizeof(ANTLR3_COMMON_TREE) * ANTLR3_FACTORY_POOL_SIZE)); in newPool()
Dantlr3treeparser.c58 parser =(pANTLR3_TREE_PARSER) ANTLR3_MALLOC(sizeof(ANTLR3_TREE_PARSER)); in antlr3TreeParserNewStream()
Dantlr3filestream.c375 input->data = ANTLR3_MALLOC((size_t)fSize); in antlr3read8Bit()
Dantlr3tokenstream.c99 stream = (pANTLR3_TOKEN_STREAM) ANTLR3_MALLOC(sizeof(ANTLR3_TOKEN_STREAM)); in antlr3TokenStreamNew()
260 stream = (pANTLR3_COMMON_TOKEN_STREAM) ANTLR3_MALLOC(sizeof(ANTLR3_COMMON_TOKEN_STREAM)); in antlr3CommonTokenStreamNew()
Dantlr3commontoken.c98 factory = (pANTLR3_TOKEN_FACTORY) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_TOKEN_FACTORY)); in antlr3TokenFactoryNew()
Dantlr3commontreeadaptor.c90 cta = (pANTLR3_COMMON_TREE_ADAPTOR) ANTLR3_MALLOC((size_t)(sizeof(ANTLR3_COMMON_TREE_ADAPTOR))); in ANTLR3_TREE_ADAPTORNew()
Dantlr3rewritestreams.c212 …stream = (pANTLR3_REWRITE_RULE_ELEMENT_STREAM) ANTLR3_MALLOC((size_t)(sizeof(ANTLR3_REWRITE_RULE_E… in antlr3RewriteRuleElementStreamNewAE()
Dantlr3debughandlers.c794 buffer = (unsigned char *)ANTLR3_MALLOC(64 + 2*strlen(predicate)); in semanticPredicate()
Dantlr3lexer.c79 lexer = (pANTLR3_LEXER) ANTLR3_MALLOC(sizeof(ANTLR3_LEXER)); in antlr3LexerNew()
Dantlr3inputstream.c461 state = (pANTLR3_LEX_STATE)ANTLR3_MALLOC(sizeof(ANTLR3_LEX_STATE)); in antlr38BitMark()
Dantlr3baserecognizer.c90 … recognizer = (pANTLR3_BASE_RECOGNIZER) ANTLR3_MALLOC((size_t)sizeof(ANTLR3_BASE_RECOGNIZER)); in antlr3BaseRecognizerNew()
/external/antlr/runtime/C/include/
Dantlr3defs.h458 #ifndef ANTLR3_MALLOC
462 #define ANTLR3_MALLOC(request) malloc ((size_t)(request)) macro
/external/antlr/runtime/C/doxygen/
Datsections.dox123 /// special version of malloc, you can <code>\#define</code> #ANTLR3_MALLOC to match the definition
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/C/
DAST.stg235 …tcopy = (RETURN_TYPE_<label> *)ANTLR3_MALLOC(sizeof(RETURN_TYPE_<label>)); /* Note no memory alloc…
DC.stg2962 …newAttributes = (<scopeType(sname=scope.name)>) ANTLR3_MALLOC(sizeof(<scopeStruct(sname=scope.name…