Mercurial > hg > dmlib
comparison src/dmtext.h @ 2383:43e39d9ec42f
Add __attribute__(__format__ ..) specifiers for functions that use printf() style format specifiers.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 09 Jan 2020 14:55:41 +0200 |
parents | 1edf494226c6 |
children | 5ffc48a0bebe |
comparison
equal
deleted
inserted
replaced
2382:947eba01f3f3 | 2383:43e39d9ec42f |
---|---|
66 void dmDrawBMTextConst(SDL_Surface *screen, const DMBitmapFont *font, | 66 void dmDrawBMTextConst(SDL_Surface *screen, const DMBitmapFont *font, |
67 const BOOL condensed, const int mode, int xc, int yc, const char *str); | 67 const BOOL condensed, const int mode, int xc, int yc, const char *str); |
68 void dmDrawBMTextVA(SDL_Surface *screen, const DMBitmapFont *font, | 68 void dmDrawBMTextVA(SDL_Surface *screen, const DMBitmapFont *font, |
69 const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, va_list ap); | 69 const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, va_list ap); |
70 void dmDrawBMText(SDL_Surface *screen, const DMBitmapFont *font, | 70 void dmDrawBMText(SDL_Surface *screen, const DMBitmapFont *font, |
71 const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, ...); | 71 const BOOL condensed, const int mode, const int xc, const int yc, const char *fmt, ...) |
72 __attribute__ ((__format__ (__printf__, 7, 8))); | |
72 | 73 |
73 | 74 |
74 static inline void dmInitializeGetBMGlyphSurface(SDL_Surface *surf, DMBitmapFont *font) | 75 static inline void dmInitializeGetBMGlyphSurface(SDL_Surface *surf, DMBitmapFont *font) |
75 { | 76 { |
76 memcpy(surf, font->glyphs, sizeof(SDL_Surface)); | 77 memcpy(surf, font->glyphs, sizeof(SDL_Surface)); |