pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2001-10-30
2001-10-30 10:48:45 by Henrik Grubbström (Grubba) <grubba@grubba.org>
f92868f0cfeebfa4fcaf982d27a34051234e31c0 (
12
lines) (+
8
/-
4
)
[
Show
|
Annotate
]
Branch:
7.2
Fix for [bug
2433 (#2433)
].
Rev: src/builtin_functions.c:1.349
5:
\*/ /**/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
348
2001/
09
/
25
03
:
15
:
32
hubbe
Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
349
2001/
10
/
30
10
:
48
:
45
grubba
Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
589:
"Start must not be greater than the " "length of the string.\n");
+
/* Handle searching for the empty string. */
+
if (Pike_sp[1-args].u.string->len) {
start=string_search(Pike_sp[-args].u.string, Pike_sp[1-args].u.string, start);
-
+
}
pop_n_elems(args); push_int64(start);