History

Plan 9 from Bell Labs Third Edition 2001-03-28

David du Colombier committed 25 years ago3e-2001-03-28

Commit 80ee5cb1 parent 59cc4ca2548 files · +182444 −64089Browse files

Showing the changes to sys/src/cmd/cpp/cpp.c (1 of 2548 files). Show all

Unified · Split

sys/src/cmd/cpp/cpp.c+5−0
@@ -273,6 +273,7 @@ error(enum errtype type, char *string, ...) · 272 unmodified lines
273273 Tokenrow *trp;
274274 Source *s;
275275 int i;
276+ void *p;
276277
277278 fprintf(stderr, "cpp: ");
278279 for (s=cursource; s; s=s->next)
@@ -291,6 +292,10 @@ error(enum errtype type, char *string, ...) · 12 unmodified lines
291292 i = va_arg(ap, int);
292293 fprintf(stderr, "%d", i);
293294 break;
295+ case 'p':
296+ p = va_arg(ap, void *);
297+ fprintf(stderr, "%p", p);
298+ break;
294299 case 't':
295300 tp = va_arg(ap, Token *);
296301 fprintf(stderr, "%.*s", tp->len, tp->t);