Lines Matching refs:ch

111 	int	ch;
120 ch = get_char(file);
121 if (ch == EOF)
124 /* ch is now the first useful character of a useful line.
136 if (ch == '@') {
153 ch = get_string(cmd, MAX_COMMAND, file, " \t\n");
231 Skip_Blanks(ch, file);
232 if (ch == EOF) {
240 ch = get_list(e->minute, FIRST_MINUTE, LAST_MINUTE,
241 PPC_NULL, ch, file);
242 if (ch == EOF) {
250 ch = get_list(e->hour, FIRST_HOUR, LAST_HOUR,
251 PPC_NULL, ch, file);
252 if (ch == EOF) {
260 if (ch == '*')
262 ch = get_list(e->dom, FIRST_DOM, LAST_DOM,
263 PPC_NULL, ch, file);
264 if (ch == EOF) {
272 ch = get_list(e->month, FIRST_MONTH, LAST_MONTH,
273 MonthNames, ch, file);
274 if (ch == EOF) {
282 if (ch == '*')
284 ch = get_list(e->dow, FIRST_DOW, LAST_DOW,
285 DowNames, ch, file);
286 if (ch == EOF) {
298 /* ch is the first character of a command, or a username */
299 unget_char(ch, file);
310 ch = get_string(username, MAX_COMMAND, file, " \t");
313 if (ch == EOF) {
436 ch = get_char(file);
438 while (ch == '-') {
440 switch (ch = get_char(file)) {
462 Debug(DPARS|DEXT, ("load_entry()...invalid option '%c'\n", ch))
466 ch = get_char(file);
467 if (ch!='\t' && ch!=' ') {
472 Skip_Blanks(ch, file)
473 if (ch == EOF || ch == '\n') {
479 unget_char(ch, file);
488 ch = get_string(cmd, MAX_COMMAND, file, "\n");
492 if (ch == EOF) {
515 while (ch != EOF && ch != '\n')
516 ch = get_char(file);
522 get_list(bits, low, high, names, ch, file)
526 int ch; /* current character being processed */
550 ch = get_range(bits, low, high, names, ch, file);
551 if (ch == ',')
552 ch = get_char(file);
559 Skip_Nonblanks(ch, file)
560 Skip_Blanks(ch, file)
562 Debug(DPARS|DEXT, ("get_list()...exiting w/ %02x\n", ch))
564 return ch;
569 get_range(bits, low, high, names, ch, file)
573 int ch; /* current character being processed */
584 if (ch == '*') {
589 ch = get_char(file);
590 if (ch == EOF)
593 if (EOF == (ch = get_number(&num1, low, names, ch, file)))
596 if (ch == '/')
598 else if (ch != '-') {
603 return ch;
607 ch = get_char(file);
608 if (ch == EOF)
613 ch = get_number(&num2, low, names, ch, file);
614 if (ch == EOF)
621 if (ch == '/') {
624 ch = get_char(file);
625 if (ch == EOF)
633 ch = get_number(&num3, 0, PPC_NULL, ch, file);
634 if (ch == EOF || num3 == 0)
651 return ch;
656 get_number(numptr, low, names, ch, file)
660 int ch; /* current character */
671 while (isalnum(ch)) {
675 *pc++ = ch;
677 if (!isdigit(ch))
680 ch = get_char(file);
694 return ch;
705 return ch;