pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-10-14
1998-10-14 15:21:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>
43bf15c34889a5550616bf4c5bfdb119ae663496 (
12
lines) (+
8
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed compilation error.
Rev: src/builtin_functions.c:1.130
4:
||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
129
1998/10/14
05
:
48
:
45
hubbe
Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
130
1998/10/14
15
:
21
:
59
grubba
Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
230:
start=sp[2-args].u.integer; if(start<0)
-
PIKE_ERROR("search", "Start must be greater or equal to zero.\n", sp, args);
+
PIKE_ERROR("search",
+
"Start must be greater or equal to zero.\n", sp, args);
}
-
if(len<
0
)
-
PIKE_ERROR("search", "Start must not be greater than the length of the string.\n", sp, args);
+
if(
sp[-args].u.string->
len
<
start
)
+
PIKE_ERROR("search",
+
"Start must not be greater than the length of the string.\n",
+
sp, args);
start=string_search(sp[-args].u.string, sp[1-args].u.string,