pike.git / src / mapping.h

version» Context lines:

pike.git/src/mapping.h:148:   PMOD_EXPORT void really_free_mapping_data(struct mapping_data *md);      /** A wrapper function for the free_mapping macro. Should be used instead of    * the macro as it checks whether the passed mapping is NULL or not.    *    * @param m The mapping to be freed    * @see free_mapping    */   PMOD_EXPORT void do_free_mapping(struct mapping *m);    + /** Perform a quick gc of the specified weak mapping. +  * +  * @param m The weak mapping to be garbage collected. +  * @return The number of freed elements. +  * +  * @see do_gc +  */ + ptrdiff_t do_gc_weak_mapping(struct mapping *m); +    /** Makes a copy of the passed mapping data and returns it to the caller.    *    * @param md The mapping structure data member to be copied    * @return Copy of the passed data    * @see mapping    */   struct mapping_data *copy_mapping_data(struct mapping_data *md);   PMOD_EXPORT void mapping_fix_type_field(struct mapping *m);   PMOD_EXPORT void mapping_set_flags(struct mapping *m, int flags);