pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2002-05-31
2002-05-31 13:44:31 by Martin Nilsson <mani@lysator.liu.se>
9fcd2495299b5a6e34b73353c6626ef58106c0f0 (
29
lines) (+
15
/-
14
)
[
Show
|
Annotate
]
Branch:
7.9
Changed some @code to @expr
Rev: src/operators.c:1.152
6:
/**/ #include "global.h" #include <math.h>
-
RCSID("$Id: operators.c,v 1.
151
2002/05/
30
15
:
36
:
49
nilsson Exp $");
+
RCSID("$Id: operators.c,v 1.
152
2002/05/
31
13
:
44
:
31
nilsson Exp $");
#include "interpret.h" #include "svalue.h" #include "multiset.h"
211:
*! @endmixed *! *! Otherwise if there are more than 2 arguments the result will be:
-
*!
@expr{`+
(`+(@[arg1], @[arg2]), @@@[extras])@}
+
*!
@code{`+
(`+(@[arg1], @[arg2]), @@@[extras])@}
*! *! @note *! In Pike 7.0 and earlier the addition order was unspecified.
1057:
*! *! @returns *! If there's only a single argument, that argument will be returned
-
*! negated. If @[arg1] was an object,
@code{@
[arg1]::`-()@} will be called
+
*! negated. If @[arg1] was an object,
@expr{@
[arg1]::`-()@} will be called
*! without arguments. *! *! If there are more than two arguments the result will be:
1078:
*! @[arg2] removed. *! @type multiset|mapping *! The result will be @[arg1] with all occurrences of
-
*!
@code{@
[indices](@[arg2])@} removed.
+
*!
@expr{@
[indices](@[arg2])@} removed.
*! @endmixed *! @type array|multiset *! The result will be the elements of @[arg1] that are not in @[arg2]. *! @type float|int
-
*! The result will be
@code{@
[arg1] - @[arg2]@}, and will be a float
+
*! The result will be
@expr{@
[arg1] - @[arg2]@}, and will be a float
*! if either @[arg1] or @[arg2] is a float. *! @type string *! Result will be the string @[arg1] with all occurrances of the
1867:
*! The result will be the pairwise bitwise xor of @[arg1] and @[arg2]. *! @type type|program *! The result will be the result of
-
*!
@code{
(@[arg1]&~@[arg2])|(~@[arg1]&@[arg2])@}.
+
*!
@expr{
(@[arg1]&~@[arg2])|(~@[arg1]&@[arg2])@}.
*! @endmixed *! *! @seealso
2314:
*! that function will be called with the rest of the arguments. *! *! If there are more than two arguments, the result will be
-
*!
@code{`
*(`*(@[arg1], @[arg2]), @@@[extras])@}.
+
*!
@expr{`
*(`*(@[arg1], @[arg2]), @@@[extras])@}.
*! *! If @[arg2] is an object that implements @[lfun::``*()], that *! function will be called with @[arg1] as the single argument.
2332:
*! @type string *! The result will be @[arg1] concatenated @[arg2] times. *! @type int|float
-
*! The result will be
@code{@
[arg1] * @[arg2]@}, and will be a
+
*! The result will be
@expr{@
[arg1] * @[arg2]@}, and will be a
*! float if either @[arg1] or @[arg2] is a float. *! @endmixed *!
2662:
*! *! @returns *! If there are more than two arguments, the result will be
-
*!
@code{`
/(`/(@[arg1], @[arg2]), @@@[extras])@}.
+
*!
@expr{`
/(`/(@[arg1], @[arg2]), @@@[extras])@}.
*! *! If @[arg1] is an object that implements @[lfun::`/()], that *! function will be called with @[arg2] as the single argument.
2695:
*! matched against @[arg2] will not be in the result. *! @endmixed *! @type float|int
-
*! The result will be
@code{@
[arg1] / @[arg2]@}. If both arguments
+
*! The result will be
@expr{@
[arg1] / @[arg2]@}. If both arguments
*! are int, the result will be truncated to an int. Otherwise the *! result will be a float. *! @endmixed
2861:
*! @mixed arg1 *! @type string|array *! If @[arg2] is positive, the result will be the last
-
*!
@code{`
%(@[sizeof](@[arg1]), @[arg2])@} elements of @[arg1].
+
*!
@expr{`
%(@[sizeof](@[arg1]), @[arg2])@} elements of @[arg1].
*! If @[arg2] is negative, the result will be the first
-
*!
@code{`
%(@[sizeof](@[arg1]), -@[arg2])@} elements of @[arg1].
+
*!
@expr{`
%(@[sizeof](@[arg1]), -@[arg2])@} elements of @[arg1].
*! @type int|float *! The result will be
-
*!
@code{@
[arg1] - @[arg2]*@[floor](@[arg1]/@[arg2])@}.
+
*!
@expr{@
[arg1] - @[arg2]*@[floor](@[arg1]/@[arg2])@}.
*! The result will be a float if either @[arg1] or @[arg2] is *! a float, and an int otherwise. *! @endmixed
3049:
*! @type int *! The bitwise inverse of @[arg] will be returned. *! @type float
-
*! The result will be
@code{
-1.0 - @[arg]@}.
+
*! The result will be
@expr{
-1.0 - @[arg]@}.
*! @type type|program *! The type inverse of @[arg] will be returned. *! @type string