[Ttssh2-commit] [8351] SetInputStr(), SetStrVal() の文字列引数に const を追加した

Zurück zum Archiv-Index
scmno****@osdn***** scmno****@osdn*****
2019年 10月 30日 (水) 22:32:48 JST


Revision: 8351
          https://osdn.net/projects/ttssh2/scm/svn/commits/8351
Author:   zmatsuo
Date:     2019-10-30 22:32:47 +0900 (Wed, 30 Oct 2019)
Log Message:
-----------
SetInputStr(), SetStrVal() の文字列引数に const を追加した

- SetInputStr() は変数 inputstr に文字列をセットする関数
- SetStrVal() は文字列変数に文字列をセットする関数

Modified Paths:
--------------
    trunk/teraterm/ttpmacro/ttl.c
    trunk/teraterm/ttpmacro/ttl.h
    trunk/teraterm/ttpmacro/ttmparse.c
    trunk/teraterm/ttpmacro/ttmparse.h

-------------- next part --------------
Modified: trunk/teraterm/ttpmacro/ttl.c
===================================================================
--- trunk/teraterm/ttpmacro/ttl.c	2019-10-30 13:32:32 UTC (rev 8350)
+++ trunk/teraterm/ttpmacro/ttl.c	2019-10-30 13:32:47 UTC (rev 8351)
@@ -6560,7 +6560,7 @@
 		SetStrVal(VarId,p);
 }
 
-void SetInputStr(PCHAR Str)
+void SetInputStr(const char *Str)
 {
 	WORD VarType;
 	TVarId VarId;

Modified: trunk/teraterm/ttpmacro/ttl.h
===================================================================
--- trunk/teraterm/ttpmacro/ttl.h	2019-10-30 13:32:32 UTC (rev 8350)
+++ trunk/teraterm/ttpmacro/ttl.h	2019-10-30 13:32:47 UTC (rev 8351)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 1994-1998 T. Teranishi
- * (C) 2005-2017 TeraTerm Project
+ * (C) 2005-2019 TeraTerm Project
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -49,7 +49,7 @@
 void Exec();
 void SetMatchStr(PCHAR Str);
 void SetGroupMatchStr(int no, PCHAR Str);
-void SetInputStr(PCHAR Str);
+void SetInputStr(const char *Str);
 void SetResult(int ResultCode);
 BOOL CheckTimeout();
 BOOL TestWakeup(int Wakeup);

Modified: trunk/teraterm/ttpmacro/ttmparse.c
===================================================================
--- trunk/teraterm/ttpmacro/ttmparse.c	2019-10-30 13:32:32 UTC (rev 8350)
+++ trunk/teraterm/ttpmacro/ttmparse.c	2019-10-30 13:32:47 UTC (rev 8351)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 1994-1998 T. Teranishi
- * (C) 2005-2017 TeraTerm Project
+ * (C) 2005-2019 TeraTerm Project
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -1790,7 +1790,7 @@
 		*Err = ErrSyntax;
 }
 
-void SetStrVal(TVarId VarId, PCHAR Str)
+void SetStrVal(TVarId VarId, const char *Str)
 {
 	// StrBuf \x82̉^\x97p\x8F\xE3 MaxStrLen \x82\xAA\x90\xB3\x82\xB5\x82\xA2\x83T\x83C\x83Y\x82Ȃ̂ŃT\x83C\x83Y\x82\xF0\x8CŒ\xE8
 	// (2007.6.23 maya)

Modified: trunk/teraterm/ttpmacro/ttmparse.h
===================================================================
--- trunk/teraterm/ttpmacro/ttmparse.h	2019-10-30 13:32:32 UTC (rev 8350)
+++ trunk/teraterm/ttpmacro/ttmparse.h	2019-10-30 13:32:47 UTC (rev 8351)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 1994-1998 T. Teranishi
- * (C) 2005-2017 TeraTerm Project
+ * (C) 2005-2019 TeraTerm Project
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -346,7 +346,7 @@
 void GetStrVal(PCHAR Str, LPWORD Err);
 void GetStrVal2(PCHAR Str, LPWORD Err, BOOL AutoConversion);
 void GetStrVar(PVarId VarId, LPWORD Err);
-void SetStrVal(TVarId VarId, PCHAR Str);
+void SetStrVal(TVarId VarId, const char *Str);
 PCHAR StrVarPtr(TVarId VarId);
 void GetVarType(LPWORD ValType, int far *Val, LPWORD Err);
 TVarId GetIntVarFromArray(TVarId VarId, int Index, LPWORD Err);


Ttssh2-commit メーリングリストの案内
Zurück zum Archiv-Index