pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:1:
/* -*- c -*- || 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: builtin.cmod,v 1.
104
2003/01/
08
19
:
35
:
42
mast
Exp $
+
|| $Id: builtin.cmod,v 1.
105
2003/01/
09
15
:
21
:
26
grubba
Exp $
*/ #include "global.h" #include "interpret.h" #include "svalue.h" #include "opcodes.h" #include "pike_macros.h" #include "object.h" #include "program.h" #include "array.h"
pike.git/src/builtin.cmod:337:
*! deadlock bugs etc. *! *! @returns *! The old level in the current thread is returned. */ PIKEFUN int trace(int t, void|int all_threads) efun; optflags OPT_SIDE_EFFECT; { pop_n_elems(args);
-
push_int(
t
_
flag
);
+
push_int(
Pike
_
interpreter.trace_level
);
#ifdef PIKE_THREADS if (!all_threads || UNSAFE_IS_ZERO (all_threads))
-
t
_
flag
=t;
+
Pike
_
interpreter.trace_level
=t;
else { struct thread_state *s; FOR_EACH_THREAD(s, s->state.trace_level = t); } #else
-
t
_
flag
=t;
+
Pike
_
interpreter.trace_level
=t;
#endif } /*! @decl string ctime(int timestamp) *! *! Convert the output from a previous call to @[time()] into a readable *! string containing the current year, month, day and time. *! *! Like @[localtime], this function might throw an error if the *! ctime(2) call failed on the system. It's platform dependent what