[Ttssh2-commit] [9145] 使用していない locale 変数を削除

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 2月 6日 (土) 14:44:11 JST


Revision: 9145
          https://osdn.net/projects/ttssh2/scm/svn/commits/9145
Author:   zmatsuo
Date:     2021-02-06 14:44:11 +0900 (Sat, 06 Feb 2021)
Log Message:
-----------
使用していない locale 変数を削除

Modified Paths:
--------------
    trunk/teraterm/common/tttypes.h
    trunk/teraterm/teraterm/commlib.c
    trunk/teraterm/teraterm/vtwin.cpp

-------------- next part --------------
Modified: trunk/teraterm/common/tttypes.h
===================================================================
--- trunk/teraterm/common/tttypes.h	2021-02-06 05:43:51 UTC (rev 9144)
+++ trunk/teraterm/common/tttypes.h	2021-02-06 05:44:11 UTC (rev 9145)
@@ -1049,7 +1049,7 @@
 	BOOL RetryWithOtherProtocol;
 	struct addrinfo * res0;
 	struct addrinfo * res;
-	char *Locale;
+	char *reserve_11;	// Locale
 	int *CodePage;
 	int *ConnetingTimeout;
 
@@ -1062,7 +1062,7 @@
 	BOOL Flush;
 
 	BOOL TelLineMode;
-	_locale_t locale;
+	void *reserve_12;	// _locale_t locale
 	BOOL VirtualStoreEnabled;
 
 	void *NotifyIcon;

Modified: trunk/teraterm/teraterm/commlib.c
===================================================================
--- trunk/teraterm/teraterm/commlib.c	2021-02-06 05:43:51 UTC (rev 9144)
+++ trunk/teraterm/teraterm/commlib.c	2021-02-06 05:44:11 UTC (rev 9145)
@@ -336,8 +336,6 @@
 	cv->TelCRSend = FALSE;
 	cv->TelCRSendEcho = FALSE;
 	cv->TelAutoDetect = ts->TelAutoDetect; /* TTPLUG */
-	cv->Locale = ts->Locale;
-	cv->locale = _create_locale(LC_ALL, cv->Locale);
 	cv->CodePage = &ts->CodePage;
 	cv->ConnetingTimeout = &ts->ConnectingTimeout;
 	cv->LastSendTime = time(NULL);
@@ -900,8 +898,6 @@
 	}
 	cv->ComID = INVALID_HANDLE_VALUE;
 	cv->PortType = 0;
-
-	_free_locale(cv->locale);
 }
 
 void CommProcRRQ(PComVar cv)

Modified: trunk/teraterm/teraterm/vtwin.cpp
===================================================================
--- trunk/teraterm/teraterm/vtwin.cpp	2021-02-06 05:43:51 UTC (rev 9144)
+++ trunk/teraterm/teraterm/vtwin.cpp	2021-02-06 05:44:11 UTC (rev 9145)
@@ -1281,8 +1281,6 @@
 		if (cv.TelFlag && (ts.TelEcho>0)) {
 			TelChangeEcho();
 		}
-		_free_locale(cv.locale);
-		cv.locale = _create_locale(LC_ALL, cv.Locale);
 	}
 
 	if ((ts.TerminalWidth!=NumOfColumns) ||


Ttssh2-commit メーリングリストの案内
Back to archive index