Mercurial > projects > ldc
comparison dmd/html.h @ 1372:229e02867307
Fix format-string bugs by adding __attribute__((__format__)) in all applicable
places and fixing all warnings my gcc produced.
Among other things, this should fix several segfaults (including one I just
ran into).
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 17 May 2009 00:15:25 +0200 |
parents | c53b6e3fe49a |
children |
comparison
equal
deleted
inserted
replaced
1371:967d28b7febe | 1372:229e02867307 |
---|---|
25 int inCode; // !=0 if in code | 25 int inCode; // !=0 if in code |
26 | 26 |
27 | 27 |
28 Html(const char *sourcename, unsigned char *base, unsigned length); | 28 Html(const char *sourcename, unsigned char *base, unsigned length); |
29 | 29 |
30 void error(const char *format, ...); | 30 void error(const char *format, ...) IS_PRINTF(2); |
31 void extractCode(OutBuffer *buf); | 31 void extractCode(OutBuffer *buf); |
32 void skipTag(); | 32 void skipTag(); |
33 void skipString(); | 33 void skipString(); |
34 unsigned char *skipWhite(unsigned char *q); | 34 unsigned char *skipWhite(unsigned char *q); |
35 void scanComment(); | 35 void scanComment(); |