misc/lempar.c
changeset 794 55bd6ae8be53
parent 717 4465cffe0a9f
child 834 f651801bfbbd
equal deleted inserted replaced
793:616980fb00bb 794:55bd6ae8be53
   271 ** Outputs:
   271 ** Outputs:
   272 ** A pointer to a parser.  This pointer is used in subsequent calls
   272 ** A pointer to a parser.  This pointer is used in subsequent calls
   273 ** to Parse and ParseFree.
   273 ** to Parse and ParseFree.
   274 */
   274 */
   275 #if __MOJOSHADER__
   275 #if __MOJOSHADER__
   276 static void *ParseAlloc(void *(*mallocProc)(size_t,void *), void *malloc_data){
   276 static void *ParseAlloc(void *(*mallocProc)(int,void *), void *malloc_data){
   277   yyParser *pParser;
   277   yyParser *pParser;
   278   pParser = (yyParser*)(*mallocProc)( (size_t)sizeof(yyParser), malloc_data );
   278   pParser = (yyParser*)(*mallocProc)( (int)sizeof(yyParser), malloc_data );
   279 #else
   279 #else
   280 void *ParseAlloc(void *(*mallocProc)(size_t)){
   280 void *ParseAlloc(void *(*mallocProc)(size_t)){
   281   yyParser *pParser;
   281   yyParser *pParser;
   282   pParser = (yyParser*)(*mallocProc)( (size_t)sizeof(yyParser) );
   282   pParser = (yyParser*)(*mallocProc)( (size_t)sizeof(yyParser) );
   283 #endif
   283 #endif