mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Clean up a few compile-time warnings
This commit is contained in:
parent
58c1aafd2a
commit
34f39973a1
@ -1,3 +1,7 @@
|
||||
Thu Dec 30 06:36:25 CST 2004 Jeff Smith <whydoubt@yahoo.com>
|
||||
* include/mdbtools.h: Fix MdbSargTreeFunc's typedef
|
||||
* src/sql/lexer.l: Fix flex warning about A-z ambiguity
|
||||
|
||||
Tue Dec 28 21:25:24 CST 2004 Jeff Smith <whydoubt@yahoo.com>
|
||||
* src/libmdb/data.c: Handle dates from 1/1/100 to 12/31/9999
|
||||
|
||||
|
@ -308,7 +308,7 @@ typedef struct {
|
||||
unsigned char cache_value[256];
|
||||
} MdbIndexPage;
|
||||
|
||||
typedef int (*MdbSargTreeFunc)(MdbSargNode *, gpointer *data);
|
||||
typedef int (*MdbSargTreeFunc)(MdbSargNode *, gpointer data);
|
||||
|
||||
#define MDB_MAX_INDEX_DEPTH 10
|
||||
|
||||
|
@ -63,7 +63,7 @@ like { return LIKE; }
|
||||
return IDENT;
|
||||
}
|
||||
|
||||
[A-z][A-z0-9_#@]* { yylval.name = strdup(yytext); return NAME; }
|
||||
[A-Za-z][A-Za-z0-9_#@]* { yylval.name = strdup(yytext); return NAME; }
|
||||
|
||||
'[^']*'' {
|
||||
yyless(yyleng-1);
|
||||
@ -77,7 +77,7 @@ like { return LIKE; }
|
||||
(-*[0-9]+|([0-9]*\.[0-9]+)([eE][-+]?[0-9]+)?) {
|
||||
yylval.name = strdup(yytext); return NUMBER;
|
||||
}
|
||||
~?(\/?[A-z0-9\.]+)+ { yylval.name = strdup(yytext); return PATH; }
|
||||
~?(\/?[A-Za-z0-9\.]+)+ { yylval.name = strdup(yytext); return PATH; }
|
||||
. { return yytext[0]; }
|
||||
%%
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user