comparison dmd/lexer.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 8026319762be
children def7a1d494fd
comparison
equal deleted inserted replaced
1371:967d28b7febe 1372:229e02867307
290 TOK charConstant(Token *t, int wide); 290 TOK charConstant(Token *t, int wide);
291 void stringPostfix(Token *t); 291 void stringPostfix(Token *t);
292 unsigned wchar(unsigned u); 292 unsigned wchar(unsigned u);
293 TOK number(Token *t); 293 TOK number(Token *t);
294 TOK inreal(Token *t); 294 TOK inreal(Token *t);
295 void error(const char *format, ...); 295 void error(const char *format, ...) IS_PRINTF(2);
296 void error(Loc loc, const char *format, ...); 296 void error(Loc loc, const char *format, ...) IS_PRINTF(3);
297 void pragma(); 297 void pragma();
298 unsigned decodeUTF(); 298 unsigned decodeUTF();
299 void getDocComment(Token *t, unsigned lineComment); 299 void getDocComment(Token *t, unsigned lineComment);
300 300
301 static int isValidIdentifier(char *p); 301 static int isValidIdentifier(char *p);