mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 18:11:49 +03:00
Merge commit 'holger/strings'
This commit is contained in:
@@ -279,6 +279,31 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
|
||||
/** Apply standard C calling conventions */
|
||||
#define __cdecl __attribute__ (( cdecl , regparm(0) ))
|
||||
|
||||
/**
|
||||
* Declare a function as pure - i.e. without side effects
|
||||
*/
|
||||
#define __pure __attribute__ (( pure ))
|
||||
|
||||
/**
|
||||
* Declare a function as const - i.e. it does not access global memory
|
||||
* (including dereferencing pointers passed to it) at all.
|
||||
* Must also not call any non-const functions.
|
||||
*/
|
||||
#define __const __attribute__ (( const ))
|
||||
|
||||
/**
|
||||
* Declare a function's pointer parameters as non-null - i.e. force
|
||||
* compiler to check pointers at compile time and enable possible
|
||||
* optimizations based on that fact
|
||||
*/
|
||||
#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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user