Branch: Tag:

2014-12-04

2014-12-04 19:27:09 by Martin Nilsson <nilsson@opera.com>

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);