13 int peekc,lastc = EOR;
20 return(c==EOR || c==';');
28 } while (lastc==SPC || lastc==TB);
47 readrune(int fd, Rune *r)
52 for(i=0; i<UTFmax && !fullrune(buf, i); i++)
53 if(read(fd, buf+i, 1) <= 0)
72 for (p = line; p < &line[LINSIZ-1]; p++) {
73 eof = readrune(infile, p) <= 0;
93 if ((lastc = *lp) != 0)
110 if (readchar()=='\\')
112 else if (lastc=='\'')
119 getformat(char *deformat)
127 while ((quote ? readchar()!=EOR : !eol(readchar()))){
129 fptr += runetochar(fptr, &r);
139 * check if the input line if of the form:
140 * <filename>:<digits><verb> ...
142 * we handle this case specially because we have to look ahead
143 * at the token after the colon to decide if it is a file reference
144 * or a colon-command with a symbol name prefix.
152 for (cp = lp-1; *cp && !strchr(CMD_VERBS, *cp); cp++)
153 if (*cp == '\\' && cp[1]) /* escape next char */
155 if (*cp && cp > lp-1) {
156 while (*cp == ' ' || *cp == '\t')
159 while (*cp == ' ' || *cp == '\t')