Branch: Tag:


2004-11-27 22:48:11 by Martin Stjernholm <>

Removed assumptions that inequality operations always works on total orders
(that's not even true for simple floats). I.e. that a <= b is the same as
!(a > b) and so on.

Rev: src/interpret_functions.h:1.177
Rev: src/operators.c:1.201
Rev: src/operators.h:1.17
Rev: src/
Rev: src/svalue.c:1.207
Rev: src/svalue.h:1.133
Rev: src/

2:   || 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: svalue.h,v 1.132 2004/09/30 15:22:38 mast Exp $ + || $Id: svalue.h,v 1.133 2004/11/27 22:48:11 mast Exp $   */      #ifndef SVALUE_H
270:   #define FUNCTION_BUILTIN USHRT_MAX      #define is_gt(a,b) is_lt(b,a) + #define is_ge(a,b) is_le(b,a)      /* SAFE_IS_ZERO is compatible with the old IS_ZERO, but you should    * consider using UNSAFE_IS_ZERO instead, since exceptions thrown from
599:    struct processing *p);   PMOD_EXPORT int is_equal(const struct svalue *a, const struct svalue *b);   PMOD_EXPORT int is_lt(const struct svalue *a, const struct svalue *b); + PMOD_EXPORT int is_le(const struct svalue *a, const struct svalue *b);   PMOD_EXPORT void describe_svalue(const struct svalue *s,int indent,struct processing *p);   PMOD_EXPORT void print_svalue (FILE *out, const struct svalue *s);   PMOD_EXPORT void print_short_svalue (FILE *out, const union anything *a, TYPE_T type);