1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix the FTS3 module with parenthesis syntax so that it will work in

the amalgamation. (CVS 6087)

FossilOrigin-Name: c2b9891fc05ec05b270f108f61ab81b2df874e01
This commit is contained in:
drh
2008-12-31 16:01:04 +00:00
parent 04bbcd5ce9
commit aeba020bea
4 changed files with 13 additions and 11 deletions

View File

@ -82,7 +82,7 @@ struct ParseContext {
** any values that fall outside of the range of the unsigned char type (i.e.
** negative values).
*/
static int safe_isspace(char c){
static int safe_isspace_expr(char c){
return (c&0x80)==0 ? isspace(c) : 0;
}
@ -302,7 +302,7 @@ static int getNextNode(
/* Skip over any whitespace before checking for a keyword, an open or
** close bracket, or a quoted string.
*/
while( nInput>0 && safe_isspace(*zInput) ){
while( nInput>0 && safe_isspace_expr(*zInput) ){
nInput--;
zInput++;
}
@ -338,7 +338,7 @@ static int getNextNode(
** bracket, a quote character, or EOF.
*/
cNext = zInput[nKey];
if( safe_isspace(cNext)
if( safe_isspace_expr(cNext)
|| cNext=='"' || cNext=='(' || cNext==')' || cNext==0
){
pRet = (Fts3Expr *)sqlite3_malloc(sizeof(Fts3Expr));