Syntax hints: ");
+ let(&tmpStr, ""
+ "This proof depends on syntax axioms: ");
}
// Get the main symbol in the syntax.
@@ -2154,8 +2153,8 @@ void typeProof(long statemNum,
let(&tmpStr1, left(g_Statement[stmt].labelName, 3));
if (!strcmp(tmpStr1, "ax-")) {
if (!tmpStr[0]) {
- let(&tmpStr, ""
- "This theorem was proved from axioms:");
+ let(&tmpStr, ""
+ "This proof depends on axioms:");
}
free_vstring(tmpStr1);
tmpStr1 = pinkHTML(stmt);
@@ -2179,8 +2178,8 @@ void typeProof(long statemNum,
let(&tmpStr1, left(g_Statement[stmt].labelName, 3));
if (!strcmp(tmpStr1, "df-")) {
if (!tmpStr[0]) {
- let(&tmpStr,
- "This theorem depends on definitions:");
+ let(&tmpStr, ""
+ "This proof depends on definitions:");
}
free_vstring(tmpStr1);
tmpStr1 = pinkHTML(stmt);
@@ -2230,14 +2229,14 @@ void typeProof(long statemNum,
// End of axiom list
- // Put referenced by list last
- if (g_printStringForReferencedBy[0]) {
+ // Put "used by" list last
+ if (g_printStringForUsedBy[0]) {
if (g_outputToString != 1) bug(257);
- printLongLine(g_printStringForReferencedBy, "", "\"");
- free_vstring(g_printStringForReferencedBy);
+ printLongLine(g_printStringForUsedBy, "", "\"");
+ free_vstring(g_printStringForUsedBy);
} else {
// Since we always print ref-by list even if "(None)",
- // g_printStringForReferencedBy should never be empty.
+ // g_printStringForUsedBy should never be empty.
bug(263);
}
} // if essentialFlag
@@ -2341,11 +2340,11 @@ void showDetailStep(long statemNum, long detailStep) {
if (stmt <= -1000) {
stmt = -1000 - stmt;
// stmt is now the step number a local label refers to
- let(&tmpStr, cat(tmpStr,"=", str((double)(localLabelNames[stmt])), NULL));
+ let(&tmpStr, cat(tmpStr, "=", str((double)(localLabelNames[stmt])), NULL));
type = g_Statement[proof[stmt]].type;
} else {
if (stmt != -(long)'?') bug(207);
- let(&tmpStr, cat(tmpStr,"=",chr(-stmt), NULL)); // '?'
+ let(&tmpStr, cat(tmpStr, "=", chr(-stmt), NULL)); // '?'
type = '?';
}
} else {
@@ -2450,7 +2449,7 @@ void showDetailStep(long statemNum, long detailStep) {
let(&tmpStr, cat(tmpStr,
" The parent assertion of the target hypothesis is \"",
g_Statement[getStep.targetParentStmt].labelName, "\" ($",
- chr(g_Statement[getStep.targetParentStmt].type),", step ",
+ chr(g_Statement[getStep.targetParentStmt].type), ", step ",
str((double)(getStep.targetParentStep)), ").", NULL));
} else {
let(&tmpStr, cat(tmpStr,
@@ -2472,11 +2471,11 @@ void showDetailStep(long statemNum, long detailStep) {
if (j == 1) {
printLongLine(cat(
"The following substitution was made to the source assertion:",
- NULL),""," ");
+ NULL), "", " ");
} else {
printLongLine(cat(
"The following substitutions were made to the source assertion:",
- NULL),""," ");
+ NULL), "", " ");
}
if (!j) {
print2(" (None)\n");
@@ -2484,7 +2483,7 @@ void showDetailStep(long statemNum, long detailStep) {
print2(" Variable Substituted with\n");
for (i = 0; i < j; i++) {
printLongLine(cat(" ",
- g_MathToken[getStep.sourceSubstsNmbr[i]].tokenName," ",
+ g_MathToken[getStep.sourceSubstsNmbr[i]].tokenName, " ",
space(9 - (long)strlen(
g_MathToken[getStep.sourceSubstsNmbr[i]].tokenName)),
nmbrCvtMToVString(getStep.sourceSubstsPntr[i]), NULL),
@@ -2504,11 +2503,11 @@ void showDetailStep(long statemNum, long detailStep) {
if (j == 1) {
printLongLine(cat(
"The following substitution was made to the target hypothesis:",
- NULL),""," ");
+ NULL), "", " ");
} else {
printLongLine(cat(
"The following substitutions were made to the target hypothesis:",
- NULL),""," ");
+ NULL), "", " ");
}
if (!j) {
print2(" (None)\n");
@@ -2654,7 +2653,7 @@ void proofStmtSumm(long statemNum, flag essentialFlag, flag texFlag) {
print2("\n");
printLongLine(cat("Statement ", g_Statement[stmt].labelName, str1,
"\"", g_Statement[stmt].fileName,
- "\".",NULL), "", " ");
+ "\".", NULL), "", " ");
} else {
g_outputToString = 1; // Flag for print2 to add to g_printString
if (!g_htmlFlag) {
@@ -2702,7 +2701,7 @@ void proofStmtSumm(long statemNum, flag essentialFlag, flag texFlag) {
if (!texFlag) {
printLongLine(cat(str2,
nmbrCvtMToVString(g_Statement[k].mathString), " $.", NULL),
- " "," ");
+ " ", " ");
} else {
let(&str3, space((long)strlen(str2)));
printTexLongMath(g_Statement[k].mathString,
@@ -2987,8 +2986,8 @@ void traceProofTree(long statemNum,
printLongLine(cat("The proof tree traceback for statement \"",
g_Statement[statemNum].labelName,
- "\" follows. The statements used by each proof are indented one level in,",
- " below the statement being proved. Hypotheses are not included.",
+ "\" follows. The statements used by each proof are indented one level in, ",
+ "below the statement being proved. Hypotheses are not included.",
NULL),
"", " ");
print2("\n");
@@ -3354,8 +3353,8 @@ double countSteps(long statemNum, flag essentialFlag)
" different subtheorems are used. ",
"The statement and subtheorems have a total of ",
str((double)actualSteps), " actual steps. ",
- "If subtheorems used only once were eliminated,",
- " there would be a total of ",
+ "If subtheorems used only once were eliminated, ",
+ "there would be a total of ",
str((double)actualSubTheorems2), " subtheorems, and ",
"the statement and subtheorems would have a total of ",
str((double)actualSteps2), " steps. ",
@@ -4653,7 +4652,7 @@ void verifyProofs(vstring labelMatch, flag verifyFlag) {
if (emptyProofList[0]) {
printLongLine(cat(
"Warning: The following $p statement(s) were not proved: ",
- right(emptyProofList,3), NULL)," "," ");
+ right(emptyProofList,3), NULL), " ", " ");
}
if (!emptyProofList[0] && !errorFound && !strcmp("*", labelMatch)) {
if (verifyFlag) {
@@ -5219,11 +5218,11 @@ void verifyMarkup(vstring labelMatch,
fileCheck); // 1 = check external files (gifs and bib)
if (f != 0) errFound = 1;
- // Check mathboxes for cross-references
+ // Check mathboxes for cross-uses
if (mathboxCheck) {
print2("Checking mathbox independence...\n");
assignMathboxInfo(); // Populate global mathbox variables
- // Scan proofs in mathboxes to see if earlier mathbox is referenced
+ // Scan proofs in mathboxes to see if earlier mathbox is used
for (pmbox = 2; pmbox <= g_mathboxes; pmbox++) {
// Note g_mathboxStart, etc. are 0-based
for (pstmt = g_mathboxStart[pmbox - 1]; pstmt <= g_mathboxEnd[pmbox - 1];
@@ -5243,7 +5242,7 @@ void verifyMarkup(vstring labelMatch,
if (stmt < 0) continue; // Local step or '?' step
if (stmt == 0) bug(266);
if (stmt > g_mathboxStmt && stmt < g_mathboxStart[pmbox - 1]) {
- // A statement in another mathbox is referenced
+ // A statement in another mathbox is used
// Eliminate duplicate error messages:
let(&str1, cat(str((double)pstmt), "-", str((double)stmt), NULL));
diff --git a/src/mmfatl.c b/src/mmfatl.c
index 7e65645a..c36cdbbb 100644
--- a/src/mmfatl.c
+++ b/src/mmfatl.c
@@ -18,7 +18,7 @@
*
* This should not produce an error or a warning.
*
- * The regession tests are run by
+ * The regression tests are run by
* build.sh -ct
*/
diff --git a/src/mmvstr.c b/src/mmvstr.c
index c0d68360..40ef6d0b 100644
--- a/src/mmvstr.c
+++ b/src/mmvstr.c
@@ -216,7 +216,6 @@ void let(vstring *target, const char *source) {
// String concatenation
temp_vstring cat(const char *string1, ...) {
#define MAX_CAT_ARGS 50
- va_list ap; // Declare list incrementer
const char *arg[MAX_CAT_ARGS]; // Array to store arguments
size_t argPos[MAX_CAT_ARGS]; // Array of argument positions in result
int i;
@@ -225,7 +224,8 @@ temp_vstring cat(const char *string1, ...) {
size_t pos = 0;
const char* curArg = string1;
- va_start(ap, string1); // Begin the session
+ va_list ap; // Declare list incrementer
+ va_start(ap, string1); // Begin varargs session
do {
// User-provided argument list must terminate with 0
if (numArgs >= MAX_CAT_ARGS) {
diff --git a/src/mmwtex.c b/src/mmwtex.c
index 96f5063f..8c7ba86f 100644
--- a/src/mmwtex.c
+++ b/src/mmwtex.c
@@ -576,7 +576,7 @@ flag readTexDefs(
let(&(g_TexDefs[numSymbs].texEquiv), token);
}
if (cmd == HTMLVARCOLOR) {
- let(&g_htmlVarColor, cat(g_htmlVarColor, " ", token, NULL));
+ let(&g_htmlVarColor, cat(g_htmlVarColor, " ", token, NULL));
}
if (cmd == HTMLTITLE) {
let(&htmlTitle, token);
| | | | | |