head 1.8; access; symbols act_first:1.1.1.1 act:1.1.1; locks; strict; comment @ * @; 1.8 date 2003.01.06.12.10.58; author rse; state Exp; branches; next 1.7; 1.7 date 2002.01.02.17.05.53; author rse; state Exp; branches; next 1.6; 1.6 date 2001.03.21.15.59.01; author rse; state Exp; branches; next 1.5; 1.5 date 2000.08.20.14.46.26; author rse; state Exp; branches; next 1.4; 1.4 date 2000.08.18.15.58.09; author rse; state Exp; branches; next 1.3; 1.3 date 2000.08.18.15.35.57; author rse; state Exp; branches; next 1.2; 1.2 date 99.11.28.17.05.25; author rse; state Exp; branches; next 1.1; 1.1 date 99.11.12.20.37.19; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.11.12.20.37.19; author rse; state Exp; branches; next ; desc @@ 1.8 log @cleanup source tree @ text @/* ** OSSP act - Abstract Container Types ** Copyright (c) 1999-2003 Ralf S. Engelschall ** Copyright (c) 1999-2003 The OSSP Project ** ** This file is part of OSSP act, an abstract container type library ** which can be found at http://www.ossp.org/pkg/lib/act/. ** ** Permission to use, copy, modify, and distribute this software for ** any purpose with or without fee is hereby granted, provided that ** the above copyright notice and this permission notice appear in all ** copies. ** ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ** IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ** USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ** ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ** OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ** SUCH DAMAGE. ** ** act_mem.h: memory handling (declaration) */ #ifndef _ACT_MEM_H_ #define _ACT_MEM_H_ extern size_t act_mem_align(size_t); extern void *(*act_mem_alloc)(size_t); extern void *(*act_mem_realloc)(void *, size_t); extern void (*act_mem_free)(void *); extern void *(*act_mem_dup)(void *, size_t); extern void *(*act_mem_set)(void *, int, size_t); extern void *(*act_mem_move)(void *, const void *, size_t); extern void *(*act_mem_char)(const void *, unsigned char, size_t); extern void *(*act_mem_mem)(const void *, size_t, const void *, size_t); extern int (*act_mem_cmp)(const void *, const void *, size_t); extern void *act_mem_alloc_ctx(act_ctx_t *, size_t); extern void *act_mem_realloc_ctx(act_ctx_t *, void *, size_t); extern void act_mem_free_ctx(act_ctx_t *, void *); typedef void *(*act_mem_alloc_t)(size_t); typedef void *(*act_mem_realloc_t)(void *, size_t); typedef void (*act_mem_free_t)(void *); typedef void *(*act_mem_alloc_ctx_t)(void *, size_t); typedef void *(*act_mem_realloc_ctx_t)(void *, void *, size_t); typedef void (*act_mem_free_ctx_t)(void *, void *); #define ACT_CTX_MEM_ALLOC ACT_CTX_ID(ptr,MEM,0) #define ACT_CTX_MEM_REALLOC ACT_CTX_ID(ptr,MEM,1) #define ACT_CTX_MEM_FREE ACT_CTX_ID(ptr,MEM,2) #define ACT_CTX_MEM_CTXARG ACT_CTX_ID(ptr,MEM,3) #define ACT_CTX_MEM_CTXUSE ACT_CTX_ID(int,MEM,4) #endif /* _ACT_MEM_H_ */ @ 1.7 log @bump copyright year @ text @d1 4 a4 3 /* ** Act - Abstract Container Type Library ** Copyright (c) 1999-2002 Ralf S. Engelschall d6 2 a7 2 ** This file is part of Act, a library for dealing with Abstract ** Container Types which can be found at http://www.ossp.org/pkg/act/. @ 1.6 log @*** empty log message *** @ text @d3 1 a3 1 ** Copyright (c) 1999-2001 Ralf S. Engelschall @ 1.5 log @*** empty log message *** @ text @d3 1 a3 1 ** Copyright (c) 1999-2000 Ralf S. Engelschall @ 1.4 log @*** empty log message *** @ text @d32 2 @ 1.3 log @*** empty log message *** @ text @d1 26 a26 32 /* ==================================================================== * Copyright (c) 1999-2000 Ralf S. Engelschall. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * THIS SOFTWARE IS PROVIDED BY RALF S. ENGELSCHALL ``AS IS'' AND ANY * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RALF S. ENGELSCHALL OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * ==================================================================== */ /* ** act_mem.h -- Memory Handling @ 1.2 log @*** empty log message *** @ text @d2 1 a2 1 * Copyright (c) 1999 Ralf S. Engelschall. All rights reserved. @ 1.1 log @Initial revision @ text @d42 1 @ 1.1.1.1 log @ @ text @@