Lines Matching refs:token

41 int absolutePath(char *token)  in absolutePath()  argument
43 if ((strchr(token, ':')) || (*token == '\\')) in absolutePath()
75 char *token; in parsePathStatement() local
77 if (token = strtok(NULL, seps)) in parsePathStatement()
79 if (token[0] != ';') in parsePathStatement()
82 strcpy(path, token); in parsePathStatement()
103 char *token; in parseBeginStatement() local
108 if (token = strtok(NULL, seps)) in parseBeginStatement()
110 if (token[0] != ';') in parseBeginStatement()
113 soundSetIdString(token); in parseBeginStatement()
133 char *token; in parseFileStatement() local
135 if (token = strtok(NULL, seps)) in parseFileStatement()
137 if (token[0] != ';') in parseFileStatement()
139 fixString(token); in parseFileStatement()
141 if (absolutePath(token)) in parseFileStatement()
143 soundSetSoundFile(token); in parseFileStatement()
151 strcat(ch, token); in parseFileStatement()
156 soundSetSoundFile(token); in parseFileStatement()
175 char *token; in parseOutputStatement() local
177 if (token = strtok(NULL, seps)) in parseOutputStatement()
179 if (token[0] != ';') in parseOutputStatement()
181 strupr(token); in parseOutputStatement()
183 if (strcmp(token, "ADPCM") == 0) in parseOutputStatement()
185 else if (strcmp(token, "8BIT") == 0) in parseOutputStatement()
187 else if (strcmp(token, "16BIT") == 0) in parseOutputStatement()
190 printf("%cWarning! Invalid token \"%s\" on line %d.\n", 7, token, line); in parseOutputStatement()
209 char *token; in parseSamplerateStatement() local
211 if (token = strtok(NULL, seps)) in parseSamplerateStatement()
213 if (token[0] != ';') in parseSamplerateStatement()
215 int i = atoi(token); in parseSamplerateStatement()
237 char *token; in parseLoopStatement() local
240 if (token = strtok(NULL, seps)) in parseLoopStatement()
242 if (token[0] != ';') in parseLoopStatement()
244 loopStart = atoi(token); in parseLoopStatement()
246 if (token = strtok(NULL, seps)) in parseLoopStatement()
248 if (token[0] != ';') in parseLoopStatement()
250 loopEnd = atoi(token); in parseLoopStatement()
275 char *token; in parseMixStatement() local
277 if (token = strtok(NULL, seps)) in parseMixStatement()
279 if (token[0] != ';') in parseMixStatement()
281 strupr(token); in parseMixStatement()
283 if (strcmp(token, "COMBINE") == 0) in parseMixStatement()
285 else if (strcmp(token, "LEFT") == 0) in parseMixStatement()
287 else if (strcmp(token, "RIGHT") == 0) in parseMixStatement()
290 printf("%cWarning! Invalid token \"%s\" on line %d.\n", 7, token, line); in parseMixStatement()
309 char *token; in parseCommentStatement() local
314 if (token = strtok(NULL, "")) in parseCommentStatement()
315 strcat(ch, token); in parseCommentStatement()
334 char *token; in parseEndStatement() local
345 if (token = strtok(NULL, seps)) in parseEndStatement()
347 if (token[0] == ';') in parseEndStatement()
350 … printf("%cWarning! Unexpected token \"%s\" after END statement on line %d.\n", 7, token, line); in parseEndStatement()
366 char *token; in parseIncludeStatement() local
368 if (token = strtok(NULL, seps)) in parseIncludeStatement()
370 if (token[0] != ';') in parseIncludeStatement()
375 fixString(token); in parseIncludeStatement()
377 if (absolutePath(token)) in parseIncludeStatement()
379 eatFile(token); in parseIncludeStatement()
387 strcat(ch, token); in parseIncludeStatement()
392 eatFile(token); in parseIncludeStatement()
414 char *token = strtok(ch, seps); in parseLine() local
416 while(token != NULL) in parseLine()
418 if (token[0] == ';') in parseLine()
422 _strupr(token); in parseLine()
425 if (strcmp(token, "PATH") == 0) in parseLine()
429 else if (strcmp(token, "BEGIN") == 0) in parseLine()
433 else if (strcmp(token, "FILE") == 0) in parseLine()
437 else if (strcmp(token, "OUTPUT") == 0) in parseLine()
441 else if (strcmp(token, "SAMPLERATE") == 0) in parseLine()
445 else if (strcmp(token, "LOOP") == 0) in parseLine()
449 else if (strcmp(token, "MIX") == 0) in parseLine()
453 else if (strcmp(token, "END") == 0) in parseLine()
457 else if (strcmp(token, "COMMENT") == 0) in parseLine()
461 else if (strcmp(token, "INCLUDE") == 0) in parseLine()
474 7, token, line); in parseLine()
477 token = strtok(NULL, seps); in parseLine()