mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
:-) (CVS 14)
FossilOrigin-Name: 1bb8ee8d9f1d3c409a11910e7552e4bb5e7f5f87
This commit is contained in:
@@ -27,10 +27,11 @@
|
||||
** individual tokens and sends those tokens one-by-one over to the
|
||||
** parser for analysis.
|
||||
**
|
||||
** $Id: tokenize.c,v 1.1 2000/05/29 14:26:02 drh Exp $
|
||||
** $Id: tokenize.c,v 1.2 2000/05/30 13:44:20 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/*
|
||||
** All the keywords of the SQL language are stored as in a hash
|
||||
@@ -287,7 +288,7 @@ int sqliteRunParser(Parse *pParse, char *zSql, char **pzErrMsg){
|
||||
extern void sqliteParserTrace(FILE*, char *);
|
||||
|
||||
i = 0;
|
||||
pEngine = sqliteParserAlloc(sqliteMalloc);
|
||||
pEngine = sqliteParserAlloc((void(*)())malloc);
|
||||
if( pEngine==0 ){
|
||||
sqliteSetString(pzErrMsg, "out of memory", 0);
|
||||
return 1;
|
||||
@@ -354,7 +355,7 @@ int sqliteRunParser(Parse *pParse, char *zSql, char **pzErrMsg){
|
||||
nErr++;
|
||||
}
|
||||
}
|
||||
sqliteParserFree(pEngine, sqliteFree);
|
||||
sqliteParserFree(pEngine, free);
|
||||
if( pParse->zErrMsg ){
|
||||
if( pzErrMsg ){
|
||||
*pzErrMsg = pParse->zErrMsg;
|
||||
|
||||
Reference in New Issue
Block a user