pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2001-07-16
2001-07-16 23:48:22 by Martin Nilsson <mani@lysator.liu.se>
81ae34280c11c5075231ae792c42b0d8281c103e (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Updated documentation about hash and compat_hash.
Rev: src/builtin_functions.c:1.396
5:
\*/ /**/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
395
2001/07/16
09
:
08
:
00
norlin
Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
396
2001/07/16
23
:
48
:
22
nilsson
Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
117:
*! *! This function will return an @tt{int@} derived from the string @[s]. *! The same string will always hash to the same value.
-
*! If @[max] is given, the result will be >= 0 and <
=
@[max].
+
*! If @[max] is given, the result will be >= 0 and < @[max]
, otherwise
+
*! the result will be >= 0 and <= 0x7fffffff
.
*! *! @note *! This function is provided for backward compatibility reasons.
161:
*! *! This function will return an @tt{int@} derived from the string @[s]. *! The same string will always hash to the same value.
-
*! If @[max] is given, the result will be >= 0 and <
=
@[max].
+
*! If @[max] is given, the result will be >= 0 and < @[max]
, otherwise
+
*! the result will be >= 0 and <= 0x7fffffff
.
*! *! @note *! The hash algorithm was changed in Pike 7.1. If you want a hash