forked from len0rd/rockbox
Code policy...
Removed tokentool for now since this is not the proper place, but what is? git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6383 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
388d9ff6a3
commit
ec407a86a7
7 changed files with 329 additions and 417 deletions
|
@ -16,8 +16,8 @@
|
|||
* KIND, either express or implied.
|
||||
*
|
||||
****************************************************************************/
|
||||
#define TOKEN_INVALID -1
|
||||
#define TOKEN_EOF 0 // EOF
|
||||
#define TOKEN_INVALID -1
|
||||
#define TOKEN_EOF 0 // EOF
|
||||
#define TOKEN_NOT 1 // "not"
|
||||
#define TOKEN_AND 2 // "and"
|
||||
#define TOKEN_OR 3 // "or"
|
||||
|
@ -28,7 +28,7 @@
|
|||
#define TOKEN_EQ 8 // '=='
|
||||
#define TOKEN_NE 9 // '!='
|
||||
#define TOKEN_CONTAINS 10 // "contains"
|
||||
#define TOKEN_EQUALS 11 // "equals"
|
||||
#define TOKEN_EQUALS 11 // "equals"
|
||||
#define TOKEN_LPAREN 12 // '('
|
||||
#define TOKEN_RPAREN 13 // ')'
|
||||
#define TOKEN_NUM 14 // (0..9)+
|
||||
|
@ -36,17 +36,17 @@
|
|||
#define TOKEN_STRING 16 // (?)+
|
||||
#define TOKEN_STRINGIDENTIFIER 17 // album, artist, title, genre ...
|
||||
|
||||
#define INTVALUE_YEAR 1
|
||||
#define INTVALUE_RATING 2
|
||||
#define INTVALUE_PLAYCOUNT 3
|
||||
#define INTVALUE_TITLE 4
|
||||
#define INTVALUE_ARTIST 5
|
||||
#define INTVALUE_ALBUM 6
|
||||
#define INTVALUE_GENRE 7
|
||||
#define INTVALUE_FILENAME 8
|
||||
#define INTVALUE_YEAR 1
|
||||
#define INTVALUE_RATING 2
|
||||
#define INTVALUE_PLAYCOUNT 3
|
||||
#define INTVALUE_TITLE 4
|
||||
#define INTVALUE_ARTIST 5
|
||||
#define INTVALUE_ALBUM 6
|
||||
#define INTVALUE_GENRE 7
|
||||
#define INTVALUE_FILENAME 8
|
||||
|
||||
/* static char *spelling[] = { "not", "and", "or",">",">=","<", "<=","==","!=",
|
||||
"contains","(",")" }; */
|
||||
"contains","(",")" }; */
|
||||
|
||||
struct token {
|
||||
unsigned char kind;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue