Clean up a few compile-time warnings

This commit is contained in:
whydoubt 2004-12-30 12:37:52 +00:00
parent 58c1aafd2a
commit 34f39973a1
3 changed files with 7 additions and 3 deletions

View File

@ -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> 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 * src/libmdb/data.c: Handle dates from 1/1/100 to 12/31/9999

View File

@ -308,7 +308,7 @@ typedef struct {
unsigned char cache_value[256]; unsigned char cache_value[256];
} MdbIndexPage; } MdbIndexPage;
typedef int (*MdbSargTreeFunc)(MdbSargNode *, gpointer *data); typedef int (*MdbSargTreeFunc)(MdbSargNode *, gpointer data);
#define MDB_MAX_INDEX_DEPTH 10 #define MDB_MAX_INDEX_DEPTH 10

View File

@ -63,7 +63,7 @@ like { return LIKE; }
return IDENT; 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); yyless(yyleng-1);
@ -77,7 +77,7 @@ like { return LIKE; }
(-*[0-9]+|([0-9]*\.[0-9]+)([eE][-+]?[0-9]+)?) { (-*[0-9]+|([0-9]*\.[0-9]+)([eE][-+]?[0-9]+)?) {
yylval.name = strdup(yytext); return NUMBER; 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]; } . { return yytext[0]; }
%% %%