comparison dmd/dsymbol.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 46f6365a50d7
children def7a1d494fd
comparison
equal deleted inserted replaced
1371:967d28b7febe 1372:229e02867307
120 char *toChars(); 120 char *toChars();
121 char *toPrettyChars(); 121 char *toPrettyChars();
122 char *locToChars(); 122 char *locToChars();
123 int equals(Object *o); 123 int equals(Object *o);
124 int isAnonymous(); 124 int isAnonymous();
125 void error(Loc loc, const char *format, ...); 125 void error(Loc loc, const char *format, ...) IS_PRINTF(3);
126 void error(const char *format, ...); 126 void error(const char *format, ...) IS_PRINTF(2);
127 void checkDeprecated(Loc loc, Scope *sc); 127 void checkDeprecated(Loc loc, Scope *sc);
128 Module *getModule(); // module where declared 128 Module *getModule(); // module where declared
129 Module *getCompilationModule(); // possibly different for templates 129 Module *getCompilationModule(); // possibly different for templates
130 Dsymbol *pastMixin(); 130 Dsymbol *pastMixin();
131 Dsymbol *toParent(); 131 Dsymbol *toParent();