pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.184 2001/12/18 16:59:47 mast Exp $ +  * $Id: master.pike.in,v 1.185 2001/12/19 23:54:54 mast Exp $    *    * Master-file for Pike.    *    * Based on master.pike 1.67.    */      // Some configurable parameters useful for debugging      #pike __REAL_VERSION__   #define PIKE_AUTORELOAD
pike.git/lib/master.pike.in:1176:         multiset no_resolv = (<>);      //!   class CompatResolver   {    array(string) pike_include_path=({});    array(string) pike_module_path=({});    array(string) pike_program_path=({}); +  mapping(string:string) predefines = ([]);    int want_warnings = PIKE_WARNINGS;    string ver;       //! The ComparResolver is initialized with a value that can be    //! casted into a "%d.%d" string, e.g. a version object.    void create(mixed version)    {    ver=(string)version;    }   
pike.git/lib/master.pike.in:1271:    //!    //! @seealso    //! @[add_program_path()]    //!    void remove_program_path(string tmp)    {    tmp=normalize_path(combine_path_with_cwd(tmp));    pike_program_path-=({tmp});    }    +  //! Add a define (without arguments) which will be implicitly +  //! defined in @[cpp] calls. +  void add_predefine (string name, string value) +  { +  predefines[name] = value; +  } +  +  //! Remove a define from the set that are implicitly defined in +  //! @[cpp] calls. +  void remove_predefine (string name) +  { +  m_delete (predefines, name); +  } +     //! -  +  mapping get_predefines() +  { +  return predefines; +  } +  +  //!    mapping get_default_module()    {    /* This is an ugly kluge to avoid an infinite recursion.    * The infinite recursion occurs because this function is    * called for every file when the compat_major/minor is set.    * This kluge could cause problems with threads if the    * compiler was threaded. -Hubbe    */    int saved_compat_minor=compat_minor;    int saved_compat_major=compat_major;
pike.git/lib/master.pike.in:1459:   void _main(array(string) orig_argv, array(string) env)   {    array(string) argv=copy_value(orig_argv);    int i,debug,trace;    object tmp;    string a,b;    array q;    string postparseaction=0;    mixed v;    +  predefines = _static_modules.Builtin._take_over_initial_predefines();    _pike_file_name = orig_argv[0];   #if constant(thread_create)    _backend_thread = this_thread();   #endif       foreach(env,a)    {    if(sscanf(a,"%s=%s",a,b))    {    if(a=="") // Special hack for NT