Lines Matching refs:cursor
1117 static int cursor; /* cursor for the above line */ variable
1160 cursor = 0; in readcron()
1161 while (line[cursor] == ' ' || line[cursor] == '\t') in readcron()
1162 cursor++; in readcron()
1163 if (line[cursor] == '#' || line[cursor] == '\n') in readcron()
1166 if (strncmp(&line[cursor], ENV_TZ, in readcron()
1168 if ((tmp = strchr(&line[cursor], '\n')) != NULL) { in readcron()
1172 if (!isvalid_tz(&line[cursor + strlen(ENV_TZ)], NULL, in readcron()
1177 if (tz == NULL || strcmp(&line[cursor], get_obj(tz))) { in readcron()
1179 tz = create_shared_str(&line[cursor]); in readcron()
1184 if (strncmp(&line[cursor], ENV_HOME, in readcron()
1186 if ((tmp = strchr(&line[cursor], '\n')) != NULL) { in readcron()
1190 strcmp(&line[cursor], get_obj(home))) { in readcron()
1193 &line[cursor + strlen(ENV_HOME)]); in readcron()
1198 if (strncmp(&line[cursor], ENV_SHELL, in readcron()
1200 if ((tmp = strchr(&line[cursor], '\n')) != NULL) { in readcron()
1204 strcmp(&line[cursor], get_obj(shell))) { in readcron()
1206 shell = create_shared_str(&line[cursor]); in readcron()
1222 while (line[cursor] == ' ' || line[cursor] == '\t') in readcron()
1223 cursor++; in readcron()
1224 if (line[cursor] == '\n' || line[cursor] == '\0') in readcron()
1227 start = cursor; in readcron()
1229 while ((line[cursor] != '%') && in readcron()
1230 (line[cursor] != '\n') && in readcron()
1231 (line[cursor] != '\0') && in readcron()
1232 (line[cursor] != '\\')) in readcron()
1233 cursor++; in readcron()
1234 if (line[cursor] == '\\') { in readcron()
1235 cursor += 2; in readcron()
1238 e->cmd = xmalloc(cursor-start + 1); in readcron()
1239 (void) strncpy(e->cmd, line + start, cursor-start); in readcron()
1240 e->cmd[cursor-start] = '\0'; in readcron()
1242 if (line[cursor] == '%') { in readcron()
1243 e->of.ct.input = xmalloc(strlen(line)-cursor + 1); in readcron()
1244 (void) strcpy(e->of.ct.input, line + cursor + 1); in readcron()
1461 while ((line[cursor] == ' ') || (line[cursor] == '\t')) in next_field()
1462 cursor++; in next_field()
1463 start = cursor; in next_field()
1464 if (line[cursor] == '\0') { in next_field()
1467 if (line[cursor] == '*') { in next_field()
1468 cursor++; in next_field()
1469 if ((line[cursor] != ' ') && (line[cursor] != '\t')) in next_field()
1476 if (!isdigit(line[cursor])) in next_field()
1480 num = num*10 + (line[cursor]-'0'); in next_field()
1481 } while (isdigit(line[++cursor])); in next_field()
1484 if (line[cursor] == '-') { in next_field()
1485 if (!isdigit(line[++cursor])) in next_field()
1489 num2 = num2*10 + (line[cursor]-'0'); in next_field()
1490 } while (isdigit(line[++cursor])); in next_field()
1494 if ((line[cursor] == ' ') || (line[cursor] == '\t')) in next_field()
1496 if (line[cursor] == '\0') in next_field()
1498 if (line[cursor++] != ',') in next_field()
1501 s = xmalloc(cursor-start + 1); in next_field()
1502 (void) strncpy(s, line + start, cursor-start); in next_field()
1503 s[cursor-start] = '\0'; in next_field()