Lines Matching refs:cur

89 	register struct ppinstk*	cur;
91 PUSH(t, cur);
92 cur->line = error_info.line;
93 cur->file = error_info.file;
99 cur->flags |= IN_newline;
100 cur->fd = n;
101 cur->hide = ++pp.hide;
102 cur->symbol = 0;
106 cur->index = newof(0, struct ppindex, 1, 0);
107 if (pp.lastindex) pp.lastindex->next = cur->index;
108 else pp.firstindex = cur->index;
109 pp.lastindex = cur->index;
110 cur->index->file = pp.original;
111 cur->index->begin = ppoffset();
118 if (!cur->prev->prev && !(pp.state & COMPILE) && isatty(0))
119 cur->flags |= IN_flush;
127 cur->buflen = pp.member->size;
129 p = (cur->buffer = oldof(0, char, 0, pp.member->size + PPBAKSIZ + 1)) + PPBAKSIZ;
139 cur->buflen = pp.member->size;
141 p = cur->buffer = pp.member->archive->info.buffer + pp.member->offset;
142 cur->flags |= IN_static;
147 p = cur->buffer = "";
148 cur->flags |= IN_static;
152 cur->flags |= IN_eof|IN_newline;
153 cur->fd = -1;
158 if (lseek(cur->fd, 0L, SEEK_END) > 0 && !lseek(cur->fd, 0L, SEEK_SET))
159 cur->flags |= IN_regular;
162 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))))
164 *(p = cur->buffer - 1) = 0;
165 cur->buffer -= PPBAKSIZ;
166 cur->flags |= IN_prototype;
167 cur->fd = -1;
171 *(p = (cur->buffer = oldof(0, char, 0, PPBUFSIZ + PPBAKSIZ + 1)) + PPBAKSIZ) = 0;
176 cur->flags |= IN_ignoreline;
177 cur->prefix = pp.prefix;
183 cur->control = pp.control;
185 cur->vendor = pp.vendor;
186 if (cur->type != IN_RESCAN)
188 if (cur->type == IN_INIT)
201 if (pp.mode & HOSTED) cur->flags |= IN_hosted;
202 else cur->flags &= ~IN_hosted;
208 switch (cur->type)
228 cur->flags |= IN_c;
230 if (!(cur->prev->flags & IN_c))
237 else if (cur->prev->flags & IN_c)
245 cur->buffer = p = strdup(p);
248 cur->buffer = p;
251 cur->nextchr = p;
255 error(PANIC, "use PUSH_<%d>(...) instead of pppush(IN_<%d>, ...)", cur->type, cur->type);
286 struct ppinstk* cur;
298 cur = pp.in;
322 else if (pp.in == cur)