| 1 | /* objalloc.h -- routines to allocate memory for objects
|
|---|
| 2 | Copyright 1997, 2001 Free Software Foundation, Inc.
|
|---|
| 3 | Written by Ian Lance Taylor, Cygnus Solutions.
|
|---|
| 4 |
|
|---|
| 5 | This program is free software; you can redistribute it and/or modify it
|
|---|
| 6 | under the terms of the GNU General Public License as published by the
|
|---|
| 7 | Free Software Foundation; either version 2, or (at your option) any
|
|---|
| 8 | later version.
|
|---|
| 9 |
|
|---|
| 10 | This program is distributed in the hope that it will be useful,
|
|---|
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 13 | GNU General Public License for more details.
|
|---|
| 14 |
|
|---|
| 15 | You should have received a copy of the GNU General Public License
|
|---|
| 16 | along with this program; if not, write to the Free Software
|
|---|
| 17 | Foundation, 59 Temple Place - Suite 330,
|
|---|
| 18 | Boston, MA 02111-1307, USA. */
|
|---|
| 19 |
|
|---|
| 20 | #ifndef OBJALLOC_H
|
|---|
| 21 | #define OBJALLOC_H
|
|---|
| 22 |
|
|---|
| 23 | #include "ansidecl.h"
|
|---|
| 24 |
|
|---|
| 25 | /* These routines allocate space for an object. The assumption is
|
|---|
| 26 | that the object will want to allocate space as it goes along, but
|
|---|
| 27 | will never want to free any particular block. There is a function
|
|---|
| 28 | to free a block, which also frees all more recently allocated
|
|---|
| 29 | blocks. There is also a function to free all the allocated space.
|
|---|
| 30 |
|
|---|
|
|---|