summaryrefslogtreecommitdiff
path: root/apps/plugins/searchengine/token.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/searchengine/token.h')
-rw-r--r--apps/plugins/searchengine/token.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/plugins/searchengine/token.h b/apps/plugins/searchengine/token.h
index 0df4a6ec5f..75a88c3814 100644
--- a/apps/plugins/searchengine/token.h
+++ b/apps/plugins/searchengine/token.h
@@ -16,8 +16,8 @@
16 * KIND, either express or implied. 16 * KIND, either express or implied.
17 * 17 *
18 ****************************************************************************/ 18 ****************************************************************************/
19#define TOKEN_INVALID -1 19#define TOKEN_INVALID -1
20#define TOKEN_EOF 0 // EOF 20#define TOKEN_EOF 0 // EOF
21#define TOKEN_NOT 1 // "not" 21#define TOKEN_NOT 1 // "not"
22#define TOKEN_AND 2 // "and" 22#define TOKEN_AND 2 // "and"
23#define TOKEN_OR 3 // "or" 23#define TOKEN_OR 3 // "or"
@@ -28,7 +28,7 @@
28#define TOKEN_EQ 8 // '==' 28#define TOKEN_EQ 8 // '=='
29#define TOKEN_NE 9 // '!=' 29#define TOKEN_NE 9 // '!='
30#define TOKEN_CONTAINS 10 // "contains" 30#define TOKEN_CONTAINS 10 // "contains"
31#define TOKEN_EQUALS 11 // "equals" 31#define TOKEN_EQUALS 11 // "equals"
32#define TOKEN_LPAREN 12 // '(' 32#define TOKEN_LPAREN 12 // '('
33#define TOKEN_RPAREN 13 // ')' 33#define TOKEN_RPAREN 13 // ')'
34#define TOKEN_NUM 14 // (0..9)+ 34#define TOKEN_NUM 14 // (0..9)+
@@ -36,17 +36,17 @@
36#define TOKEN_STRING 16 // (?)+ 36#define TOKEN_STRING 16 // (?)+
37#define TOKEN_STRINGIDENTIFIER 17 // album, artist, title, genre ... 37#define TOKEN_STRINGIDENTIFIER 17 // album, artist, title, genre ...
38 38
39#define INTVALUE_YEAR 1 39#define INTVALUE_YEAR 1
40#define INTVALUE_RATING 2 40#define INTVALUE_RATING 2
41#define INTVALUE_PLAYCOUNT 3 41#define INTVALUE_PLAYCOUNT 3
42#define INTVALUE_TITLE 4 42#define INTVALUE_TITLE 4
43#define INTVALUE_ARTIST 5 43#define INTVALUE_ARTIST 5
44#define INTVALUE_ALBUM 6 44#define INTVALUE_ALBUM 6
45#define INTVALUE_GENRE 7 45#define INTVALUE_GENRE 7
46#define INTVALUE_FILENAME 8 46#define INTVALUE_FILENAME 8
47 47
48/* static char *spelling[] = { "not", "and", "or",">",">=","<", "<=","==","!=", 48/* static char *spelling[] = { "not", "and", "or",">",">=","<", "<=","==","!=",
49 "contains","(",")" }; */ 49 "contains","(",")" }; */
50 50
51struct token { 51struct token {
52 unsigned char kind; 52 unsigned char kind;