aboutsummaryrefslogtreecommitdiff
path: root/src/tokenize.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-07-13 10:26:08 +0000
committerdrh <drh@noemail.net>2007-07-13 10:26:08 +0000
commiteba1a1ebee85bca3942081bf7b0dba4421868c61 (patch)
treed6969af3313cb55b5110f3badd1b738f9d2a6498 /src/tokenize.c
parent612642de320b8d2591cf40c95c6735ff81f4c1e6 (diff)
downloadsqlite-eba1a1ebee85bca3942081bf7b0dba4421868c61.tar.gz
sqlite-eba1a1ebee85bca3942081bf7b0dba4421868c61.zip
"extern" prototypes cause problems for the Digital Mars compiler. So
remove them. Ticket #2502. (CVS 4156) FossilOrigin-Name: f35fbf8070d770a603960b2a2afdeae91574ed5f
Diffstat (limited to 'src/tokenize.c')
-rw-r--r--src/tokenize.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tokenize.c b/src/tokenize.c
index b5a7f8580..a0a57a177 100644
--- a/src/tokenize.c
+++ b/src/tokenize.c
@@ -15,7 +15,7 @@
** individual tokens and sends those tokens one-by-one over to the
** parser for analysis.
**
-** $Id: tokenize.c,v 1.129 2007/05/15 14:34:32 drh Exp $
+** $Id: tokenize.c,v 1.130 2007/07/13 10:26:08 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -381,6 +381,13 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){
}
/*
+** The interface to the LEMON-generated parser
+*/
+void *sqlite3ParserAlloc(void*(*)(size_t));
+void sqlite3ParserFree(void*, void(*)(void*));
+void sqlite3Parser(void*, int, Token, Parse*);
+
+/*
** Run the parser on the given SQL string. The parser structure is
** passed in. An SQLITE_ status code is returned. If an error occurs
** and pzErrMsg!=NULL then an error message might be written into
@@ -394,9 +401,6 @@ int sqlite3RunParser(Parse *pParse, const char *zSql, char **pzErrMsg){
int tokenType;
int lastTokenParsed = -1;
sqlite3 *db = pParse->db;
- extern void *sqlite3ParserAlloc(void*(*)(size_t));
- extern void sqlite3ParserFree(void*, void(*)(void*));
- extern void sqlite3Parser(void*, int, Token, Parse*);
if( db->activeVdbeCnt==0 ){
db->u1.isInterrupted = 0;