Branch: Tag:

2006-07-05

2006-07-05 02:19:15 by Martin Stjernholm <mast@lysator.liu.se>

Map free_mapping to do_free_mapping in dynamic modules to avoid having
to PMOD_EXPORT block_alloc functions.

Rev: src/mapping.h:1.63

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: mapping.h,v 1.62 2005/09/11 00:40:10 grendel Exp $ + || $Id: mapping.h,v 1.63 2006/07/05 02:19:15 mast Exp $   */      #ifndef MAPPING_H
87:      #endif /* PIKE_MAPPING_KEYPAIR_LOOP */    + #if defined(USE_DLL) && defined(DYNAMIC_MODULE) + /* Use the function in modules so we don't have to export the block +  * alloc stuff. */ + #define free_mapping(M) do_free_mapping (M) + #else +    /** Free a previously allocated mapping. The preferred method of freeing    * a mapping is by calling the @ref do_free_mapping function.    *
105:    really_free_mapping(m_); \    }while(0)    + #endif /* !DYNAMIC_MODULE */ +    /** Free only the mapping data leaving the mapping structure itself intact.    *    * @param M The mapping structure 'data' member of the mapping whose data is to be removed