Lines Matching refs:token

44 int absolutePath(char *token)  in absolutePath()  argument
46 if ((strchr(token, ':')) || (*token == '\\')) in absolutePath()
78 char *token; in parsePathStatement() local
80 if (token = strtok(NULL, seps)) in parsePathStatement()
82 if (token[0] != ';') in parsePathStatement()
85 strcpy(path, token); in parsePathStatement()
106 char *token; in parseBeginStatement() local
111 if (token = strtok(NULL, seps)) in parseBeginStatement()
113 if (token[0] != ';') in parseBeginStatement()
116 soundSetIdString(token); in parseBeginStatement()
136 char *token; in parseFileStatement() local
138 if (token = strtok(NULL, seps)) in parseFileStatement()
140 if (token[0] != ';') in parseFileStatement()
142 fixString(token); in parseFileStatement()
144 if (absolutePath(token)) in parseFileStatement()
146 soundSetSoundFile(token); in parseFileStatement()
154 strcat(ch, token); in parseFileStatement()
159 soundSetSoundFile(token); in parseFileStatement()
178 char *token; in parseOutputStatement() local
180 if (token = strtok(NULL, seps)) in parseOutputStatement()
182 if (token[0] != ';') in parseOutputStatement()
184 strupr(token); in parseOutputStatement()
186 if (strcmp(token, "ADPCM") == 0) in parseOutputStatement()
188 else if (strcmp(token, "8BIT") == 0) in parseOutputStatement()
190 else if (strcmp(token, "16BIT") == 0) in parseOutputStatement()
193 printf("%cWarning! Invalid token \"%s\" on line %d.\n", 7, token, line); in parseOutputStatement()
212 char *token; in parseSamplerateStatement() local
214 if (token = strtok(NULL, seps)) in parseSamplerateStatement()
216 if (token[0] != ';') in parseSamplerateStatement()
218 int i = atoi(token); in parseSamplerateStatement()
240 char *token; in parseLoopStatement() local
243 if (token = strtok(NULL, seps)) in parseLoopStatement()
245 if (token[0] != ';') in parseLoopStatement()
247 loopStart = atoi(token); in parseLoopStatement()
249 if (token = strtok(NULL, seps)) in parseLoopStatement()
251 if (token[0] != ';') in parseLoopStatement()
253 loopEnd = atoi(token); in parseLoopStatement()
278 char *token; in parseMixStatement() local
280 if (token = strtok(NULL, seps)) in parseMixStatement()
282 if (token[0] != ';') in parseMixStatement()
284 strupr(token); in parseMixStatement()
286 if (strcmp(token, "COMBINE") == 0) in parseMixStatement()
288 else if (strcmp(token, "LEFT") == 0) in parseMixStatement()
290 else if (strcmp(token, "RIGHT") == 0) in parseMixStatement()
293 printf("%cWarning! Invalid token \"%s\" on line %d.\n", 7, token, line); in parseMixStatement()
312 char *token; in parseCommentStatement() local
317 if (token = strtok(NULL, "")) in parseCommentStatement()
318 strcat(ch, token); in parseCommentStatement()
337 char *token; in parseEndStatement() local
348 if (token = strtok(NULL, seps)) in parseEndStatement()
350 if (token[0] == ';') in parseEndStatement()
353 … printf("%cWarning! Unexpected token \"%s\" after END statement on line %d.\n", 7, token, line); in parseEndStatement()
369 char *token; in parseIncludeStatement() local
371 if (token = strtok(NULL, seps)) in parseIncludeStatement()
373 if (token[0] != ';') in parseIncludeStatement()
378 fixString(token); in parseIncludeStatement()
380 if (absolutePath(token)) in parseIncludeStatement()
382 eatFile(token); in parseIncludeStatement()
390 strcat(ch, token); in parseIncludeStatement()
395 eatFile(token); in parseIncludeStatement()
417 char *token = strtok(ch, seps); in parseLine() local
419 while(token != NULL) in parseLine()
421 if (token[0] == ';') in parseLine()
425 _strupr(token); in parseLine()
428 if (strcmp(token, "PATH") == 0) in parseLine()
432 else if (strcmp(token, "BEGIN") == 0) in parseLine()
436 else if (strcmp(token, "FILE") == 0) in parseLine()
440 else if (strcmp(token, "OUTPUT") == 0) in parseLine()
444 else if (strcmp(token, "SAMPLERATE") == 0) in parseLine()
448 else if (strcmp(token, "LOOP") == 0) in parseLine()
452 else if (strcmp(token, "MIX") == 0) in parseLine()
456 else if (strcmp(token, "END") == 0) in parseLine()
460 else if (strcmp(token, "COMMENT") == 0) in parseLine()
464 else if (strcmp(token, "INCLUDE") == 0) in parseLine()
477 7, token, line); in parseLine()
480 token = strtok(NULL, seps); in parseLine()