[nasm:master] nasm.h: correct TOKEN_LPAR and TOKEN_RPAR

nasm-bot for H. Peter Anvin (Intel) hpa at zytor.com
Fri Sep 4 14:39:03 PDT 2020


Commit-ID:  6bd975476f3d931a1f0f7a392a53604bf9a4d3cf
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=6bd975476f3d931a1f0f7a392a53604bf9a4d3cf
Author:     H. Peter Anvin (Intel) <hpa at zytor.com>
AuthorDate: Fri, 4 Sep 2020 14:34:09 -0700
Committer:  H. Peter Anvin (Intel) <hpa at zytor.com>
CommitDate: Fri, 4 Sep 2020 14:34:09 -0700

nasm.h: correct TOKEN_LPAR and TOKEN_RPAR

These two symbolic names were reversed. In practice, the code uses '('
and ')' instead, so it wasn't a problem, but still very confusing.

Signed-off-by: H. Peter Anvin (Intel) <hpa at zytor.com>


---
 include/nasm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/nasm.h b/include/nasm.h
index 9e475856..922a1bb2 100644
--- a/include/nasm.h
+++ b/include/nasm.h
@@ -184,8 +184,8 @@ enum token_type { /* token types, other than chars */
     TOKEN_MULT       = '*',
     TOKEN_DIV        = '/',
     TOKEN_MOD        = '%',
-    TOKEN_LPAR       = ')',
-    TOKEN_RPAR       = '(',
+    TOKEN_LPAR       = '(',
+    TOKEN_RPAR       = ')',
     TOKEN_PLUS       = '+',
     TOKEN_MINUS      = '-',
     TOKEN_COMMA      = ',',


More information about the Nasm-commits mailing list