[Ttssh2-commit] [3412] マクロコマンド sendmulticast と setmulticastname を修正。

svnno****@sourc***** svnno****@sourc*****
2009年 5月 19日 (火) 20:26:12 JST


Revision: 3412
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3412
Author:   maya
Date:     2009-05-19 20:26:12 +0900 (Tue, 19 May 2009)

Log Message:
-----------
マクロコマンド sendmulticast と setmulticastname を修正。
  GetString は文字列のみを処理する。文字列型変数も処理する GetStrVal を使うように変更。

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/ja/html/about/history.html
    trunk/teraterm/ttpmacro/ttl.c


-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2009-05-18 14:22:59 UTC (rev 3411)
+++ trunk/doc/en/html/about/history.html	2009-05-19 11:26:12 UTC (rev 3412)
@@ -83,6 +83,7 @@
       <!--li>Œp‘±sƒRƒs[‚ª‚¤‚Ü‚­“­‚©‚È‚¢ê‡‚ª‚ ‚é‚Ì‚ðC³‚µ‚½B</li-->
       <!--li>ssh/cygwinÚ‘±‚𕡐»‚µ‚½Œã‚̐V‹KÚ‘±‚ŁA<a href="../setup/teraterm-com.html#port/nontelnet">TCPLocalEcho/TCPCRSend</a>‚ª–³Ž‹‚³‚ê‚é‚Ì‚ðC³‚µ‚½B</li-->
       <li>When the clickable URL characters are over 1024 byte, the application fault would occur.</li>
+      <!--li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/sendmulticast.html">sendmulticast</a>" ‚Æ "<a href="../macro/command/setmulticastname.html">setmulticastname</a>" ‚ªA‘æˆêˆø”‚ª•¶Žš—ñ‚Å‚Í‚È‚­•¶Žš—ñŒ^•Ï”‚¾‚Á‚½ê‡‚É’l‚𐳂µ‚­Žó‚¯Žæ‚ç‚È‚¢–â‘è‚ðC³‚µ‚½B</li-->
     </ul></li>
 
   <li>Misc

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2009-05-18 14:22:59 UTC (rev 3411)
+++ trunk/doc/ja/html/about/history.html	2009-05-19 11:26:12 UTC (rev 3412)
@@ -83,6 +83,7 @@
       <li>Œp‘±sƒRƒs[‚ª‚¤‚Ü‚­“­‚©‚È‚¢ê‡‚ª‚ ‚é‚Ì‚ðC³‚µ‚½B</li>
       <li>ssh/cygwinÚ‘±‚𕡐»‚µ‚½Œã‚̐V‹KÚ‘±‚ŁA<a href="../setup/teraterm-com.html#port/nontelnet">TCPLocalEcho/TCPCRSend</a>‚ª–³Ž‹‚³‚ê‚é‚Ì‚ðC³‚µ‚½B</li>
       <li>ƒNƒŠƒbƒJƒuƒ‹URL‚É‚¨‚¢‚āAURL•¶Žš—ñ‚ª1024ƒoƒCƒg‚ð’´‚¦‚é‚ƁAƒAƒvƒŠƒP[ƒVƒ‡ƒ“ƒGƒ‰[‚Æ‚È‚éƒoƒO‚ðC³‚µ‚½B</li>
+      <li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/sendmulticast.html">sendmulticast</a>" ‚Æ "<a href="../macro/command/setmulticastname.html">setmulticastname</a>" ‚ªA‘æˆêˆø”‚ª•¶Žš—ñ‚Å‚Í‚È‚­•¶Žš—ñŒ^•Ï”‚¾‚Á‚½ê‡‚É’l‚𐳂µ‚­Žó‚¯Žæ‚ç‚È‚¢–â‘è‚ðC³‚µ‚½B</li>
     </ul></li>
 
   <li>‚»‚Ì‘¼

Modified: trunk/teraterm/ttpmacro/ttl.c
===================================================================
--- trunk/teraterm/ttpmacro/ttl.c	2009-05-18 14:22:59 UTC (rev 3411)
+++ trunk/teraterm/ttpmacro/ttl.c	2009-05-19 11:26:12 UTC (rev 3412)
@@ -2471,10 +2471,9 @@
 	TStrVal Str;
 	WORD Err;
 
-	if (GetString(Str,&Err))
-	{
-		if (Err!=0) return Err;
-	}
+	Err = 0;
+	GetStrVal(Str,&Err);
+	if (Err!=0) return Err;
 
 	SetFile(Str);
 	return SendCmnd(CmdSetMulticastName,IdTTLWaitCmndEnd);
@@ -2494,10 +2493,9 @@
 		return ErrLinkFirst;
 
 	// ƒ}ƒ‹ƒ`ƒLƒƒƒXƒgŽ¯•Ê—p‚Ì–¼‘O‚ðŽæ“¾‚·‚éB
-	if (GetString(Str,&Err))
-	{
-		if (Err!=0) return Err;
-	}
+	Err = 0;
+	GetStrVal(Str,&Err);
+	if (Err!=0) return Err;
 	SetFile(Str);
 
 	buf[0] = '\0';



Ttssh2-commit メーリングリストの案内