summaryrefslogtreecommitdiff
path: root/editors/teco/files/patch-src_skpcmd.c
blob: add5070b7bd28ff6955f3b0e46292462572af702 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
--- src/skpcmd.c.orig	1991-07-12 04:21:24 UTC
+++ src/skpcmd.c
@@ -84,13 +84,17 @@ static DEFAULT SkpCtU()		/* skip control
 	BOOLEAN	TTrace;		/* temp: holds trace flag */
 
 	if (CBfPtr == CStEnd)
+		{
 		if (MStTop < 0)			/* if not in a macro */
 			{
 			ErrUTC();		/* unterminated command */
 			return FAILURE;
 			}
 		else
+			{
 			return SUCCESS;
+			}
+		}
 	++CBfPtr;
 	TTrace = TraceM;			/* save trace mode flag */
 	TraceM = FALSE;				/* keep FindES from tracing */
@@ -145,13 +149,17 @@ static DEFAULT SkpDqu()		/* skip a " (do
 {
 	DBGFEN(3,"SkpDqu",NULL);
 	if (CBfPtr == CStEnd)			/* if end of command string */
+		{
 		if (MStTop < 0)			/* if not in a macro */
 			{
 			ErrUTC();		/* unterminated command */
 			return FAILURE;
 			}
 		else
+			{
 			return SUCCESS;
+			}
+		}
 	++CBfPtr;
 	switch (To_Upper(*CBfPtr)) {
 		case 'A':
@@ -232,13 +240,17 @@ static DEFAULT SkpSkp()		/* */
 static DEFAULT SkpF()			/* skip one of the F commands */
 {
 	if (CBfPtr == CStEnd)
+		{
 		if (MStTop < 0)			/* if not in a macro */
 			{
 			ErrUTC();		/* unterminated command */
 			return FAILURE;
 			}
 		else
+			{
 			return SUCCESS;
+			}
+		}
 	++CBfPtr;
 
 	switch (To_Upper(*CBfPtr)) {
@@ -320,13 +332,17 @@ static DEFAULT SkpCrt()		/* skip a ^ (ca
 	WORD	CDummy;
 
 	if (CBfPtr == CStEnd)			/* if end of command string */
+		{
 		if (MStTop < 0)			/* if macro stack empty */
 			{
 			ErrUTC();		/* unterminated command */
 			return FAILURE;
 			}
 		else
+			{
 			return SUCCESS;
+			}
+		}
 	++CBfPtr;
 	if ((*CBfPtr >= 'A') && (*CBfPtr <= '_'))
 		CDummy = *CBfPtr - 'A';
@@ -360,13 +376,17 @@ static DEFAULT SkpE()			/* skip one of t
 /* Y */ SkpSkp,    /* Z */ SkpSkp
 	};
 	if (CBfPtr == CStEnd)
+		{
 		if (MStTop < 0)			/* if not in a macro */
 			{
 			ErrUTC();		/* unterminated command */
 			return FAILURE;
 			}
 		else
+			{
 			return SUCCESS;
+			}
+		}
 
 	++CBfPtr;
 	TmpChr = To_Upper(*CBfPtr);