opt
/
alt
/
python34
/
include
/
python3.4m
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
Python-ast.h
19.03 KB
Rename
Delete
Python.h
2.79 KB
Rename
Delete
abstract.h
42.07 KB
Rename
Delete
accu.h
1016 bytes
Rename
Delete
asdl.h
1.16 KB
Rename
Delete
ast.h
477 bytes
Rename
Delete
bitset.h
792 bytes
Rename
Delete
bltinmodule.h
264 bytes
Rename
Delete
boolobject.h
886 bytes
Rename
Delete
bytearrayobject.h
2.06 KB
Rename
Delete
bytes_methods.h
1.98 KB
Rename
Delete
bytesobject.h
4.81 KB
Rename
Delete
cellobject.h
701 bytes
Rename
Delete
ceval.h
7.03 KB
Rename
Delete
classobject.h
1.63 KB
Rename
Delete
code.h
4.13 KB
Rename
Delete
codecs.h
6.40 KB
Rename
Delete
compile.h
2.07 KB
Rename
Delete
complexobject.h
1.91 KB
Rename
Delete
datetime.h
8.34 KB
Rename
Delete
descrobject.h
2.84 KB
Rename
Delete
dictobject.h
5.06 KB
Rename
Delete
dtoa.h
458 bytes
Rename
Delete
dynamic_annotations.h
21.94 KB
Rename
Delete
enumobject.h
253 bytes
Rename
Delete
errcode.h
1.46 KB
Rename
Delete
eval.h
597 bytes
Rename
Delete
fileobject.h
1.82 KB
Rename
Delete
fileutils.h
1.47 KB
Rename
Delete
floatobject.h
4.53 KB
Rename
Delete
frameobject.h
3.47 KB
Rename
Delete
funcobject.h
3.68 KB
Rename
Delete
genobject.h
1.10 KB
Rename
Delete
graminit.h
1.83 KB
Rename
Delete
grammar.h
2.00 KB
Rename
Delete
import.h
3.81 KB
Rename
Delete
intrcheck.h
460 bytes
Rename
Delete
iterobject.h
567 bytes
Rename
Delete
listobject.h
2.77 KB
Rename
Delete
longintrepr.h
3.90 KB
Rename
Delete
longobject.h
7.98 KB
Rename
Delete
marshal.h
803 bytes
Rename
Delete
memoryobject.h
2.79 KB
Rename
Delete
metagrammar.h
253 bytes
Rename
Delete
methodobject.h
3.23 KB
Rename
Delete
modsupport.h
4.78 KB
Rename
Delete
moduleobject.h
1.58 KB
Rename
Delete
namespaceobject.h
297 bytes
Rename
Delete
node.h
1008 bytes
Rename
Delete
object.h
37.62 KB
Rename
Delete
objimpl.h
13.52 KB
Rename
Delete
opcode.h
5.09 KB
Rename
Delete
osdefs.h
848 bytes
Rename
Delete
parsetok.h
2.82 KB
Rename
Delete
patchlevel.h
1.10 KB
Rename
Delete
pgen.h
253 bytes
Rename
Delete
pgenheaders.h
1.12 KB
Rename
Delete
py_curses.h
4.08 KB
Rename
Delete
pyarena.h
2.68 KB
Rename
Delete
pyatomic.h
5.80 KB
Rename
Delete
pycapsule.h
1.69 KB
Rename
Delete
pyconfig-64.h
42.32 KB
Rename
Delete
pyconfig.h
162 bytes
Rename
Delete
pyctype.h
1.29 KB
Rename
Delete
pydebug.h
1019 bytes
Rename
Delete
pyerrors.h
15.65 KB
Rename
Delete
pyexpat.h
2.39 KB
Rename
Delete
pyfpe.h
8.29 KB
Rename
Delete
pygetopt.h
388 bytes
Rename
Delete
pyhash.h
4.17 KB
Rename
Delete
pymacconfig.h
2.92 KB
Rename
Delete
pymacro.h
2.75 KB
Rename
Delete
pymath.h
7.05 KB
Rename
Delete
pymem.h
6.62 KB
Rename
Delete
pyport.h
30.15 KB
Rename
Delete
pystate.h
8.91 KB
Rename
Delete
pystrcmp.h
436 bytes
Rename
Delete
pystrtod.h
1.25 KB
Rename
Delete
pythonrun.h
9.95 KB
Rename
Delete
pythread.h
2.96 KB
Rename
Delete
pytime.h
2.85 KB
Rename
Delete
rangeobject.h
629 bytes
Rename
Delete
setobject.h
3.22 KB
Rename
Delete
sliceobject.h
1.55 KB
Rename
Delete
structmember.h
2.02 KB
Rename
Delete
structseq.h
1.32 KB
Rename
Delete
symtable.h
4.98 KB
Rename
Delete
sysmodule.h
1.32 KB
Rename
Delete
token.h
1.84 KB
Rename
Delete
traceback.h
2.16 KB
Rename
Delete
tupleobject.h
2.39 KB
Rename
Delete
typeslots.h
1.95 KB
Rename
Delete
ucnhash.h
1.03 KB
Rename
Delete
unicodeobject.h
76.30 KB
Rename
Delete
warnings.h
1.39 KB
Rename
Delete
weakrefobject.h
2.80 KB
Rename
Delete
/* Thread and interpreter state structures and their interfaces */ #ifndef Py_PYSTATE_H #define Py_PYSTATE_H #ifdef __cplusplus extern "C" { #endif /* State shared between threads */ struct _ts; /* Forward */ struct _is; /* Forward */ #ifdef Py_LIMITED_API typedef struct _is PyInterpreterState; #else typedef struct _is { struct _is *next; struct _ts *tstate_head; PyObject *modules; PyObject *modules_by_index; PyObject *sysdict; PyObject *builtins; PyObject *importlib; PyObject *codec_search_path; PyObject *codec_search_cache; PyObject *codec_error_registry; int codecs_initialized; int fscodec_initialized; #ifdef HAVE_DLOPEN int dlopenflags; #endif #ifdef WITH_TSC int tscdump; #endif PyObject *builtins_copy; } PyInterpreterState; #endif /* State unique per thread */ struct _frame; /* Avoid including frameobject.h */ #ifndef Py_LIMITED_API /* Py_tracefunc return -1 when raising an exception, or 0 for success. */ typedef int (*Py_tracefunc)(PyObject *, struct _frame *, int, PyObject *); /* The following values are used for 'what' for tracefunc functions: */ #define PyTrace_CALL 0 #define PyTrace_EXCEPTION 1 #define PyTrace_LINE 2 #define PyTrace_RETURN 3 #define PyTrace_C_CALL 4 #define PyTrace_C_EXCEPTION 5 #define PyTrace_C_RETURN 6 #endif #ifdef Py_LIMITED_API typedef struct _ts PyThreadState; #else typedef struct _ts { /* See Python/ceval.c for comments explaining most fields */ struct _ts *prev; struct _ts *next; PyInterpreterState *interp; struct _frame *frame; int recursion_depth; char overflowed; /* The stack has overflowed. Allow 50 more calls to handle the runtime error. */ char recursion_critical; /* The current calls must not cause a stack overflow. */ /* 'tracing' keeps track of the execution depth when tracing/profiling. This is to prevent the actual trace/profile code from being recorded in the trace/profile. */ int tracing; int use_tracing; Py_tracefunc c_profilefunc; Py_tracefunc c_tracefunc; PyObject *c_profileobj; PyObject *c_traceobj; PyObject *curexc_type; PyObject *curexc_value; PyObject *curexc_traceback; PyObject *exc_type; PyObject *exc_value; PyObject *exc_traceback; PyObject *dict; /* Stores per-thread state */ int gilstate_counter; PyObject *async_exc; /* Asynchronous exception to raise */ long thread_id; /* Thread id where this tstate was created */ int trash_delete_nesting; PyObject *trash_delete_later; /* Called when a thread state is deleted normally, but not when it * is destroyed after fork(). * Pain: to prevent rare but fatal shutdown errors (issue 18808), * Thread.join() must wait for the join'ed thread's tstate to be unlinked * from the tstate chain. That happens at the end of a thread's life, * in pystate.c. * The obvious way doesn't quite work: create a lock which the tstate * unlinking code releases, and have Thread.join() wait to acquire that * lock. The problem is that we _are_ at the end of the thread's life: * if the thread holds the last reference to the lock, decref'ing the * lock will delete the lock, and that may trigger arbitrary Python code * if there's a weakref, with a callback, to the lock. But by this time * _PyThreadState_Current is already NULL, so only the simplest of C code * can be allowed to run (in particular it must not be possible to * release the GIL). * So instead of holding the lock directly, the tstate holds a weakref to * the lock: that's the value of on_delete_data below. Decref'ing a * weakref is harmless. * on_delete points to _threadmodule.c's static release_sentinel() function. * After the tstate is unlinked, release_sentinel is called with the * weakref-to-lock (on_delete_data) argument, and release_sentinel releases * the indirectly held lock. */ void (*on_delete)(void *); void *on_delete_data; /* XXX signal handlers should also be here */ } PyThreadState; #endif PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_New(void); PyAPI_FUNC(void) PyInterpreterState_Clear(PyInterpreterState *); PyAPI_FUNC(void) PyInterpreterState_Delete(PyInterpreterState *); PyAPI_FUNC(int) _PyState_AddModule(PyObject*, struct PyModuleDef*); #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000 /* New in 3.3 */ PyAPI_FUNC(int) PyState_AddModule(PyObject*, struct PyModuleDef*); PyAPI_FUNC(int) PyState_RemoveModule(struct PyModuleDef*); #endif PyAPI_FUNC(PyObject*) PyState_FindModule(struct PyModuleDef*); #ifndef Py_LIMITED_API PyAPI_FUNC(void) _PyState_ClearModules(void); #endif PyAPI_FUNC(PyThreadState *) PyThreadState_New(PyInterpreterState *); PyAPI_FUNC(PyThreadState *) _PyThreadState_Prealloc(PyInterpreterState *); PyAPI_FUNC(void) _PyThreadState_Init(PyThreadState *); PyAPI_FUNC(void) PyThreadState_Clear(PyThreadState *); PyAPI_FUNC(void) PyThreadState_Delete(PyThreadState *); PyAPI_FUNC(void) _PyThreadState_DeleteExcept(PyThreadState *tstate); #ifdef WITH_THREAD PyAPI_FUNC(void) PyThreadState_DeleteCurrent(void); PyAPI_FUNC(void) _PyGILState_Reinit(void); #endif PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void); PyAPI_FUNC(PyThreadState *) PyThreadState_Swap(PyThreadState *); PyAPI_FUNC(PyObject *) PyThreadState_GetDict(void); PyAPI_FUNC(int) PyThreadState_SetAsyncExc(long, PyObject *); /* Variable and macro for in-line access to current thread state */ /* Assuming the current thread holds the GIL, this is the PyThreadState for the current thread. */ #ifndef Py_LIMITED_API PyAPI_DATA(_Py_atomic_address) _PyThreadState_Current; #endif #if defined(Py_DEBUG) || defined(Py_LIMITED_API) #define PyThreadState_GET() PyThreadState_Get() #else #define PyThreadState_GET() \ ((PyThreadState*)_Py_atomic_load_relaxed(&_PyThreadState_Current)) #endif typedef enum {PyGILState_LOCKED, PyGILState_UNLOCKED} PyGILState_STATE; #ifdef WITH_THREAD /* Ensure that the current thread is ready to call the Python C API, regardless of the current state of Python, or of its thread lock. This may be called as many times as desired by a thread so long as each call is matched with a call to PyGILState_Release(). In general, other thread-state APIs may be used between _Ensure() and _Release() calls, so long as the thread-state is restored to its previous state before the Release(). For example, normal use of the Py_BEGIN_ALLOW_THREADS/ Py_END_ALLOW_THREADS macros are acceptable. The return value is an opaque "handle" to the thread state when PyGILState_Ensure() was called, and must be passed to PyGILState_Release() to ensure Python is left in the same state. Even though recursive calls are allowed, these handles can *not* be shared - each unique call to PyGILState_Ensure must save the handle for its call to PyGILState_Release. When the function returns, the current thread will hold the GIL. Failure is a fatal error. */ PyAPI_FUNC(PyGILState_STATE) PyGILState_Ensure(void); /* Release any resources previously acquired. After this call, Python's state will be the same as it was prior to the corresponding PyGILState_Ensure() call (but generally this state will be unknown to the caller, hence the use of the GILState API.) Every call to PyGILState_Ensure must be matched by a call to PyGILState_Release on the same thread. */ PyAPI_FUNC(void) PyGILState_Release(PyGILState_STATE); /* Helper/diagnostic function - get the current thread state for this thread. May return NULL if no GILState API has been used on the current thread. Note that the main thread always has such a thread-state, even if no auto-thread-state call has been made on the main thread. */ PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void); /* Helper/diagnostic function - return 1 if the current thread * currently holds the GIL, 0 otherwise */ #ifndef Py_LIMITED_API PyAPI_FUNC(int) PyGILState_Check(void); #endif #endif /* #ifdef WITH_THREAD */ /* The implementation of sys._current_frames() Returns a dict mapping thread id to that thread's current frame. */ #ifndef Py_LIMITED_API PyAPI_FUNC(PyObject *) _PyThread_CurrentFrames(void); #endif /* Routines for advanced debuggers, requested by David Beazley. Don't use unless you know what you are doing! */ #ifndef Py_LIMITED_API PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_Head(void); PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_Next(PyInterpreterState *); PyAPI_FUNC(PyThreadState *) PyInterpreterState_ThreadHead(PyInterpreterState *); PyAPI_FUNC(PyThreadState *) PyThreadState_Next(PyThreadState *); typedef struct _frame *(*PyThreadFrameGetter)(PyThreadState *self_); #endif /* hook for PyEval_GetFrame(), requested for Psyco */ #ifndef Py_LIMITED_API PyAPI_DATA(PyThreadFrameGetter) _PyThreadState_GetFrame; #endif #ifdef __cplusplus } #endif #endif /* !Py_PYSTATE_H */
Save