pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-06
2014-12-06 14:46:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>
f6c5cf72c1fd016ffd8a84e4bf07f1b4ac2e359a (
13
lines) (+
4
/-
9
)
[
Show
|
Annotate
]
Branch:
8.1
Documentation: 7.4::hash() is no more.
Use hash_7_4() instead.
219:
*! @[hash()], @[hash_7_0] */
-
/*! @namespace 7.4::
-
*/
-
+
#define MK_HASHMEM(NAME, TYPE) ATTRIBUTE((const)) \ static INLINE size_t NAME(const TYPE *str, ptrdiff_t len, ptrdiff_t maxn) \ { \
243:
MK_HASHMEM(simple_hashmem1, p_wchar1) MK_HASHMEM(simple_hashmem2, p_wchar2)
-
/*! @decl int hash(string s)
-
*! @decl int hash(string s, int max)
+
/*! @decl int hash
_7_4
(string s)
+
*! @decl int hash
_7_4
(string s, int max)
*! *! Return an integer derived from the string @[s]. The same string *! will always hash to the same value, also between processes.
288:
push_int64(i); }
-
/*! @endnamespace
-
*/
-
+
ATTRIBUTE((const)) static INLINE size_t hashstr(const unsigned char *str, ptrdiff_t maxn) { size_t ret,c;
381:
*! in that @[hash_value()] returns a process specific value. *! *! @seealso
-
*! @[hash_7_0()], @[7
.
4
::hash
()], @[hash_value]
+
*! @[hash_7_0()], @[
hash_
7
_
4()], @[hash_value]
*/ PMOD_EXPORT void f_hash(INT32 args) {