home *** CD-ROM | disk | FTP | other *** search
-
-
-
- iiiillllSSSSttttaaaacccckkkkAAAAlllllllloooocccc((((3333)))) IIIImmmmaaaaggggeeeeVVVViiiissssiiiioooonnnn LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiillllSSSSttttaaaacccckkkkAAAAlllllllloooocccc((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- iiiillllSSSSttttaaaacccckkkkAAAAlllllllloooocccc - stack space allocation
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <il/ilStackAlloc.h>
-
- void* ilStackAlloc(unsigned int size);
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- iiiillllSSSSttttaaaacccckkkkAAAAlllllllloooocccc() returns a pointer to size bytes of uninitialized local
- stack space. Since the space is allocated using a built-in compiler
- function, the allocation is quite fast. If zero is passed as size, alloca
- returns a valid pointer (unlike some versions of malloc, which consider a
- zero size to be an error).
-
- The #include <il/ilStackAlloc.h> is required.
-
- Space allocated when a function calls iiiillllSSSSttttaaaacccckkkkAAAAlllllllloooocccc() is freed
- automatically when that function returns.
-
- It is an error to call ffffrrrreeeeeeee() with a pointer returned by iiiillllSSSSttttaaaacccckkkkAAAAlllllllloooocccc().
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- Do not call ilStackAlloc as an argument to another function, as in
- foo(ilStackAlloc(20));. Instead use, for example, cp = ilStackAlloc(20);
- foo(cp);.
-
- Assign the value returned by ilStackAlloc to a simple variable. For
- example, mylist[i] = ilStackAlloc(12); will not work. Instead, use cp =
- ilStackAlloc(12); mylist[i] = cp;.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-