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>
This commit is contained in:
committed by
Liming Gao
parent
325ad62260
commit
fb0b35e05f
@@ -1394,7 +1394,7 @@ tclass()
|
||||
/* MR23 */ if (p!= NULL && akaString != NULL) {
|
||||
/* MR23 */ if (p->akaString != NULL) {
|
||||
/* MR23 */ if (strcmp(p->akaString,akaString) != 0) {
|
||||
/* MR23 */ warnFL(eMsg2("this #tokclass statment conflicts with a previous #tokclass %s(\"%s\") statement",
|
||||
/* MR23 */ warnFL(eMsg2("this #tokclass statement conflicts with a previous #tokclass %s(\"%s\") statement",
|
||||
/* MR23 */ t,p->akaString),
|
||||
/* MR23 */ FileStr[save_file],save_line);
|
||||
/* MR23 */ };
|
||||
@@ -1635,7 +1635,7 @@ token()
|
||||
if (te != NULL && akaString != NULL) {
|
||||
if (te->akaString != NULL) {
|
||||
if (strcmp(te->akaString,akaString) != 0) {
|
||||
warnFL(eMsg2("this #token statment conflicts with a previous #token %s(\"%s\") statement",
|
||||
warnFL(eMsg2("this #token statement conflicts with a previous #token %s(\"%s\") statement",
|
||||
t,te->akaString),
|
||||
FileStr[save_file],save_line);
|
||||
};
|
||||
|
@@ -1331,7 +1331,7 @@ tclass : <<char *t=NULL; TCnode *e; int go=1,tok,totok; TermEntry *p, *term, *to
|
||||
/* MR23 */ if (p!= NULL && akaString != NULL) {
|
||||
/* MR23 */ if (p->akaString != NULL) {
|
||||
/* MR23 */ if (strcmp(p->akaString,akaString) != 0) {
|
||||
/* MR23 */ warnFL(eMsg2("this #tokclass statment conflicts with a previous #tokclass %s(\"%s\") statement",
|
||||
/* MR23 */ warnFL(eMsg2("this #tokclass statement conflicts with a previous #tokclass %s(\"%s\") statement",
|
||||
/* MR23 */ t,p->akaString),
|
||||
/* MR23 */ FileStr[save_file],save_line);
|
||||
/* MR23 */ };
|
||||
@@ -1439,7 +1439,7 @@ token : <<char *t=NULL, *e=NULL, *a=NULL; int tnum=0;>>
|
||||
if (te != NULL && akaString != NULL) {
|
||||
if (te->akaString != NULL) {
|
||||
if (strcmp(te->akaString,akaString) != 0) {
|
||||
warnFL(eMsg2("this #token statment conflicts with a previous #token %s(\"%s\") statement",
|
||||
warnFL(eMsg2("this #token statement conflicts with a previous #token %s(\"%s\") statement",
|
||||
t,te->akaString),
|
||||
FileStr[save_file],save_line);
|
||||
};
|
||||
|
@@ -286,7 +286,7 @@ resource 'cmdo' (128, "Antlr") {
|
||||
"If this option is checked, ANTLR will ge"
|
||||
"nerate a cross reference for all rules. "
|
||||
"For each rule it will print a list of al"
|
||||
"l other rules that refrence it."
|
||||
"l other rules that reference it."
|
||||
},
|
||||
/* [10] */
|
||||
NotDependent {
|
||||
|
@@ -166,7 +166,7 @@ ExceptionGroup *eg;
|
||||
};
|
||||
};
|
||||
|
||||
/* ocurs at a later pass then for the exception_label */
|
||||
/* occurs at a later pass then for the exception_label */
|
||||
/* if an outerEG has been found then fill in the outer EG */
|
||||
/* remove if from the list when the BlkLevel gets smaller */
|
||||
|
||||
|
@@ -353,7 +353,7 @@ set *rk_out;
|
||||
set_orin(&a, b);
|
||||
set_free(b);
|
||||
}
|
||||
set_free(rk); /* this has no members, but free it's memory */
|
||||
set_free(rk); /* this has no members, but free its memory */
|
||||
set_orin(rk_out, rk2); /* remember what we couldn't do */
|
||||
set_free(rk2);
|
||||
if (MR_MaintainBackTrace) MR_pointerStackPop(&MR_BackTraceStack);
|
||||
@@ -937,7 +937,7 @@ int jtype;
|
||||
long n;
|
||||
int thisOverflow=0; /* MR9 */
|
||||
long set_deg_value; /* MR10 */
|
||||
long threshhold; /* MR10 */
|
||||
long threshold; /* MR10 */
|
||||
|
||||
require(block!=NULL, "NULL block");
|
||||
require(block->ntype==nJunction, "invalid block");
|
||||
@@ -954,8 +954,8 @@ int jtype;
|
||||
b = set_and(alt1->fset[i], alt2->fset[i]);
|
||||
/* MR9 */ set_deg_value = set_deg(b);
|
||||
/* MR10 */ if (n > 0) {
|
||||
/* MR10 */ threshhold = LONG_MAX / n;
|
||||
/* MR10 */ if (set_deg_value <= threshhold) {
|
||||
/* MR10 */ threshold = LONG_MAX / n;
|
||||
/* MR10 */ if (set_deg_value <= threshold) {
|
||||
/* MR10 */ n *= set_deg_value;
|
||||
/* MR10 */ } else {
|
||||
/* MR10 */ n=LONG_MAX;
|
||||
|
@@ -739,7 +739,7 @@ set *rk_out;
|
||||
t = tlink(t, u, k2); /* any alts missing k2 toks, add u onto end */
|
||||
Tfree(u); /* MR10 */
|
||||
}
|
||||
set_free(rk); /* rk is empty, but free it's memory */
|
||||
set_free(rk); /* rk is empty, but free its memory */
|
||||
set_orin(rk_out, rk2); /* remember what we couldn't do */
|
||||
set_free(rk2);
|
||||
return t;
|
||||
|
@@ -1590,7 +1590,7 @@ int *lastAltEmpty; /* MR23 */
|
||||
with input "C"
|
||||
|
||||
Before MR21 the error message would be "expecting B - found C". After MR21
|
||||
the error message would be "expcect A, B - found C". This was good, but it
|
||||
the error message would be "expect A, B - found C". This was good, but it
|
||||
caused problems for those using parser exceptions because the reference to
|
||||
B was generated inside the {...} where B really wasn't part of the block.
|
||||
|
||||
@@ -1781,7 +1781,7 @@ Junction *q;
|
||||
followed by a loopBlock whereas the start of a (...)+ block is
|
||||
represented as a single node: a plusBlock. So if first_item_is_guess_block
|
||||
is called when the current node is a loopBegin it starts with the
|
||||
loop block rather than the the sub block which follows the loop block.
|
||||
loop block rather than the sub block which follows the loop block.
|
||||
However, we can't just skip past the loop block because some routines
|
||||
depend on the old implementation. So, we provide a new implementation
|
||||
which does skip the loopBlock. However, which should be called when ?
|
||||
@@ -3496,7 +3496,7 @@ do { /* MR10 Change recursion into iteration */
|
||||
/* MR23
|
||||
If there were only one return value operand and
|
||||
it had an initializer then it would have been
|
||||
initiailized in the declaration.
|
||||
initialized in the declaration.
|
||||
*/
|
||||
|
||||
returnValueInitializer = getInitializer(q->ret); /* MR23 */
|
||||
@@ -3740,7 +3740,7 @@ RuleEntry *r;
|
||||
/* NOTICE: this is done only here, for the method definition, but */
|
||||
/* not for the method declaration inside the class */
|
||||
/* definition. This is exactly the behaviour defined in */
|
||||
/* C++ standard for default paramters. */
|
||||
/* C++ standard for default parameters. */
|
||||
|
||||
DumpANSIFunctionArgDef(output,q, 0 /* emit initializers ? */);
|
||||
_gen("\n");
|
||||
@@ -4726,7 +4726,7 @@ int bInitializer;
|
||||
blocks to look like (...|...| epsilon) since there were
|
||||
intervening generics. This fixes the problem for this
|
||||
particular case. Things like actions or empty blocks of
|
||||
various kinds will still cause problems, but I wasnt't
|
||||
various kinds will still cause problems, but I wasn't
|
||||
prepared to handle pathological cases like (A|()*). It
|
||||
does handle (A | ()), which is a recommended idiom for
|
||||
epsilon.
|
||||
|
@@ -215,7 +215,7 @@ typedef Graph Attrib;
|
||||
|
||||
/* M a x i m u m s */
|
||||
|
||||
/* MR20 Note G. Hobbelt These values are superceded by values in hash.h */
|
||||
/* MR20 Note G. Hobbelt These values are superseded by values in hash.h */
|
||||
|
||||
#ifndef HashTableSize
|
||||
#define HashTableSize 253
|
||||
|
@@ -640,7 +640,7 @@ Junction *q;
|
||||
*
|
||||
*/
|
||||
|
||||
/* MR5 Jan Mikkelsen 26-May-97 - added initalComma parameter */
|
||||
/* MR5 Jan Mikkelsen 26-May-97 - added initialComma parameter */
|
||||
|
||||
void
|
||||
#ifdef __USE_PROTOS
|
||||
@@ -696,7 +696,7 @@ FILE *output;
|
||||
&pSeparator,
|
||||
&nest);
|
||||
|
||||
/* MR26 Handle rule arguments such as: IIR_Bool (IIR_Decl::*contstraint)()
|
||||
/* MR26 Handle rule arguments such as: IIR_Bool (IIR_Decl::*constraint)()
|
||||
For this we need to strip off anything which follows the symbol.
|
||||
*/
|
||||
|
||||
|
@@ -2357,7 +2357,7 @@ NEXT_P:
|
||||
* expression, such as "#pred NotA !A" or "#pred NotXY ! (X && Y) or
|
||||
* "#pred XbarY !(X && Y)". In particular, it cannot be set by any
|
||||
* predicate expression occurring under any other circumstances.
|
||||
* The #pred predicate expresssions are stored with in predEntry->pred
|
||||
* The #pred predicate expressions are stored with in predEntry->pred
|
||||
* and do not normally appear anywhere else until the predicates are
|
||||
* "unfolded" in order to recognize redundancies, conflicts, and
|
||||
* tautologies.
|
||||
|
Reference in New Issue
Block a user