diff mbox

[5/6] keyword: add a comment about NS_TYPEDEF & reserved keywords

Message ID 20170505015034.65164-6-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck May 5, 2017, 1:50 a.m. UTC
There is two ways a keyword can be marked as reserved:
- explicitly, by using IDENT_RESERVED() in "ident-list.h"
- implicitly, by using NS_TYPEDEF as namespace in parse.c::keyword_table

Since the implicit way is not obvious, help to make it more clear
by adding a small comment on top of keyword_table[].

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 parse.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/parse.c b/parse.c
index eefc0c330..b2bef64f0 100644
--- a/parse.c
+++ b/parse.c
@@ -407,6 +407,7 @@  static struct symbol_op mode_word_op = {
 	.to_mode = to_word_mode
 };
 
+/* Using NS_TYPEDEF will also make the keyword a reserved one */
 static struct init_keyword {
 	const char *name;
 	enum namespace ns;