home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 1.iso
/
toolbox
/
src
/
exampleCode
/
opengl
/
GLUT
/
progs
/
demos
/
yacme
/
mallocbis.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-11-11
|
212 b
|
14 lines
#define newItem(item,list,type)\
if (list == NULL)\
item = (type *) malloc(sizeof(type));\
else\
{\
item = list;\
list = list->next;\
}
#define freeItem(item,list)\
item->next = list;\
list = item;