Branch: Tag:

2002-07-23

2002-07-23 14:06:10 by Martin Stjernholm <mast@lysator.liu.se>

Reverted the ugliness that tries to support main(array(string) args).
It isn't compatible when the type for main is underspecified for one
reason or the other, and it's very ugly to call a callback differently
depending on its type.

Rev: lib/master.pike.in:1.210

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.209 2002/07/16 18:47:20 hop Exp $ + // $Id: master.pike.in,v 1.210 2002/07/23 14:06:10 mast Exp $      #pike __REAL_VERSION__   
1908:    exit(1);    }    -  function(array(string):int) newmain; -  if( _typeof(script->main) <= typeof(newmain) ) { +     if(trace) predef::trace(trace); -  i = script->main( argv ); -  } -  else { -  if(trace) predef::trace(trace); -  i = script->main( sizeof(argv), argv, env ); -  } +  i=script->main(sizeof(argv),argv,env);    if(i >=0) exit(i);    _async=1;