Lines Matching refs:ip
84 char* ip; /* input buffer pointer */
510 #define CACHEIN() (ip=proto->ip)
512 #define GETCHR() (*(unsigned char*)ip++)
517 #define SYNCIN() (proto->ip=ip)
519 #define UNGETCHR() (ip--)
577 register char* ip;
619 proto->tp = ip;
621 bp = ip;
630 if ((n = ip - bp - 1) > 0)
632 ip = bp;
633 MEMCPY(op, ip, n);
634 ip++;
690 bp = ip;
709 c = ip - proto->ib;
712 if (ip > proto->ib)
714 n = ip - im;
715 if (ip - n < proto->ib)
717 memcopy(proto->ib - n, ip - n, n);
718 ip = proto->ib;
730 if ((n = read(proto->fd, ip, proto->iz)) > 0)
737 *(ip + n) = 0;
740 bp = ip;
743 *ip = 0;
752 bp = ip;
776 bp = ip;
798 bp = ip;
864 bp = ip;
901 *(ip - 1) = 0;
913 *(ip - 1) = 0;
917 bp = ip;
918 ip = im;
919 *op++ = *ip++;
920 while (*op = *ip++)
921 if (*op++ == '#' && *ip != '(')
925 if (*ip == '#')
928 while (*++ip == ' ' || *ip == '\t');
934 while (*ip == ' ' || *ip == '\t') ip++;
935 while ((c = *ip) >= 'A' && c <= 'Z' || c >= 'a' && c <= 'z' || c >= '0' && c <= '9' || c == '_') *op++ = *ip++;
936 while (*ip == ' ' || *ip == '\t') ip++;
937 if (*ip == '"') ip++;
941 ip = bp;
965 bp = ip;
981 if (!(flags & DECLARE)) switch (RESERVED(*proto->tp, *(ip - 1), ip - proto->tp))
1043 if (*ip == '(' && !strncmp(proto->tp, "va_start", 8)) c = T_VA_START;
1056 memcopy(ip - 4, "__V_", 4);
1061 bp = ip;
1111 bp = ip;
1122 bp = ip;
1146 im = ip - 1;
1161 aim = ip - 1;
1166 for (m = ip - 2; m > im && (*m == ' ' || *m == '\t'); m--);
1169 m = im + (*nns(ip) == '*');
1177 else if ((flags & MATCH) && sub == 1 && *nns(ip) != '*')
1203 ie = ip;
1206 aie = ip;
1220 dir = directive(ip, dir);
1228 bp = ip;
1229 while (*ip == ' ' || *ip == '\t') ip++;
1230 if (*ip == 'l' && *++ip == 'i' && *++ip == 'n' && *++ip == 'e')
1232 if (*++ip == ' ' || *ip == '\t')
1235 while (*++ip >= '0' && *ip <= '9')
1236 proto->line = proto->line * 10 + *ip - '0';
1244 t = ip + 6;
1245 while (ip < t && *ip >= 'a' && *ip <= 'z')
1246 n = HASHKEYPART(n, *ip++);
1251 while (*ip == ' ' || *ip == '\t') ip++;
1252 if (*ip != '\n' && *ip != '/' && *(ip + 1) != '*')
1255 im = ip;
1256 om = op + (ip - bp);
1267 if (*ip == 'e') ip++;
1271 if (*ip < 'a' || *ip > 'z') break;
1283 if (*ip == 'i' && *++ip == 'n' && *++ip == 'c' && *++ip == 'l' && *++ip == 'u' && *++ip == 'd' && *++ip == 'e')
1285 while (*++ip == ' ' || *ip == '\t');
1286 if (*ip++ == '<' && *ip++ == 's' && *ip++ == 't' && *ip++ == 'd' && *ip++ == 'a' && *ip++ == 'r' && *ip++ == 'g' && *ip++ == '.' && *ip++ == 'h' && *ip++ == '>')
1301 else if (*ip == 'd' && *++ip == 'e' && *++ ip == 'f' && *++ip == 'i' && *++ip == 'n' && *++ip == 'e' && (*++ip == ' ' || *ip == '\t'))
1303 while (*++ip == ' ' || *ip == '\t');
1304 if (*ip == 'e' && *++ip == 'x' && *++ ip == 't' && *++ip == 'e' && *++ip == 'r' && *++ip == 'n' && (*++ip == ' ' || *ip == '\t'))
1306 t = ip;
1309 ip = t;
1310 t = ip;
1324 else if (*ip == 'u' && *++ip == 'n' && *++ ip == 'd' && *++ip == 'e' && *++ip == 'f' && (*++ip == ' ' || *ip == '\t'))
1326 while (*++ip == ' ' || *ip == '\t');
1327 if (*ip == 'e' && *++ip == 'x' && *++ ip == 't' && *++ip == 'e' && *++ip == 'r' && *++ip == 'n' && (*++ip == ' ' || *ip == '\t' || *ip == '\n' || *ip == '\r'))
1339 ip = bp;
1364 ip--;
1367 while (ie < ip)
1371 while (++ie < ip)
1375 while (ie < ip && *ie == '*') ie++;
1376 if (ie < ip && *ie == '/')
1378 while (++ie < ip && (*ie == ' ' || *ie == '\t'));
1434 while (ie < ip)
1439 if (ie >= ip) break;
1489 if (ie >= ip) UNPUTCHR();
1537 PUTCHR(*ip);
1539 ip++;
1562 proto->ip = im;
1610 e = proto->ip;
1625 proto->ip = im + 1;
1633 proto->ip = ie;
1733 while (aie < ip && (*aie == ' ' || *aie == '\t' || *aie == '\n')) aie++;
1888 e = proto->ip;
1908 proto->ip = proto->variadic;
1912 bp = proto->ip + 1;
1939 else op = memcopy(op, e, proto->ip - e - 1);
1965 else op = memcopy(op, e, proto->ip - e - 1);
1968 bp = proto->ip + 1;
1980 e = proto->ip;
2085 else if (c == '#' && *ip != '(') flags |= SHARP;
2098 if ((flags & YACC) && c == '%' && *ip == '{')
2105 for (t = ip; *t == ' ' || *t == '\t'; t++);
2121 n = ip - proto->tp;
2122 ip -= n;
2125 ip = bp;
2130 while (*ip != '\n')
2131 *op++ = *ip++;
2237 proto->ip = proto->ib = iob + proto->oz + n;
2255 n = read(fd, proto->ip, proto->iz);
2263 *(proto->ip + n) = 0;
2282 s = proto->ip;
2398 if (proto->cc[0] == '#' && proto->ip[0] == '#' && proto->ip[1] == '!')
2400 s = proto->ip;
2402 m = s - proto->ip;
2403 proto->op = memcopy(proto->op, proto->ip, m);
2404 proto->ip = s;
2420 memcopy(proto->op, proto->ip, n);
2533 register char* ip = proto->ip;
2537 if (!*ip)
2539 ip = proto->ip = proto->ib;
2541 else if ((n = read(proto->fd, ip, proto->iz)) <= 0 || (proto->options & REGULAR) && n < proto->iz)
2547 ip[n] = 0;
2552 if (*ip == '%')
2554 *op++ = *ip++;
2560 while (op < ep && (n = *op++ = *ip))
2562 ip++;
2565 if (*ip == '%' && (ip == proto->ip + 1 || *(ip - 2) == '\n'))
2567 *op++ = *ip++;
2572 if (!*ip)
2581 proto->op = memcopy(proto->ob, proto->ip, ip - proto->ip);
2582 proto->ip = ip;