pike.git/
lib/
modules/
Array.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2002-03-02
2002-03-02 16:05:10 by Martin Nilsson <mani@lysator.liu.se>
a9d4a25a7cb6d4ef1c1a02248a6390160e397ba2 (
13
lines) (+
5
/-
8
)
[
Show
|
Annotate
]
Branch:
7.9
Updated a few prototypes. Fixed search_array error.
Rev: lib/modules/Array.pmod:1.61
1:
#pike __REAL_VERSION__
-
#define error(X) throw( ({ (X), backtrace()[0..sizeof(backtrace())-2] }) )
-
+
constant diff = __builtin.diff; constant diff_longest_sequence = __builtin.diff_longest_sequence; constant diff_compare_table = __builtin.diff_compare_table;
83:
//! @seealso //! @[sum()], @[map()] //!
-
int search_array(array arr,
mixed
fun, mixed ... args)
+
int search_array(array arr,
string|function|int
fun, mixed ... args)
{ int e;
108:
return e; return -1; }
-
else
-
{
-
error("Bad argument 2 to
filter
().\n");
+
+
error("Bad argument 2 to
search_array
().\n");
}
-
}
+
-
array sum_arrays(function sum,
array(
mixed
)
... args)
+
array sum_arrays(function sum, mixed ... args)
{ array ret; int e,d;