Branch: Tag:

2008-08-15

2008-08-15 14:54:40 by Martin Stjernholm <mast@lysator.liu.se>

Moving to pike 7.8 and dropping compatibility with earlier pikes.

Rev: lib/modules/Search.pmod/Database.pmod/MySQL.pike:1.88
Rev: lib/modules/Search.pmod/Queue.pmod/MySQL.pike:1.23

1:   inherit .Base;    - #if constant (String.string2hex) - // Pike >= 7.6 - #define STRING2HEX String.string2hex - #else - #define STRING2HEX Crypto.string_to_hex - #endif -  +    Sql.Sql db;   string url, table;   
18:      static string to_md5(string url)   { -  object md5 = Crypto.md5(); +  Crypto.MD5 md5 = Crypto.MD5();    md5->update(string_to_utf8(url)); -  return STRING2HEX(md5->digest()); +  return String.string2hex(md5->digest());   }      void create( Web.Crawler.Stats _stats,