Lines Matching refs:cur

94 	register struct ppinstk*	cur;
96 PUSH(t, cur);
97 cur->line = error_info.line;
98 cur->file = error_info.file;
104 cur->flags |= IN_newline;
105 cur->fd = n;
106 cur->hide = ++pp.hide;
107 cur->symbol = 0;
111 cur->index = newof(0, struct ppindex, 1, 0);
112 if (pp.lastindex) pp.lastindex->next = cur->index;
113 else pp.firstindex = cur->index;
114 pp.lastindex = cur->index;
115 cur->index->file = pp.original;
116 cur->index->begin = ppoffset();
123 if (!cur->prev->prev && !(pp.state & COMPILE) && isatty(0))
124 cur->flags |= IN_flush;
132 cur->buflen = pp.member->size;
134 p = (cur->buffer = oldof(0, char, 0, pp.member->size + PPBAKSIZ + 1)) + PPBAKSIZ;
144 cur->buflen = pp.member->size;
146 p = cur->buffer = pp.member->archive->info.buffer + pp.member->offset;
147 cur->flags |= IN_static;
152 p = cur->buffer = "";
153 cur->flags |= IN_static;
157 cur->flags |= IN_eof|IN_newline;
158 cur->fd = -1;
163 if (lseek(cur->fd, 0L, SEEK_END) > 0 && !lseek(cur->fd, 0L, SEEK_SET))
164 cur->flags |= IN_regular;
167 if (!(pp.option & NOPROTO) && !(pp.test & TEST_noproto) && ((pp.state & (COMPATIBILITY|TRANSITION)) == COMPATIBILITY || (pp.option & PLUSPLUS) || (pp.mode & EXTERNALIZE)) && (cur->buffer = pppopen(NiL, cur->fd, NiL, NiL, NiL, NiL, (PROTO_HEADER|PROTO_RETAIN)|(((pp.mode & EXTERNALIZE) || (pp.option & PROTOTYPED)) ? PROTO_FORCE : PROTO_PASS)|((pp.mode & EXTERNALIZE) ? PROTO_EXTERNALIZE : 0)|((pp.mode & MARKC) ? PROTO_PLUSPLUS : 0))))
169 *(p = cur->buffer - 1) = 0;
170 cur->buffer -= PPBAKSIZ;
171 cur->flags |= IN_prototype;
172 cur->fd = -1;
176 *(p = (cur->buffer = oldof(0, char, 0, PPBUFSIZ + PPBAKSIZ + 1)) + PPBAKSIZ) = 0;
181 cur->flags |= IN_ignoreline;
182 cur->prefix = pp.prefix;
188 cur->control = pp.control;
190 cur->vendor = pp.vendor;
191 if (cur->type != IN_RESCAN)
193 if (cur->type == IN_INIT)
206 if (pp.mode & HOSTED) cur->flags |= IN_hosted;
207 else cur->flags &= ~IN_hosted;
213 switch (cur->type)
233 cur->flags |= IN_c;
235 if (!(cur->prev->flags & IN_c))
242 else if (cur->prev->flags & IN_c)
250 cur->buffer = p = strdup(p);
253 cur->buffer = p;
256 cur->nextchr = p;
260 error(PANIC, "use PUSH_<%d>(...) instead of pppush(IN_<%d>, ...)", cur->type, cur->type);
291 struct ppinstk* cur;
303 cur = pp.in;
327 else if (pp.in == cur)