X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpool.h;h=e884ae61e723a4d063deebdadc99ed9f9d5db817;hb=6eea9310493902d3b06b25c612c7ba89d467b6fa;hp=a751c96cb7f5cfffe4fd00538e2a275f9fc60e73;hpb=b18e1b9c95a478d434e9fcef9d8579d0b96b9a8d;p=pspp diff --git a/src/pool.h b/src/pool.h index a751c96cb7..e884ae61e7 100644 --- a/src/pool.h +++ b/src/pool.h @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #if !pool_h #define pool_h 1 @@ -36,15 +36,17 @@ struct pool_mark /* General routines. */ struct pool *pool_create (void); void pool_destroy (struct pool *); +void pool_clear (struct pool *); /* Suballocation routines. */ -void *pool_alloc (struct pool *, size_t); -char *pool_strdup (struct pool *, const char *); -char *pool_strndup (struct pool *, const char *, size_t); -char *pool_strcat (struct pool *, const char *, ...); +void *pool_alloc (struct pool *, size_t) MALLOC_LIKE; +void *pool_clone (struct pool *, const void *, size_t) MALLOC_LIKE; +char *pool_strdup (struct pool *, const char *) MALLOC_LIKE; +char *pool_strndup (struct pool *, const char *, size_t) MALLOC_LIKE; +char *pool_strcat (struct pool *, const char *, ...) MALLOC_LIKE; /* Standard allocation routines. */ -void *pool_malloc (struct pool *, size_t); +void *pool_malloc (struct pool *, size_t) MALLOC_LIKE; void *pool_realloc (struct pool *, void *, size_t); void pool_free (struct pool *, void *);