Branch: Tag:

2003-08-22

2003-08-22 14:26:26 by Martin Nilsson <mani@lysator.liu.se>

Don't pretend return is a function.

Rev: lib/modules/Graphics.pmod/Graph.pmod/polyline.pike:1.5
Rev: lib/modules/Parser.pmod/LR.pmod/GrammarParser.pmod:1.5
Rev: lib/modules/Parser.pmod/LR.pmod/lr.pike:1.5
Rev: lib/modules/Parser.pmod/LR.pmod/module.pmod:1.11
Rev: lib/modules/Protocols.pmod/DNS.pmod:1.80
Rev: lib/modules/SSL.pmod/sslfile.pike:1.56
Rev: lib/modules/Sql.pmod/mysql.pike:1.18
Rev: lib/modules/Sql.pmod/sql_result.pike:1.12
Rev: lib/modules/Sql.pmod/sql_util.pmod:1.12
Rev: lib/modules/Stdio.pmod/module.pmod:1.181

1: - // $Id: DNS.pmod,v 1.79 2003/08/07 14:22:17 nilsson Exp $ + // $Id: DNS.pmod,v 1.80 2003/08/22 14:25:27 nilsson Exp $   // Not yet finished -- Fredrik Hubinette      //! Domain Name System
552:       static private int is_ip(string ip)    { -  return(replace(ip, -  ({ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "." }), -  ({ "", "", "", "", "", "", "", "", "", "", "" })) == ""); +  // FIXME: Doesn't work with IPv6 +  return (replace(ip, "0123456789."/1, allocate(11,"")) == "");    }       static private mapping etc_hosts;
628:    }    }    } -  return(etc_hosts[lower_case(host)]); +  return etc_hosts[lower_case(host)];    }       //! @decl void create()
982:    });    } else {    // Lookup failed. -  return({ 0, ({}), ({}) }); +  return ({ 0, ({}), ({}) });    }    }