Branch: Tag:

2005-05-27

2005-05-27 11:39:52 by Martin Stjernholm <mast@lysator.liu.se>

Some pike 7.6 compat fixes.

Rev: lib/modules/Search.pmod/Database.pmod/MySQL.pike:1.83
Rev: lib/modules/Search.pmod/Queue.pmod/MySQL.pike:1.20

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;   
13:   {    object md5 = Crypto.md5();    md5->update(string_to_utf8(url)); -  return Crypto.string_to_hex(md5->digest()); +  return STRING2HEX(md5->digest());   }      void create( Web.Crawler.Stats _stats,