pike.git / src / module.c

version» Context lines:

pike.git/src/module.c:46: Inside #if defined(TRACE_MAIN) || defined(TRACE_MODULE)
     #if defined(TRACE_MAIN) || defined(TRACE_MODULE)   #define TRACE(X) fprintf X   #else /* !TRACE_MAIN */   #define TRACE(X)   #endif /* TRACE_MAIN */      static void init_builtin_modules(void)   {    void init_iterators(void); - #ifdef WITH_FACETS -  void init_facetgroup(void); - #endif +       #ifdef DEBUG_MALLOC    /* Make some statically allocated structs known to dmalloc. These    * will still show up in the DO_PIKE_CLEANUP leak report if they    * leak, in spite of dmalloc_accept_leak. */    dmalloc_register (&empty_array, sizeof (empty_array),    DMALLOC_LOCATION());    dmalloc_accept_leak (&empty_array);    dmalloc_register (&weak_empty_array, sizeof (weak_empty_array),    DMALLOC_LOCATION());
pike.git/src/module.c:111:       init_builtin_efuns();       TRACE((stderr, "Init signal handling...\n"));       init_signals();       TRACE((stderr, "Init dynamic loading...\n"));       init_dynamic_load(); - #ifdef WITH_FACETS +     -  TRACE((stderr, "Init facets...\n")); +  TRACE((stderr, "Init sprintf...\n"));    -  init_facetgroup(); - #endif +  init_sprintf();   }      static void exit_builtin_modules(void)   {   #ifdef DO_PIKE_CLEANUP    void exit_iterators(void); - #ifdef WITH_FACETS -  void exit_facetgroup(void); - #endif +        /* Clear various global references. */    - #ifdef AUTO_BIGNUM +  exit_sprintf();    exit_auto_bignum(); - #endif +     exit_pike_searching();    exit_object();    exit_signals();    exit_builtin_efuns();    exit_builtin();    exit_cpp();    cleanup_interpret();    exit_builtin_constants();    cleanup_module_support();    exit_operators();    exit_iterators(); - #ifdef WITH_FACETS -  exit_facetgroup(); - #endif +     cleanup_program();    cleanup_compiler();    cleanup_error();    exit_backend();    cleanup_gc();    cleanup_pike_types();      #ifdef PIKE_THREADS    /* This zaps Pike_interpreter.thread_state among other things, so    * THREADS_ALLOW/DISALLOW are NOPs beyond this point. */
pike.git/src/module.c:388:   };      static const struct static_module module_list[] = {    { "Builtin", init_builtin_modules, exit_builtin_modules }   #include "modules/modlist.h"   #ifndef PRE_PIKE   #include "post_modules/modlist.h"   #endif   };    + /*! @decl object _static_modules +  *! +  *! This is an object containing the classes for all static +  *! (ie non-dynamic) C-modules. +  *! +  *! In a typic Pike with support for dynamic modules the contained +  *! module classes are: +  *! @dl +  *! @item @[Builtin] +  *! @item @[Gmp] +  *! @item @[_Stdio] +  *! @item @[_math] +  *! @item @[_system] +  *! @enddl +  *! +  *! If the Pike binary lacks support for dynamic modules, all C-modules +  *! will show up here. +  */ +    void init_modules(void)   {    struct program *p = NULL;    volatile unsigned int e;       enter_compiler(NULL, 1);       start_new_program();    Pike_compiler->new_program->id=PROG___BUILTIN_ID;