From 66299a49f0f5b3aab6ceed6cbdf94a6b89b70328 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 26 Apr 2011 23:37:02 +0200 Subject: Fix compilation of _testembed.c without threads --- Modules/_testembed.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/_testembed.c b/Modules/_testembed.c index 0df5ede..51b439f 100644 --- a/Modules/_testembed.c +++ b/Modules/_testembed.c @@ -17,7 +17,9 @@ void print_subinterp(void) int main(int argc, char *argv[]) { PyThreadState *mainstate, *substate; +#ifdef WITH_THREAD PyGILState_STATE gilstate; +#endif int i, j; for (i=0; i<3; i++) { @@ -28,10 +30,12 @@ int main(int argc, char *argv[]) Py_Initialize(); mainstate = PyThreadState_Get(); +#ifdef WITH_THREAD PyEval_InitThreads(); PyEval_ReleaseThread(mainstate); gilstate = PyGILState_Ensure(); +#endif print_subinterp(); PyThreadState_Swap(NULL); @@ -43,7 +47,9 @@ int main(int argc, char *argv[]) PyThreadState_Swap(mainstate); print_subinterp(); +#ifdef WITH_THREAD PyGILState_Release(gilstate); +#endif PyEval_RestoreThread(mainstate); Py_Finalize(); -- cgit v0.12 hole'>ISC_peephole Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/library/encoding/iso2022.enc
blob: a58f8e3e297ea002161efa8d6146fe64b1daf321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Encoding file: iso2022, escape-driven
E
name		iso2022
init		{}
final		{}
iso8859-1	\x1b(B
jis0201		\x1b(J
gb1988		\x1b(T
jis0208		\x1b$B
jis0208		\x1b$@
jis0212		\x1b$(D
gb2312		\x1b$A
ksc5601		\x1b$(C
jis0208		\x1b&@\x1b$B