pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
1999-10-01
1999-10-01 20:45:06 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
c2769bd366142b8234c432aa3dce04497fe4c62d (
9
lines) (+
7
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
bugfix
Rev: src/operators.c:1.60
6:
/**/ #include "global.h" #include <math.h>
-
RCSID("$Id: operators.c,v 1.
59
1999/
08
/
17
01:
05
:
56
mast
Exp $");
+
RCSID("$Id: operators.c,v 1.
60
1999/
10
/
01
20
:
45
:
06
hubbe
Exp $");
#include "interpret.h" #include "svalue.h" #include "multiset.h"
838:
{ switch(sp[-args].type) {
-
case
T_ARRAY:
+
/*
This method can be used for types where a op b === b op a */
case T_MULTISET: { int e=-1;
860:
return; }
+
/* Binary balanced tree method for types where
+
* a op b may or may not be equal to b op a
+
*/
+
case T_ARRAY:
case T_MAPPING: r_speedup(args,func); return;