[Git][NTPsec/ntpsec][master] 2 commits: Fix typos

Hal Murray gitlab at mg.gitlab.com
Sat Feb 13 09:16:11 UTC 2016


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
235752ba by Hal Murray at 2016-02-12T23:29:54-08:00
Fix typos

- - - - -
964ecb7d by Hal Murray at 2016-02-12T23:33:45-08:00
Update/typo on recipe for updating keywords

- - - - -


2 changed files:

- docs/ntp_conf.txt
- ntpd/ntp_scanner.h


Changes:

=====================================
docs/ntp_conf.txt
=====================================
--- a/docs/ntp_conf.txt
+++ b/docs/ntp_conf.txt
@@ -105,7 +105,7 @@ default token.
 
 +struct state *create_keyword_scanner(struct key_tok *keyword_list)+::
   This function takes a list of (_keyword, token_) pairs and converts
-  them into a trie that can recognize the keywords (reserved words).
+  them into a tree that can recognize the keywords (reserved words).
   Every time the scanner reads a lexeme, it compares it against the list
   of reserved words. If it finds a match, it returns the corresponding
   token for that keyword.
@@ -325,7 +325,7 @@ file.
 2.  Write the action to be performed on recognizing the rules. These
 actions will be used to build the AST.
 3.  If new reserved words are needed, add these to the
-+struct key_tok keyword_list[]+ structure in the *ntp_config.c* file.
++struct key_tok ntp_keywords[]+ structure in the *keyword-gen.c* file.
 This will allow the scanner to recognize these reserved words and
 generate the desired tokens on recognizing them.
 4.  Specify the types of all the terminals and non-terminal symbols in


=====================================
ntpd/ntp_scanner.h
=====================================
--- a/ntpd/ntp_scanner.h
+++ b/ntpd/ntp_scanner.h
@@ -53,7 +53,7 @@ typedef enum {
 
 /* 
  * Define a structure to hold the FSA for the keywords.
- * The structure is actually a trie.
+ * The structure is actually a tree.
  *
  * To save space, a single uint32_t encodes four fields, and a fifth
  * (the token completed for terminal states) is implied by the index of



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/4c2bb9a5b6f2f916b924b7ce3de24aec18174401...964ecb7d19df31a8e62e32e6a5fd088c3b126799
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160213/0b80b8a6/attachment.html>


More information about the vc mailing list