Lines Matching refs:token
47 int absolutePath(char *token) in absolutePath() argument
49 if ((strchr(token, ':')) || (*token == '\\')) in absolutePath()
81 char *token; in parsePathStatement() local
83 if (token = strtok(NULL, seps)) in parsePathStatement()
85 if (token[0] != ';') in parsePathStatement()
88 strcpy(path, token); in parsePathStatement()
109 char *token; in parseBeginStatement() local
114 if (token = strtok(NULL, seps)) in parseBeginStatement()
116 if (token[0] != ';') in parseBeginStatement()
119 soundSetIdString(token); in parseBeginStatement()
139 char *token; in parseFileStatement() local
141 if (token = strtok(NULL, seps)) in parseFileStatement()
143 if (token[0] != ';') in parseFileStatement()
145 fixString(token); in parseFileStatement()
147 if (absolutePath(token)) in parseFileStatement()
149 soundSetSoundFile(token); in parseFileStatement()
157 strcat(ch, token); in parseFileStatement()
162 soundSetSoundFile(token); in parseFileStatement()
181 char *token; in parseOutputStatement() local
183 if (token = strtok(NULL, seps)) in parseOutputStatement()
185 if (token[0] != ';') in parseOutputStatement()
187 strupr(token); in parseOutputStatement()
189 if (strcmp(token, "ADPCM") == 0) in parseOutputStatement()
191 else if (strcmp(token, "8BIT") == 0) in parseOutputStatement()
193 else if (strcmp(token, "16BIT") == 0) in parseOutputStatement()
196 printf("%cWarning! Invalid token \"%s\" on line %d.\n", 7, token, line); in parseOutputStatement()
215 char *token; in parseSamplerateStatement() local
217 if (token = strtok(NULL, seps)) in parseSamplerateStatement()
219 if (token[0] != ';') in parseSamplerateStatement()
221 int i = atoi(token); in parseSamplerateStatement()
243 char *token; in parseLoopStatement() local
246 if (token = strtok(NULL, seps)) in parseLoopStatement()
248 if (token[0] != ';') in parseLoopStatement()
250 loopStart = atoi(token); in parseLoopStatement()
252 if (token = strtok(NULL, seps)) in parseLoopStatement()
254 if (token[0] != ';') in parseLoopStatement()
256 loopEnd = atoi(token); in parseLoopStatement()
281 char *token; in parseMixStatement() local
283 if (token = strtok(NULL, seps)) in parseMixStatement()
285 if (token[0] != ';') in parseMixStatement()
287 strupr(token); in parseMixStatement()
289 if (strcmp(token, "COMBINE") == 0) in parseMixStatement()
291 else if (strcmp(token, "LEFT") == 0) in parseMixStatement()
293 else if (strcmp(token, "RIGHT") == 0) in parseMixStatement()
296 printf("%cWarning! Invalid token \"%s\" on line %d.\n", 7, token, line); in parseMixStatement()
315 char *token; in parseCommentStatement() local
320 if (token = strtok(NULL, "")) in parseCommentStatement()
321 strcat(ch, token); in parseCommentStatement()
340 char *token; in parseEndStatement() local
351 if (token = strtok(NULL, seps)) in parseEndStatement()
353 if (token[0] == ';') in parseEndStatement()
356 … printf("%cWarning! Unexpected token \"%s\" after END statement on line %d.\n", 7, token, line); in parseEndStatement()
372 char *token; in parseIncludeStatement() local
374 if (token = strtok(NULL, seps)) in parseIncludeStatement()
376 if (token[0] != ';') in parseIncludeStatement()
381 fixString(token); in parseIncludeStatement()
383 if (absolutePath(token)) in parseIncludeStatement()
385 eatFile(token); in parseIncludeStatement()
393 strcat(ch, token); in parseIncludeStatement()
398 eatFile(token); in parseIncludeStatement()
420 char *token = strtok(ch, seps); in parseLine() local
422 while(token != NULL) in parseLine()
424 if (token[0] == ';') in parseLine()
428 _strupr(token); in parseLine()
431 if (strcmp(token, "PATH") == 0) in parseLine()
435 else if (strcmp(token, "BEGIN") == 0) in parseLine()
439 else if (strcmp(token, "FILE") == 0) in parseLine()
443 else if (strcmp(token, "OUTPUT") == 0) in parseLine()
447 else if (strcmp(token, "SAMPLERATE") == 0) in parseLine()
451 else if (strcmp(token, "LOOP") == 0) in parseLine()
455 else if (strcmp(token, "MIX") == 0) in parseLine()
459 else if (strcmp(token, "END") == 0) in parseLine()
463 else if (strcmp(token, "COMMENT") == 0) in parseLine()
467 else if (strcmp(token, "INCLUDE") == 0) in parseLine()
480 7, token, line); in parseLine()
483 token = strtok(NULL, seps); in parseLine()