forked from len0rd/rockbox
Count hits... string searches appear to be broken for now, unsure why,
maybe something goes wrong when allocating ram for the strings.. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6373 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
29909a341a
commit
c099300c8d
3 changed files with 20 additions and 6 deletions
|
@ -148,11 +148,19 @@ unsigned char *parseCompareString() {
|
|||
rb->snprintf(errormsg,250,"'%d' found where STRING/STRINGID expected\n",currentToken->kind);
|
||||
return 0;
|
||||
}
|
||||
|
||||
contains=currentToken->kind==TOKEN_CONTAINS;
|
||||
|
||||
if(currentToken->kind==TOKEN_CONTAINS ||
|
||||
currentToken->kind==TOKEN_EQUALS)
|
||||
currentToken->kind==TOKEN_EQUALS) {
|
||||
if(currentToken->kind==TOKEN_CONTAINS) {
|
||||
contains=1;
|
||||
PUTS("Contains");
|
||||
}
|
||||
else {
|
||||
contains=0;
|
||||
PUTS("Equals");
|
||||
}
|
||||
parser_acceptIt();
|
||||
}
|
||||
else {
|
||||
syntaxerror=1;
|
||||
rb->snprintf(errormsg,250,"'%d' found where CONTAINS/EQUALS expected\n",currentToken->kind);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue