pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:4027:    script=prog();    }    else {    script=prog(argv);    }    if(!script->main)    error("Error: %s has no main().\n", argv[0]);    if (cur_compat_ver <= Version (7, 6))    ret=script->main(sizeof(argv),argv,getenv());    else +  { +  array a; +  if( __get_first_arg_type(_typeof(script->main))<=typeof(a) ) +  ret=script->main(argv); +  else    ret=script->main(sizeof(argv),argv); -  +  }    };    // Disable tracing.    trace = predef::trace(trace);    if (err) {    handle_error (err);    ret = 10;    }    if(!intp(ret))    exit(10, "Error: Non-integer value %O returned from main.\n", ret);