Pārlūkot izejas kodu

define malloc attribute

tags/v0.9.3
Holger Lubitz 17 gadus atpakaļ
vecāks
revīzija
2220e1a676
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6
    0
      src/include/compiler.h

+ 6
- 0
src/include/compiler.h Parādīt failu

298
  */
298
  */
299
 #define __nonnull __attribute__ (( nonnull ))
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
  * Declare a function as used.
308
  * Declare a function as used.
303
  *
309
  *

Notiek ielāde…
Atcelt
Saglabāt