diff --git a/lib/modules/Protocols.pmod/NNTP.pmod b/lib/modules/Protocols.pmod/NNTP.pmod index db2b8eeac5002fbff02a26a3199ad684887f049c..b024f300d239a0a71da354cb7ad3566eb501bab3 100644 --- a/lib/modules/Protocols.pmod/NNTP.pmod +++ b/lib/modules/Protocols.pmod/NNTP.pmod @@ -18,9 +18,9 @@ class protocol return code; } - string *read_body_lines() + array(string) read_body_lines() { - string *ret=({}); + array(string) ret=({}); string s; while(s = news::gets()) { @@ -33,7 +33,7 @@ class protocol string readreturnbody() { - string *tmp=read_body_lines(); + array(string) tmp=read_body_lines(); return tmp*"\n"+"\n"; } diff --git a/lib/modules/Simulate.pmod b/lib/modules/Simulate.pmod index 55a11d621964191a07739cf99caa4544b6a1f3b2..e59b2ad83299a23237d126984c696b5e5b8b6c31 100644 --- a/lib/modules/Simulate.pmod +++ b/lib/modules/Simulate.pmod @@ -4,7 +4,7 @@ inherit Process; #define error(X) throw( ({ (X), backtrace()[0..sizeof(backtrace())-2] }) ) -int member_array(mixed needle,mixed *haystack,int|void start) +int member_array(mixed needle,array(mixed) haystack,int|void start) { return search(haystack,needle,start); } @@ -12,7 +12,7 @@ int member_array(mixed needle,mixed *haystack,int|void start) object previous_object() { int e; - mixed **trace; + array(array(mixed)) trace; object o,ret; trace=backtrace(); o=function_object(trace[-2][2]); @@ -38,7 +38,7 @@ function get_function(object o, string a) return functionp(ret) ? ret : 0; } -string *map_regexp(string *s, string reg) +array(string) map_regexp(array(string) s, string reg) { object(Regexp) regexp = Regexp(reg);