pike.git / src / modules / _Debug / debug.c

version» Context lines:

pike.git/src/modules/_Debug/debug.c:3:   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information.   */      #include "global.h"   #include "module.h"   #include "pike_error.h"   #include "interpret.h"   #include "pike_embed.h"   #include "module_support.h" - #include "pike_security.h" +       #ifdef PIKE_DEBUG   /* This function is for debugging *ONLY*    * do not document please. /Hubbe    */   PMOD_EXPORT void f__leak(INT32 args)   {    INT32 i;       if(!args)
pike.git/src/modules/_Debug/debug.c:106: Inside #if defined(PIKE_DEBUG)
   *! Program to dump.    *!    *! @param indent    *! Number of spaces to indent the output.    */   void f_dump_program_tables(INT32 args)   {    struct program *p;    INT_TYPE indent = 0;    -  ASSERT_SECURITY_ROOT("dump_program_tables"); /* FIXME: Might want lower. */ +     get_all_args("dump_program_tables", args, "%p.%+", &p, &indent);       dump_program_tables(p, indent);    pop_n_elems(args);   }      #ifdef YYDEBUG      /*! @decl int(0..) compiler_trace(int(0..) level)    *! @belongs Debug
pike.git/src/modules/_Debug/debug.c:131: Inside #if defined(PIKE_DEBUG) and #if defined(YYDEBUG)
   *! The old compiler trace level will be returned.    *!    *! @note    *! This function is only available if the Pike runtime has been compiled    *! with RTL debug.    */   PMOD_EXPORT void f_compiler_trace(INT32 args)   {    extern int yydebug;    INT_TYPE yyd; -  ASSERT_SECURITY_ROOT("_compiler_trace"); +     -  get_all_args("_compiler_trace", args, "%i", &yyd); +  get_all_args("compiler_trace", args, "%i", &yyd);    pop_n_elems(args);    push_int(yydebug);    yydebug = yyd;   }      #endif /* YYDEBUG */      #endif /* PIKE_DEBUG */      PIKE_MODULE_INIT