mapping.c

dw_fluffos_v1/lib/secure/simul_efun/mapping.c · 442 B

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

/**
 * Cotains some simul_efuns.
 * @author Pinkfish
 */
/**
 * Deletes an element from a mapping (obsolete).  Use of this
 * should be avoided.  It is far more expensive than the
 * map_delete() efun.
 * @see efun::map_delete()
 * @param map the mapping to remove an element from
 * @param key the element to remove
 */
mapping m_delete(mapping map, mixed key) {
  map = map + ([ ]);
  map_delete(map, key);
  return map;
} /* m_delete() */

Site Stats

Snippets: 1791
Codebases: 571