Commit Diff


commit - fb3a67dfbb757a005d451907b9640de02a303380
commit + 24e4859e08ccec3e81ddeb1405a10110973be565
blob - 431523942f3d1177cda27d4da67bc9e42c7a65c2
blob + 980f7d8d747aa819dcb888223c372968cd9cd8ab
--- FICS/formula.c
+++ FICS/formula.c
@@ -96,20 +96,27 @@ int GetRating(player *p, int gametype)
     else return 0;
 }    /* end of function GetRating. */
 
-int GetNumberInsideParens (game *g, int clause, int *i, int *token,
-                           int eval)
+int
+GetNumberInsideParens(game *g, int clause, int *i, int *token, int eval)
 {
-  char *string = GetPlayersFormula(&parray[g->black], clause);
-  int ret;
+	char	*string = GetPlayersFormula(&parray[g->black], clause);
+	int	 ret;
 
-  while (string[*i] != '\0' && isspace(string[*i])) (*i)++;
-  if (!MoveIndexPastString(string, i, "(")) return (ERR_BADCHAR);
+	while (string[*i] != '\0' && isspace(string[*i]))
+		(*i)++;
 
-  ret = CheckFormula(g, clause, i, OPTYPE_PAREN, token, eval);
-  if (ret != ERR_NONE)
-    return (ret);
-  if (MoveIndexPastString(string, i, ")")) return (ERR_NONE);
-  else return (ERR_PAREN);
+	if (!MoveIndexPastString(string, i, "("))
+		return ERR_BADCHAR;
+
+	ret = CheckFormula(g, clause, i, OPTYPE_PAREN, token, eval);
+
+	if (ret != ERR_NONE)
+		return ret;
+
+	if (MoveIndexPastString(string, i, ")"))
+		return ERR_NONE;
+	else
+		return ERR_PAREN;
 }
 
 int