pike.git / src / dynamic_load.c

version» Context lines:

pike.git/src/dynamic_load.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: dynamic_load.c,v 1.87 2005/10/19 12:39:43 nilsson Exp $ + || $Id: dynamic_load.c,v 1.88 2005/11/12 20:21:13 nilsson Exp $   */      #ifdef TESTING   #define NO_PIKE_INCLUDES   #define CREATE_MAIN   #define NO_PIKE_GUTS   #endif      #ifndef NO_PIKE_INCLUDES   # include "global.h"
pike.git/src/dynamic_load.c:431:    struct pike_string *module_name;       ONERROR err;       struct compilation_save save;       module_name = Pike_sp[-args].u.string;       if((Pike_sp[-args].type != T_STRING) ||    (module_name->size_shift) || -  ((INT32) strlen(module_name->str) != module_name->len)) { +  string_has_null(module_name)) {    Pike_error("Bad argument 1 to load_module()\n");    }       {    struct module_list *mp;    for (mp = dynamic_module_list; mp; mp = mp->next)    if (mp->name == module_name && mp->module_prog) {    pop_n_elems(args);    ref_push_program(mp->module_prog);    return;