pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:193:    if (count) {    add_args = mknode(F_ARG_LIST, add_args,    mkapplynode(copy_node(CAR(n)), new_args));    new_args = NULL;    count = 0;    }    CDR(n)->parent = n;    return mkefuncallnode("`+", add_args);   }    - /*! @decl __deprecated__ int hash_7_4(string s) -  *! @decl __deprecated__ int hash_7_4(string s, int max) + /*! @decl int hash_7_4(string s) +  *! @decl int hash_7_4(string s, int max)    *! -  *! @deprecated 7.4::hash +  *! Return an integer derived from the string @[s]. The same string +  *! always hashes to the same value, also between processes.    *! -  +  *! 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 with +  *! code written for Pike up and including version 7.4. +  *! +  *! This function is byte-order dependant. +  *!    *! @seealso -  *! @[7.4::hash()], @[hash()] +  *! @[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) \    { \    size_t ret,c; \    \
pike.git/src/builtin_functions.c:307:    *! 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 with    *! code written for Pike up and including version 7.0.    *!    *! This function is not NUL-safe, and is byte-order dependant.    *!    *! @seealso -  *! @[hash()], @[7.4::hash()] +  *! @[hash()], @[hash_7_4]    */   static void f_hash_7_0( INT32 args )   {    struct pike_string *s = Pike_sp[-args].u.string;    unsigned int i;    if(!args)    SIMPLE_TOO_FEW_ARGS_ERROR("7.0::hash",1);    if(TYPEOF(Pike_sp[-args]) != T_STRING)    SIMPLE_BAD_ARG_ERROR("7.0::hash", 1, "string");