Lines Matching defs:word
289 specialCaseParse(char *word, Criterion * criterion, int mask)
295 switch(word[0]) {
310 xstr = strpbrk(&word[1], "x");
312 width = (int) strtol(word, &response, 0);
313 if (response == word || response[0] != 'x') {
342 bpp = (int) strtol(&word[1], &response, 0);
343 if (response == &word[1]) {
362 hertz = (int) strtol(&word[1], &response, 0);
363 if (response == &word[1]) {
385 parseCriteria(char *word, Criterion * criterion)
390 cstr = strpbrk(word, "=><!~");
439 switch (word[0]) {
441 if (!strcmp(word, "bpp")) {
453 if (!strcmp(word, "height")) {
463 if (!strcmp(word, "hertz")) {
475 if (!strcmp(word, "num")) {
487 if (!strcmp(word, "width")) {
500 return specialCaseParse(word, criterion, 0);
511 char *copy, *word;
517 word = strtok(copy, " \t");
518 while (word) {
520 word = strtok(NULL, " \t");
522 /* Allocate number of words of criteria. A word
534 word = strtok(copy, " \t");
535 while (word) {
536 parsed = parseCriteria(word, &criteria[n]);
540 __glutWarning("Unrecognized game mode string word: %s (ignoring)\n", word);
542 word = strtok(NULL, " \t");