Branch: Tag:

2001-04-30

2001-04-30 17:31:29 by Martin Stjernholm <mast@lysator.liu.se>

Export set_svalue_cmpfun since it's used by rbtree.

Rev: src/array.c:1.105
Rev: src/array.h:1.34

5:   \*/      /* -  * $Id: array.h,v 1.33 2001/04/07 07:38:23 hubbe Exp $ +  * $Id: array.h,v 1.34 2001/04/30 17:31:29 mast Exp $    */   #ifndef ARRAY_H   #define ARRAY_H
81:   #define allocate_array(X) low_allocate_array((X),0)   #define allocate_array_no_init(X,Y) low_allocate_array((X),(Y))    - typedef int (*cmpfun)(struct svalue *,struct svalue *); + typedef int (*cmpfun)(const struct svalue *, const struct svalue *);   typedef int (*short_cmpfun)(union anything *, union anything *);   typedef short_cmpfun (*cmpfun_getter)(TYPE_T);   
112:   PMOD_EXPORT void check_array_for_destruct(struct array *v);   PMOD_EXPORT INT32 array_find_destructed_object(struct array *v);   INT32 *get_order(struct array *v, cmpfun fun); + int set_svalue_cmpfun(const struct svalue *a, const struct svalue *b);   PMOD_EXPORT void sort_array_destructively(struct array *v);   PMOD_EXPORT INT32 *get_set_order(struct array *a);   PMOD_EXPORT INT32 *get_switch_order(struct array *a);