pike.git/
src/
array.h
Branch:
Tag:
Non-build tags
All tags
No tags
2001-04-30
2001-04-30 17:31:29 by Martin Stjernholm <mast@lysator.liu.se>
e4acf8e0e8cbe2ed86524988d8ac96b478040583 (
6
lines) (+
4
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
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);