[Ttssh2-commit] [6070] コード整理

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2015年 11月 4日 (水) 18:36:16 JST


Revision: 6070
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6070
Author:   doda
Date:     2015-11-04 18:36:16 +0900 (Wed, 04 Nov 2015)
Log Message:
-----------
コード整理
・コメントアウトされば使用されていない部分の削除
・明らかに不要な () の削除

Modified Paths:
--------------
    trunk/teraterm/common/ttlib.c

-------------- next part --------------
Modified: trunk/teraterm/common/ttlib.c
===================================================================
--- trunk/teraterm/common/ttlib.c	2015-11-02 14:08:17 UTC (rev 6069)
+++ trunk/teraterm/common/ttlib.c	2015-11-04 09:36:16 UTC (rev 6070)
@@ -1070,7 +1070,6 @@
 		return NULL;
 	}
 
-#if 1
 	while (*param != '\0' && (quoted || (*param != ';' && *param != ' ' && *param != '\t'))) {
 		if (*param == '"') {
 			if (*(param+1) != '"') {
@@ -1091,18 +1090,6 @@
 	if (!quoted && (buff[i-1] == ';')) {
 		i--;
 	}
-#else
-	while (*param != '\0' && (quoted || (*param != ';' && *param != ' ' && *param != '\t'))) {
-		if (*param == '"' && (*++param != '"' || !quoted)) {
-			quoted = !quoted;
-			continue;
-		}
-		else if (i < size - 1) {
-			buff[i++] = *param;
-		}
-		param++;
-	}
-#endif
 
 	buff[i] = '\0';
 	return (param);
@@ -1126,7 +1113,7 @@
 	c = src[i];
 	i++;
 	j = 0;
-	while ((c != 0 && j<dest_len)) {
+	while (c != 0 && j<dest_len) {
 		if (c != '"') {
 			dest[j] = c;
 			j++;



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