Lines Matching defs:cursor

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