diff options
| author | dgp@users.sourceforge.net <dgp> | 2014-02-04 16:24:14 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2014-02-04 16:24:14 (GMT) |
| commit | f8bffa2a7614782af8f5ee0a2f330ae05ab05a05 (patch) | |
| tree | 67baf562f729c64cbdd175f9e69f6fc23528a5be /generic/tclEncoding.c | |
| parent | bf4ea0922d9c3435db341622d477d1948d1b1153 (diff) | |
| parent | 7162cfbb23199e7f7bb0d581893ff081275afb88 (diff) | |
| download | tcl-f8bffa2a7614782af8f5ee0a2f330ae05ab05a05.zip tcl-f8bffa2a7614782af8f5ee0a2f330ae05ab05a05.tar.gz tcl-f8bffa2a7614782af8f5ee0a2f330ae05ab05a05.tar.bz2 | |
Simplify the core output operations of channels. Reduce duplicative and dead code.
Diffstat (limited to 'generic/tclEncoding.c')
| -rw-r--r-- | generic/tclEncoding.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c index 2cc55d6..d246cb2 100644 --- a/generic/tclEncoding.c +++ b/generic/tclEncoding.c @@ -182,6 +182,7 @@ TCL_DECLARE_MUTEX(encodingMutex) static Tcl_Encoding defaultEncoding; static Tcl_Encoding systemEncoding; +Tcl_Encoding tclIdentityEncoding; /* * The following variable is used in the sparse matrix code for a @@ -567,7 +568,7 @@ TclInitEncodingSubsystem(void) type.freeProc = NULL; type.nullSize = 1; type.clientData = NULL; - Tcl_CreateEncoding(&type); + tclIdentityEncoding = Tcl_CreateEncoding(&type); type.encodingName = "utf-8"; type.toUtfProc = UtfExtToUtfIntProc; @@ -651,6 +652,7 @@ TclFinalizeEncodingSubsystem(void) Tcl_MutexLock(&encodingMutex); encodingsInitialized = 0; FreeEncoding(systemEncoding); + FreeEncoding(tclIdentityEncoding); hPtr = Tcl_FirstHashEntry(&encodingTable, &search); while (hPtr != NULL) { |
