pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-08-11
2014-08-11 20:57:16 by Martin Nilsson <nilsson@opera.com>
067ddda719ca947e4d24414d8d87be29f63d350d (
29
lines) (+
8
/-
21
)
[
Show
|
Annotate
]
Branch:
8.0
Remove Pike 7.0 support. We now only support post-2000 code.
209:
*! @[7.4::hash()] */
-
/*! @decl __deprecated__ int hash_7_0(string s)
-
*! @decl __deprecated__ int hash_7_0(string s, int max)
-
*!
-
*! @deprecated 7.0::hash
-
*!
-
*! @seealso
-
*! @[7.0::hash()]
-
*/
-
+
/*! @namespace 7.4:: */
290:
/*! @endnamespace */
-
/*! @namespace 7.0::
-
*/
-
+
ATTRIBUTE((const)) static INLINE size_t hashstr(const unsigned char *str, ptrdiff_t maxn) { size_t ret,c;
310:
return ret; }
-
/*! @decl int hash(string s)
-
*! @decl int hash(string s, int max)
+
/*! @decl int hash
_7_0
(string s)
+
*! @decl int hash
_7_0
(string s, int max)
*! *! Return an integer derived from the string @[s]. The same string *! always hashes to the same value, also between processes.
320:
*! otherwise the result will be >= 0 and <= 0x7fffffff. *! *! @note
-
*! This function is provided for backward compatibility
reasons
.
+
*! This function is provided for backward compatibility
with
+
*! code written for Pike up and including version 7
.
0.
*! *! This function is not NUL-safe, and is byte-order dependant. *! *! @seealso
-
*! @[
predef::
hash()], @[7.4::hash()]
+
*! @[hash()], @[7.4::hash()]
*/ static void f_hash_7_0( INT32 args ) {
358:
push_int( i ); }
-
/*! @endnamespace
-
*/
-
+
/*! @decl int hash(string s) *! @decl int hash(string s, int max) *!
385:
*! in that @[hash_value()] returns a process specific value. *! *! @seealso
-
*! @[7
.
0
::hash
()], @[7.4::hash()], @[hash_value]
+
*! @[
hash_
7
_
0()], @[7.4::hash()], @[hash_value]
*/ PMOD_EXPORT void f_hash(INT32 args) {
9826:
ADD_EFUN("hash",f_hash,tFunc(tStr tOr(tInt,tVoid),tInt),OPT_TRY_OPTIMIZE); ADD_EFUN("hash_7_0",f_hash_7_0,
-
tDeprecated(
tFunc(tStr tOr(tInt,tVoid),tInt)
)
,OPT_TRY_OPTIMIZE);
+
tFunc(tStr tOr(tInt,tVoid),tInt),OPT_TRY_OPTIMIZE);
ADD_EFUN("hash_7_4",f_hash_7_4, tDeprecated(tFunc(tStr tOr(tInt,tVoid),tInt)),OPT_TRY_OPTIMIZE);