[iortcw] 150/152: All: Fix another indentation warning

Simon McVittie smcv at debian.org
Fri Sep 8 10:40:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit 3781c2973e276a15a5f49775460b442d2b8279bd
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Fri Nov 11 18:52:01 2016 -0500

    All: Fix another indentation warning
---
 MP/code/tools/lcc/src/stmt.c | 12 +++++++-----
 SP/code/tools/lcc/src/stmt.c | 12 +++++++-----
 2 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/MP/code/tools/lcc/src/stmt.c b/MP/code/tools/lcc/src/stmt.c
index 9c3bdbe..0954620 100644
--- a/MP/code/tools/lcc/src/stmt.c
+++ b/MP/code/tools/lcc/src/stmt.c
@@ -129,9 +129,9 @@ void statement(int loop, Swtch swp, int lev) {
 		       				needconst--;
 		       				caselabel(swp, p->u.v.i, lab);
 		       			}
-		       		} else
+		       		} else {
 		       			error("case label must be a constant integer expression\n");
-
+		       		}
 		       		test(':', stop);
 		       	}
 		       	statement(loop, swp, lev);
@@ -183,8 +183,9 @@ void statement(int loop, Swtch swp, int lev) {
 		       	use(p, src);
 		       	branch(p->u.l.label);
 		       	t = gettok();
-		       } else
-		       	error("missing label in goto\n"); expect(';');
+		       } else {
+		       	error("missing label in goto\n");
+		       } expect(';');
 					  break;
 
 	case ID:       if (getchr() == ':') {
@@ -201,7 +202,8 @@ void statement(int loop, Swtch swp, int lev) {
 		       	listnodes(e, 0, 0);
 		       	if (nodecount == 0 || nodecount > 200)
 		       		walk(NULL, 0, 0);
-		       	else if (glevel) walk(NULL, 0, 0);
+		       	else if (glevel)
+				walk(NULL, 0, 0);
 		       	deallocate(STMT);
 		       } expect(';');
 						break;
diff --git a/SP/code/tools/lcc/src/stmt.c b/SP/code/tools/lcc/src/stmt.c
index 9c3bdbe..0954620 100644
--- a/SP/code/tools/lcc/src/stmt.c
+++ b/SP/code/tools/lcc/src/stmt.c
@@ -129,9 +129,9 @@ void statement(int loop, Swtch swp, int lev) {
 		       				needconst--;
 		       				caselabel(swp, p->u.v.i, lab);
 		       			}
-		       		} else
+		       		} else {
 		       			error("case label must be a constant integer expression\n");
-
+		       		}
 		       		test(':', stop);
 		       	}
 		       	statement(loop, swp, lev);
@@ -183,8 +183,9 @@ void statement(int loop, Swtch swp, int lev) {
 		       	use(p, src);
 		       	branch(p->u.l.label);
 		       	t = gettok();
-		       } else
-		       	error("missing label in goto\n"); expect(';');
+		       } else {
+		       	error("missing label in goto\n");
+		       } expect(';');
 					  break;
 
 	case ID:       if (getchr() == ':') {
@@ -201,7 +202,8 @@ void statement(int loop, Swtch swp, int lev) {
 		       	listnodes(e, 0, 0);
 		       	if (nodecount == 0 || nodecount > 200)
 		       		walk(NULL, 0, 0);
-		       	else if (glevel) walk(NULL, 0, 0);
+		       	else if (glevel)
+				walk(NULL, 0, 0);
 		       	deallocate(STMT);
 		       } expect(';');
 						break;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list