"Fossies" - the Fresh Open Source Software Archive

Member "syslinux-6.03/gpxe/src/include/alloca.h" (6 Oct 2014, 489 Bytes) of package /linux/misc/syslinux-6.03.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #ifndef _ALLOCA_H
    2 #define _ALLOCA_H
    3 
    4 /**
    5  * @file
    6  *
    7  * Temporary memory allocation
    8  *
    9  */
   10 
   11 #include <stdint.h>
   12 
   13 /**
   14  * Allocate temporary memory from the stack
   15  *
   16  * @v size      Size to allocate
   17  * @ret ptr     Allocated memory
   18  *
   19  * This memory will be freed automatically when the containing
   20  * function returns.  There are several caveats regarding use of
   21  * alloca(); use it only if you already know what they are.
   22  */
   23 #define alloca(size) __builtin_alloca ( size )
   24 
   25 #endif /* _ALLOCA_H */