Branch: Tag:

2004-05-25

2004-05-25 15:28:53 by Martin Stjernholm <mast@lysator.liu.se>

Kludge to avoid a certain cyclic resolver problem with -V7.4.

Rev: lib/master.pike.in:1.348

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.347 2004/05/01 12:18:38 nilsson Exp $ + // $Id: master.pike.in,v 1.348 2004/05/25 15:28:53 mast Exp $      #pike __REAL_VERSION__   //#pragma strict_types
1889:    root_module->fallback_module = fallback_resolver->root_module;    }    predefines = initial_predefines; +  +  // Kludge to avoid(?) recursive compilation problems. It was +  // observed with a pike program containing +  // +  // #if constant (__builtin.security) +  // #endif +  // +  // when using -V7.4. There was a cycle between resolving +  // lib/modules/__builtin.pmod and lib/7.4/modules/__default.pmod. +  get_default_module();    }       //! Add a directory to search for include files.
2038:    //!    mapping get_default_module()    { +  resolv_debug ("%O->get_default_module()\n", this); +     /* 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.