Przeglądaj źródła

attributes interfered with doxygen

Thomas Buck 11 lat temu
rodzic
commit
63fd9fe292
6 zmienionych plików z 8 dodań i 17 usunięć
  1. 2
    4
      include/GLString.h
  2. 1
    2
      include/OpenRaider.h
  3. 1
    2
      include/System.h
  4. 1
    2
      include/Texture.h
  5. 2
    4
      include/TombRaider.h
  6. 1
    3
      include/tga.h

+ 2
- 4
include/GLString.h Wyświetl plik

74
      * \param string valid string id
74
      * \param string valid string id
75
      * \param s format string and args like for printf
75
      * \param s format string and args like for printf
76
      */
76
      */
77
-    __attribute__((format(printf, 3, 4)))
78
-    void SetString(unsigned int string, const char *s, ...);
77
+    void SetString(unsigned int string, const char *s, ...) __attribute__((format(printf, 3, 4)));
79
 
78
 
80
     /*!
79
     /*!
81
      * \brief Sets default text scaling
80
      * \brief Sets default text scaling
90
      * \param string valid format string with args like for printf
89
      * \param string valid format string with args like for printf
91
      * \returns 0 on success, -1 on invalid string, -2 on full string list
90
      * \returns 0 on success, -1 on invalid string, -2 on full string list
92
      */
91
      */
93
-    __attribute__((format(printf, 4, 5)))
94
-    int glPrintf(int x, int y, const char *string, ...);
92
+    int glPrintf(int x, int y, const char *string, ...) __attribute__((format(printf, 4, 5)));
95
 
93
 
96
     /*!
94
     /*!
97
      * \brief Renders strings over GL scene.
95
      * \brief Renders strings over GL scene.

+ 1
- 2
include/OpenRaider.h Wyświetl plik

130
      * \param dump_stdout if true, also print to stdout
130
      * \param dump_stdout if true, also print to stdout
131
      * \param format printf() style format string
131
      * \param format printf() style format string
132
      */
132
      */
133
-    __attribute__((format(printf, 3, 4)))
134
-    void print(bool dump_stdout, const char *format, ...);
133
+    void print(bool dump_stdout, const char *format, ...) __attribute__((format(printf, 3, 4)));
135
 
134
 
136
 protected:
135
 protected:
137
 
136
 

+ 1
- 2
include/System.h Wyświetl plik

70
      * \param string Format string like for printf
70
      * \param string Format string like for printf
71
      * \returns string in a buffer
71
      * \returns string in a buffer
72
      */
72
      */
73
-    __attribute__((format(printf, 1, 2)))
74
-    static char *bufferString(const char *string, ...);
73
+    static char *bufferString(const char *string, ...) __attribute__((format(printf, 1, 2)));
75
 
74
 
76
     /*!
75
     /*!
77
      * \brief Expansion of unix home enviroment char.
76
      * \brief Expansion of unix home enviroment char.

+ 1
- 2
include/Texture.h Wyświetl plik

249
 
249
 
250
 // Experimental testing
250
 // Experimental testing
251
 
251
 
252
-__attribute__((format(printf, 3, 4)))
253
-void bufferedPrintf(char *string, unsigned int len, char *s, ...);
252
+void bufferedPrintf(char *string, unsigned int len, char *s, ...) __attribute__((format(printf, 3, 4)));
254
 
253
 
255
 void glPrint3d(float x, float y, float z,
254
 void glPrint3d(float x, float y, float z,
256
                 float pitch, float yaw, float roll,
255
                 float pitch, float yaw, float roll,

+ 2
- 4
include/TombRaider.h Wyświetl plik

2238
      * Mongoose - Created
2238
      * Mongoose - Created
2239
      ------------------------------------------------------*/
2239
      ------------------------------------------------------*/
2240
 
2240
 
2241
-__attribute__((format(printf, 3, 4)))
2242
-    void print(const char *methodName, const char *s, ...) ;
2241
+    void print(const char *methodName, const char *s, ...) __attribute__((format(printf, 3, 4)));
2243
 
2242
 
2244
-__attribute__((format(printf, 3, 4)))
2245
-    void printDebug(const char *methodName, const char *s, ...);
2243
+    void printDebug(const char *methodName, const char *s, ...) __attribute__((format(printf, 3, 4)));
2246
 
2244
 
2247
 
2245
 
2248
     ////////////////////////////////////////////////////////////
2246
     ////////////////////////////////////////////////////////////

+ 1
- 3
include/tga.h Wyświetl plik

83
  * \param s format string for file path/name
83
  * \param s format string for file path/name
84
  * \returns 0 on success, else error condition
84
  * \returns 0 on success, else error condition
85
  */
85
  */
86
-__attribute__((format(printf, 5, 6)))
87
 int tga_save_filename(unsigned char *image,
86
 int tga_save_filename(unsigned char *image,
88
         unsigned int width, unsigned int height,
87
         unsigned int width, unsigned int height,
89
-        char type,
90
-        char *s, ...);
88
+        char type, char *s, ...) __attribute__((format(printf, 5, 6)));
91
 
89
 
92
 #endif
90
 #endif

Ładowanie…
Anuluj
Zapisz