diff --git a/src/array.c b/src/array.c index c1bdc944dbf2dd876c91d3a48045ae37d025432a..eebf365ec2a11d82ecb75d9fa1dc11e73924ace2 100644 --- a/src/array.c +++ b/src/array.c @@ -2,7 +2,7 @@ || 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: array.c,v 1.223 2009/02/12 21:06:27 srb Exp $ +|| $Id: array.c,v 1.224 2009/11/28 13:13:30 mast Exp $ */ #include "global.h" @@ -994,7 +994,7 @@ static INLINE int lfun_cmp (const struct svalue *a, const struct svalue *b) return 2; } -INLINE int set_svalue_cmpfun(const struct svalue *a, const struct svalue *b) +int set_svalue_cmpfun(const struct svalue *a, const struct svalue *b) { int res, typediff = a->type - b->type; @@ -1090,7 +1090,7 @@ static int switch_svalue_cmpfun(const struct svalue *a, const struct svalue *b) } } -static int alpha_svalue_cmpfun(const struct svalue *a, const struct svalue *b) +int alpha_svalue_cmpfun(const struct svalue *a, const struct svalue *b) { int res, typediff = a->type - b->type; diff --git a/src/array.h b/src/array.h index 67d90057a9ae587df6db3a99a5d7182251c252c5..15c3b6cb49000e9a7a4756c0fa89c9fc039097a3 100644 --- a/src/array.h +++ b/src/array.h @@ -2,7 +2,7 @@ || 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: array.h,v 1.83 2009/04/21 17:48:14 grubba Exp $ +|| $Id: array.h,v 1.84 2009/11/28 13:13:30 mast Exp $ */ #ifndef ARRAY_H @@ -131,7 +131,8 @@ PMOD_EXPORT struct array *copy_array(struct array *v); 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); -INLINE int set_svalue_cmpfun(const struct svalue *a, const struct svalue *b); +int set_svalue_cmpfun(const struct svalue *a, const struct svalue *b); +int alpha_svalue_cmpfun(const struct svalue *a, const struct svalue *b); PMOD_EXPORT void sort_array_destructively(struct array *v); PMOD_EXPORT INT32 *stable_sort_array_destructively(struct array *v); PMOD_EXPORT INT32 *get_set_order(struct array *a);