pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:389:    *! The hash algorithm was also changed in Pike 7.1. If you want a hash    *! that is compatible with Pike 7.0 and earlier, use @[hash_7_0()].    *!    *! @note    *! This hash function differs from the one provided by @[hash_value()],    *! in that @[hash_value()] returns a process specific value.    *!    *! @seealso    *! @[hash()], @[hash_7_0()], @[hash_7_4()], @[hash_value]    */ - PMOD_EXPORT void f_hash_8_0(INT32 args) + static void f_hash_8_0(INT32 args)   {    size_t i = 0;    struct pike_string *s;       if(!args)    SIMPLE_WRONG_NUM_ARGS_ERROR("hash",1);       if(TYPEOF(Pike_sp[-args]) != T_STRING)    SIMPLE_ARG_TYPE_ERROR("hash", 1, "string");   
pike.git/src/builtin_functions.c:456:    *! The hash algorithm was also changed in Pike 7.1. If you want a hash    *! that is compatible with Pike 7.0 and earlier, use @[hash_7_0()].    *!    *! @note    *! This hash function differs from the one provided by @[hash_value()],    *! in that @[hash_value()] returns a process specific value.    *!    *! @seealso    *! @[hash_7_0()], @[hash_7_4()], @[hash_8_0()], @[hash_value]    */ - static void f_hash( INT32 args ) + PMOD_EXPORT void f_hash( INT32 args )   {    size_t res;       if( TYPEOF(Pike_sp[-args]) != PIKE_T_STRING )    PIKE_ERROR("hash","Argument is not a string\n",Pike_sp,args);       res = pike_string_siphash24(Pike_sp[-args].u.string, 0) & 0x7fffffff;       if( args > 1 ) {    if(TYPEOF(Pike_sp[1-args]) != T_INT)