summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/C/VfrCompile/Pccts/dlg
diff options
context:
space:
mode:
authorAntoine Coeur <Coeur@gmx.fr>2019-02-06 15:44:39 +0800
committerLiming Gao <liming.gao@intel.com>2019-02-14 10:02:28 +0800
commitfb0b35e05f772bd415fe264267bbbcde2e0accda (patch)
tree02a7553984090494ef5236f043fe6b59f619b7d5 /BaseTools/Source/C/VfrCompile/Pccts/dlg
parent325ad6226099d276564a65cdef012de0ff45ba8e (diff)
downloadedk2-fb0b35e05f772bd415fe264267bbbcde2e0accda.tar.gz
edk2-fb0b35e05f772bd415fe264267bbbcde2e0accda.tar.bz2
edk2-fb0b35e05f772bd415fe264267bbbcde2e0accda.zip
BaseTools: Various typo
Various typo in BaseTools. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Coeur <coeur@gmx.fr> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/C/VfrCompile/Pccts/dlg')
-rw-r--r--BaseTools/Source/C/VfrCompile/Pccts/dlg/automata.c6
-rw-r--r--BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.h4
-rw-r--r--BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.r51
-rw-r--r--BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c2
-rw-r--r--BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g2
-rw-r--r--BaseTools/Source/C/VfrCompile/Pccts/dlg/relabel.c2
6 files changed, 31 insertions, 36 deletions
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/dlg/automata.c b/BaseTools/Source/C/VfrCompile/Pccts/dlg/automata.c
index d6d5d7809d..2d473ec8b6 100644
--- a/BaseTools/Source/C/VfrCompile/Pccts/dlg/automata.c
+++ b/BaseTools/Source/C/VfrCompile/Pccts/dlg/automata.c
@@ -90,7 +90,7 @@ set nfa_states;
if (dfa_size<=dfa_allocated){
/* need to redo array */
if (!dfa_array){
- /* need some to do inital allocation */
+ /* need some to do initial allocation */
dfa_size=dfa_allocated+DFA_MIN;
dfa_array=(dfa_node **) malloc(sizeof(dfa_node*)*
dfa_size);
@@ -113,7 +113,7 @@ set nfa_states;
}
-/* past a pointer to the start start of the nfa graph
+/* past a pointer to the start of the nfa graph
* nfa_to_dfa convers this graph to dfa. The function returns
* a pointer to the first dfa state.
* NOTE: The function that prints out the table will have to figure out how
@@ -219,7 +219,7 @@ FILE *f;
#endif
/* Returns a pointer to a dfa node that has the same nfa nodes in it.
- * This may or maynot be a newly created node.
+ * This may or may not be a newly created node.
*/
dfa_node *
#ifdef __USE_PROTOS
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.h b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.h
index 9f387c0a1c..97d1718c70 100644
--- a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.h
+++ b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.h
@@ -117,7 +117,7 @@ typedef struct {
extern char program[]; /* tells what program this is */
extern char version[]; /* tells what version this is */
extern char *file_str[]; /* file names being used */
-extern int err_found; /* flag to indicate error occured */
+extern int err_found; /* flag to indicate error occurred */
extern int action_no; /* last action function printed */
extern int func_action; /* should actions be turned into functions?*/
extern set used_chars; /* used to label trans. arcs */
@@ -129,7 +129,7 @@ extern int comp_level; /* what compression level to use */
extern int interactive; /* interactive scanner (avoid lookahead)*/
extern int mode_counter; /* keeps track of the number of %%name */
extern int dfa_basep[]; /* start of each group of dfa */
-extern int dfa_class_nop[];/* number of transistion arcs in */
+extern int dfa_class_nop[];/* number of transition arcs in */
/* each dfa in each mode */
extern int nfa_allocated;
extern int dfa_allocated;
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.r b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.r
index c5311fa1b8..c88c151318 100644
--- a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.r
+++ b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg.r
@@ -23,9 +23,9 @@ resource 'cmdo' (128, "Dlg") {
{35, 175, 50, 225},
"On",
"-CC",
- "When this control is checked, DLG genera"
- "tes a scanner using C++ classes rather t"
- "han C functions."
+ "When this control is checked, DLG generates "
+ "a scanner using C++ classes rather than "
+ "C functions."
},
/* [2] */
Or {
@@ -41,8 +41,7 @@ resource 'cmdo' (128, "Dlg") {
"DLGLexer",
keepCase,
"-cl",
- "This entry specifies the name DLG uses f"
- "or the C++ lexer class."
+ "This entry specifies the name DLG uses for the C++ lexer class."
},
/* [3] */
NotDependent {
@@ -90,8 +89,7 @@ resource 'cmdo' (128, "Dlg") {
{66, 25, 85, 135},
"Output File",
"",
- "Choose the name of the file that will ho"
- "ld the DLG-produced scanner."
+ "Choose the name of the file that will hold the DLG-produced scanner."
},
NoMore {
@@ -161,8 +159,7 @@ resource 'cmdo' (128, "Dlg") {
"mode.h",
keepCase,
"-m",
- "This entry specifies the name DLG uses f"
- "or its lexical mode output file."
+ "This entry specifies the name DLG uses for its lexical mode output file."
},
/* [11] */
NotDependent {
@@ -171,15 +168,14 @@ resource 'cmdo' (128, "Dlg") {
RadioButtons {
{ /* array radioArray: 3 elements */
/* [1] */
- {134, 175, 149, 255}, "None", "", Set, "When this option is selected, DLG will n"
- "ot compress its tables.",
+ {134, 175, 149, 255}, "None", "", Set, "When this option is selected, DLG will not "
+ "compress its tables.",
/* [2] */
- {134, 265, 149, 345}, "Level 1", "-C1", NotSet, "When this option is selected, DLG will r"
- "emove all unused characters from the tra"
- "nsition-from table.",
+ {134, 265, 149, 345}, "Level 1", "-C1", NotSet, "When this option is selected, DLG will "
+ "remove all unused characters from the transition-from table.",
/* [3] */
- {134, 360, 149, 450}, "Level 2", "-C2", NotSet, "When this option is selected, DLG will p"
- "erform level 1 compression plus it will "
+ {134, 360, 149, 450}, "Level 2", "-C2", NotSet, "When this option is selected, DLG will "
+ "perform level 1 compression plus it will "
"map equivalent characters into the same "
"character classes."
}
@@ -202,8 +198,8 @@ resource 'cmdo' (128, "Dlg") {
{165, 20, 180, 145},
"Case Sensitive",
"-ci",
- "When this control is checked, the DLG au"
- "tomaton will treat upper and lower case "
+ "When this control is checked, the DLG automaton "
+ "will treat upper and lower case "
"characters identically."
},
/* [14] */
@@ -215,9 +211,8 @@ resource 'cmdo' (128, "Dlg") {
{165, 150, 180, 300},
"Interactive Scanner",
"-i",
- "When this control is checked, DLG will g"
- "enerate as interactive a scanner as poss"
- "ible."
+ "When this control is checked, DLG will generate "
+ "as interactive a scanner as possible."
},
/* [15] */
NotDependent {
@@ -229,8 +224,8 @@ resource 'cmdo' (128, "Dlg") {
"Ambiguity Warnings",
"-Wambiguity",
"When this control is checked, DLG warns "
- "if more than one regular expression coul"
- "d match the same character sequence."
+ "if more than one regular expression could "
+ "match the same character sequence."
},
/* [16] */
NotDependent {
@@ -240,9 +235,9 @@ resource 'cmdo' (128, "Dlg") {
VersionString {
"1.33MR"
},
- "PCCTS was written by Terence Parr, Russe"
- "ll Quong, Will Cohen, and Hank Dietz: 19"
- "89-1998. MPW port by Scott Haney.",
+ "PCCTS was written by Terence Parr, Russell "
+ "Quong, Will Cohen, and Hank Dietz: 1989-1998. "
+ "MPW port by Scott Haney.",
noDialog
},
/* [17] */
@@ -266,8 +261,8 @@ resource 'cmdo' (128, "Dlg") {
{142, 20, 157, 148},
"Generate ANSI C",
"-ga",
- "When this control is checked, DLG genera"
- "tes ANSI C compatible code."
+ "When this control is checked, DLG generates "
+ "ANSI C compatible code."
}
}
}
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c
index 51f79759fb..fbaf93afc6 100644
--- a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c
+++ b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.c
@@ -813,7 +813,7 @@ new_nfa_node()
if (nfa_size<=nfa_allocated){
/* need to redo array */
if (!nfa_array){
- /* need some to do inital allocation */
+ /* need some to do initial allocation */
nfa_size=nfa_allocated+NFA_MIN;
nfa_array=(nfa_node **) malloc(sizeof(nfa_node*)*
nfa_size);
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g
index 0e3fe6d9d7..657f3251a6 100644
--- a/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g
+++ b/BaseTools/Source/C/VfrCompile/Pccts/dlg/dlg_p.g
@@ -463,7 +463,7 @@ new_nfa_node()
if (nfa_size<=nfa_allocated){
/* need to redo array */
if (!nfa_array){
- /* need some to do inital allocation */
+ /* need some to do initial allocation */
nfa_size=nfa_allocated+NFA_MIN;
nfa_array=(nfa_node **) malloc(sizeof(nfa_node*)*
nfa_size);
diff --git a/BaseTools/Source/C/VfrCompile/Pccts/dlg/relabel.c b/BaseTools/Source/C/VfrCompile/Pccts/dlg/relabel.c
index 0b8bc163d1..f2dce30f5f 100644
--- a/BaseTools/Source/C/VfrCompile/Pccts/dlg/relabel.c
+++ b/BaseTools/Source/C/VfrCompile/Pccts/dlg/relabel.c
@@ -134,7 +134,7 @@ int level; /* compression level to uses */
/* given pointer to beginning of graph and recursively walks it trying
- * to find a maximal partition. This partion in returned in maximal_class
+ * to find a maximal partition. This partition in returned in maximal_class
*/
#ifdef __USE_PROTOS
void intersect_nfa_labels(nfa_node* start,set* maximal_class)