[Nasm-commits] [nasm:preproc-rewrite] preproc.c: fixed spacing/tabs since from last commit

nasm-bot for Keith Kanios keith at kanios.net
Thu Jun 4 19:56:33 PDT 2020


Commit-ID:  cae5a26057ced61f5191b9adf096c47b31f4a0e3
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=cae5a26057ced61f5191b9adf096c47b31f4a0e3
Author:     Keith Kanios <keith at kanios.net>
AuthorDate: Sat, 6 Nov 2010 12:49:43 -0500
Committer:  Keith Kanios <keith at kanios.net>
CommitDate: Sat, 6 Nov 2010 12:49:43 -0500

preproc.c: fixed spacing/tabs since from last commit



---
 preproc.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/preproc.c b/preproc.c
index 8ddb1223..508e09f6 100644
--- a/preproc.c
+++ b/preproc.c
@@ -1860,7 +1860,7 @@ static bool if_condition(Token * tline, enum preproc_token ct)
                             tline->text[1] != '!'))) {
                 error(ERR_NONFATAL,
                       "`%s' expects environment variable names",
-                pp_directives[ct]);
+                      pp_directives[ct]);
                 goto fail;
             }
             p = tline->text;
@@ -3612,15 +3612,15 @@ issue_error:
         }
 
         len = nasm_unquote(t->text, NULL);
-		/* make start and count being in range */
-		if (start < 0)
-			start = 0;
-		if (count < 0)
-			count = len + count + 1 - start;
-		if (start + count > (int64_t)len)
-			count = len - start;
-		if (!len || count < 0 || start >=(int64_t)len)
-			start = -1, count = 0; /* empty string */
+        /* make start and count being in range */
+        if (start < 0)
+            start = 0;
+        if (count < 0)
+            count = len + count + 1 - start;
+        if (start + count > (int64_t)len)
+            count = len - start;
+        if (!len || count < 0 || start >=(int64_t)len)
+            start = -1, count = 0; /* empty string */
 
         macro_start = nasm_malloc(sizeof(*macro_start));
         macro_start->next = NULL;


More information about the Nasm-commits mailing list