Преглед на файлове

define malloc attribute

tags/v0.9.3
Holger Lubitz преди 17 години
родител
ревизия
2220e1a676
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6
    0
      src/include/compiler.h

+ 6
- 0
src/include/compiler.h Целия файл

@@ -298,6 +298,12 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
298 298
  */
299 299
 #define __nonnull __attribute__ (( nonnull ))
300 300
 
301
+/**
302
+ * Declare a pointer returned by a function as a unique memory address
303
+ * as returned by malloc-type functions.
304
+ */
305
+#define __malloc __attribute__ (( malloc ))
306
+
301 307
 /**
302 308
  * Declare a function as used.
303 309
  *

Loading…
Отказ
Запис