[ttssh2-commit] [9487] TTXSetCommandLine() 引数を wchar_t * に変更

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 10月 23日 (土) 01:09:36 JST


Revision: 9487
          https://osdn.net/projects/ttssh2/scm/svn/commits/9487
Author:   zmatsuo
Date:     2021-10-23 01:09:36 +0900 (Sat, 23 Oct 2021)
Log Message:
-----------
TTXSetCommandLine() 引数を wchar_t * に変更

- コマンドラインの作成文字列を Unicode に変更

Modified Paths:
--------------
    trunk/teraterm/common/ttplugin.h
    trunk/teraterm/teraterm/ttplug.c
    trunk/teraterm/teraterm/ttplug.h

-------------- next part --------------
Modified: trunk/teraterm/common/ttplugin.h
===================================================================
--- trunk/teraterm/common/ttplugin.h	2021-10-22 16:09:28 UTC (rev 9486)
+++ trunk/teraterm/common/ttplugin.h	2021-10-22 16:09:36 UTC (rev 9487)
@@ -97,7 +97,7 @@
   void (PASCAL * TTXModifyPopupMenu)(HMENU menu); /* called first to last */
   int (PASCAL * TTXProcessCommand)(HWND hWin, WORD cmd); /* returns TRUE if handled, called last to first */
   void (PASCAL * TTXEnd)(void); /* called last to first */
-  void (PASCAL * TTXSetCommandLine)(PCHAR cmd, int cmdlen, PGetHNRec rec); /* called first to last */
+  void (PASCAL * TTXSetCommandLine)(wchar_t *cmd, int cmdlen, PGetHNRec rec); /* called first to last */
   void (PASCAL * TTXOpenFile)(TTXFileHooks * hooks); /* called first to last */
   void (PASCAL * TTXCloseFile)(TTXFileHooks * hooks); /* called last to first */
 } TTXExports;

Modified: trunk/teraterm/teraterm/ttplug.c
===================================================================
--- trunk/teraterm/teraterm/ttplug.c	2021-10-22 16:09:28 UTC (rev 9486)
+++ trunk/teraterm/teraterm/ttplug.c	2021-10-22 16:09:36 UTC (rev 9487)
@@ -374,12 +374,13 @@
 	UnloadExtensions();
 }
 
-void PASCAL TTXSetCommandLine(PCHAR cmd, int cmdlen, PGetHNRec rec) {
-  int i;
+void PASCAL TTXSetCommandLine(wchar_t *cmd, int cmdlen, PGetHNRec rec)
+{
+	int i;
 
-  for (i = 0; i < NumExtensions; i++) {
-    if (Extensions[i].exports->TTXSetCommandLine != NULL) {
-      Extensions[i].exports->TTXSetCommandLine(cmd, cmdlen, rec);
-    }
-  }
+	for (i = 0; i < NumExtensions; i++) {
+		if (Extensions[i].exports->TTXSetCommandLine != NULL) {
+			Extensions[i].exports->TTXSetCommandLine(cmd, cmdlen, rec);
+		}
+	}
 }

Modified: trunk/teraterm/teraterm/ttplug.h
===================================================================
--- trunk/teraterm/teraterm/ttplug.h	2021-10-22 16:09:28 UTC (rev 9486)
+++ trunk/teraterm/teraterm/ttplug.h	2021-10-22 16:09:36 UTC (rev 9487)
@@ -83,7 +83,7 @@
 
 /* This function is called when a new Tera Term is being started with certain
    settings and the extension may wish to add some options to the command line */
-void PASCAL TTXSetCommandLine(PCHAR cmd, int cmdlen, PGetHNRec rec);
+void PASCAL TTXSetCommandLine(wchar_t *cmd, int cmdlen, PGetHNRec rec);
 #ifdef __cplusplus
 }
 #endif


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