diff options
author | Holger Lubitz <hal@duncan.ol.sub.de> | 2007-08-20 20:28:11 +0200 |
---|---|---|
committer | Holger Lubitz <hal@duncan.ol.sub.de> | 2007-08-20 20:28:11 +0200 |
commit | 2220e1a676fd46286f48aa193d70fe5197629f49 (patch) | |
tree | 2f6f07dbcb19d0a4f18a6f4bcc35240d6fc3ea0a /src/include/compiler.h | |
parent | 7e1db201b92a955120f565018b1b144aae50d8b4 (diff) | |
download | ipxe-2220e1a676fd46286f48aa193d70fe5197629f49.tar.gz |
define malloc attribute
Diffstat (limited to 'src/include/compiler.h')
-rw-r--r-- | src/include/compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/compiler.h b/src/include/compiler.h index 32416a561..15efb709e 100644 --- a/src/include/compiler.h +++ b/src/include/compiler.h @@ -299,6 +299,12 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr, #define __nonnull __attribute__ (( nonnull )) /** + * Declare a pointer returned by a function as a unique memory address + * as returned by malloc-type functions. + */ +#define __malloc __attribute__ (( malloc )) + +/** * Declare a function as used. * * Necessary only if the function is called only from assembler code. |