Branch: Tag:

2004-01-12

2004-01-12 03:25:10 by Martin Nilsson <mani@lysator.liu.se>

Fixed a bug in describe_module.

Rev: lib/master.pike.in:1.323

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.322 2004/01/10 23:18:35 nilsson Exp $ + // $Id: master.pike.in,v 1.323 2004/01/12 03:25:10 nilsson Exp $      #pike __REAL_VERSION__   
722:    }      #ifdef __NT__ -  // Ugly kluge to work better with cygwin32 +  // Ugly kluge to work better with cygwin32 "/X:/" paths.    if(getenv("OSTYPE")=="cygwin32")    {    string tmp=fname[..1];
3068:    if (ret_obj) ret_obj[0] = mod;    } else if (programp (mod)) {    parent_fun = mod; -  if (objectp (mod = objects[parent_fun]) && ret_obj) ret_obj[0] = mod; +  // When running with debug we might be called before __INIT, so +  // we have to check is objects exists before we use it. +  if (objects && objectp (mod = objects[parent_fun]) && ret_obj) +  ret_obj[0] = mod;    }    else    return ""; // efun