Branch: Tag:

1997-04-09

1997-04-09 01:26:36 by Niels Möller <nisse@lysator.liu.se>

Don't inherit Regexp. Changed map_regexp() accordingly.

Rev: lib/modules/Simulate.pmod:1.4

5:      #define error(X) throw( ({ (X), backtrace()[0..sizeof(backtrace())-2] }) )    - inherit Regexp : regexp; -  +    varargs int member_array(mixed needle,mixed *haystack,int start)   {    return search(haystack,needle,start);
44:   string *map_regexp(string *s, string reg)   {    -  regexp::create(reg); -  s=filter(s,regexp::match); -  regexp::create(); /* Free compiled regexp */ +  object(Regexp) regexp = Regexp(reg); +  s=filter(s,regexp->match);    return s;   }