Skip to content

Commit 80af6db

Browse files
committed
resolve merge conflicts
2 parents 91b9cd6 + c1d7148 commit 80af6db

File tree

16 files changed

+764
-679
lines changed

16 files changed

+764
-679
lines changed

src/mmcmdl.h

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
#define METAMATH_MMCMDL_H_
99

1010
/*!
11-
* \file mmcmdl.h - includes for accessing the command line interpreter
11+
* \file mmcmdl.h
12+
* \brief includes for accessing the command line interpreter
1213
*/
1314

1415
#include "mmvstr.h"
@@ -27,7 +28,7 @@ extern pntrString *g_rawArgPntr;
2728
extern nmbrString *g_rawArgNmbr;
2829
extern long g_rawArgs;
2930
extern pntrString *g_fullArg;
30-
extern vstring g_fullArgString; /* g_fullArg as one string */
31+
extern vstring g_fullArgString; /*!< g_fullArg as one string */
3132
/*!
3233
* \var vstring g_commandPrompt
3334
* text displayed at the beginning of the line where a user is supposed to
@@ -38,21 +39,23 @@ extern vstring g_commandLine;
3839
extern long g_showStatement;
3940
extern vstring g_logFileName;
4041
extern vstring g_texFileName;
41-
extern flag g_PFASmode; /* Proof assistant mode, invoked by PROVE command */
42-
extern flag g_sourceChanged; /* Flag that user made some change to the source file*/
43-
extern flag g_proofChanged; /* Flag that user made some change to proof in progress*/
44-
extern flag g_commandEcho; /* Echo full command */
42+
extern flag g_PFASmode; /*!< Proof assistant mode, invoked by PROVE command */
43+
extern flag g_sourceChanged; /*!< Flag that user made some change to the source file*/
44+
extern flag g_proofChanged; /*!< Flag that user made some change to proof in progress*/
45+
extern flag g_commandEcho; /*!< Echo full command */
4546
/*!
46-
* \brief indicates whether the user has turned MEMORY STATUS on.
47+
* \brief `MEMORY_STATUS` option: Always show memory
48+
*
49+
* Indicates whether the user has turned MEMORY_STATUS on.
4750
*
4851
* If the user issues SET MEMORY_STATUS ON this \ref flag is set to 1. It is
4952
* reset to 0 again on a SET MEMORY_STATUS OFF command. When 1, certain
5053
* memory de/allocations are monitored - see \ref db3.
5154
*/
52-
extern flag g_memoryStatus; /* Always show memory */
55+
extern flag g_memoryStatus;
5356

54-
extern flag g_sourceHasBeenRead; /* 1 if a source file has been read in */
55-
extern vstring g_rootDirectory; /* Directory to use for included files */
57+
extern flag g_sourceHasBeenRead; /*!< 1 if a source file has been read in */
58+
extern vstring g_rootDirectory; /*!< Directory to use for included files */
5659

5760

5861
#endif /* METAMATH_MMCMDL_H_ */

src/mmcmds.h

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@
77
#ifndef METAMATH_MMCMDS_H_
88
#define METAMATH_MMCMDS_H_
99

10+
/*! \file */
11+
1012
#include "mmvstr.h"
1113
#include "mmdata.h"
1214

13-
/* Type (i.e. print) a statement */
15+
/*! Type (i.e. print) a statement */
1416
void typeStatement(long statemNum,
1517
flag briefFlag,
1618
flag commentOnlyFlag,
1719
flag texFlag,
1820
flag htmlFlag);
19-
/* Type (i.e. print) a proof */
21+
/*! Type (i.e. print) a proof */
2022
void typeProof(long statemNum,
21-
flag pipFlag, /* Type proofInProgress instead of source file proof */
23+
flag pipFlag, /*!< Type proofInProgress instead of source file proof */
2224
long startStep, long endStep,
2325
long endIndent,
2426
flag essentialFlag,
@@ -31,11 +33,11 @@ void typeProof(long statemNum,
3133
flag skipRepeatedSteps,
3234
flag texFlag,
3335
flag htmlFlag);
34-
/* Show details of step */
36+
/*! Show details of step */
3537
void showDetailStep(long statemNum, long detailStep);
36-
/* Summary of statements in proof */
38+
/*! Summary of statements in proof */
3739
void proofStmtSumm(long statemNum, flag essentialFlag, flag texFlag);
38-
/* Traces back the statements used by a proof, recursively. */
40+
/*! Traces back the statements used by a proof, recursively. */
3941
flag traceProof(long statemNum,
4042
flag essentialFlag,
4143
flag axiomFlag,
@@ -45,26 +47,26 @@ flag traceProof(long statemNum,
4547
void traceProofWork(long statemNum,
4648
flag essentialFlag,
4749
vstring traceToList,
48-
vstring *statementUsedFlagsP, /* 'y'/'n' flag that statement is used */
50+
vstring *statementUsedFlagsP, /*!< 'y'/'n' flag that statement is used */
4951
nmbrString **unprovedListP);
50-
/* Traces back the statements used by a proof, recursively, with tree display.*/
52+
/*! Traces back the statements used by a proof, recursively, with tree display.*/
5153
void traceProofTree(long statemNum,
5254
flag essentialFlag, long endIndent);
5355
void traceProofTreeRec(long statemNum,
5456
flag essentialFlag, long endIndent, long recursDepth);
55-
/* Counts the number of steps a completely exploded proof would require */
56-
/* (Recursive) */
57-
/* 0 is returned if some assertions have incomplete proofs. */
57+
/*! Counts the number of steps a completely exploded proof would require
58+
(Recursive)
59+
0 is returned if some assertions have incomplete proofs. */
5860
double countSteps(long statemNum, flag essentialFlag);
59-
/* Traces what statements require the use of a given statement */
61+
/*! Traces what statements require the use of a given statement */
6062
vstring traceUsage(long statemNum,
6163
flag recursiveFlag,
6264
long cutoffStmt /* if nonzero, stop scan there */);
6365
vstring htmlDummyVars(long showStmt);
6466
vstring htmlAllowedSubst(long showStmt);
6567

6668
void readInput(void);
67-
/* WRITE SOURCE command */
69+
/*! WRITE SOURCE command */
6870
void writeSource(
6971
flag reformatFlag /* 1 = "/ FORMAT", 2 = "/REWRAP" */,
7072
flag splitFlag, /* /SPLIT - write out separate $[ $] includes */
@@ -73,7 +75,7 @@ void writeSource(
7375
when /SPIT is not specified */
7476
vstring extractLabels); /* "" means write everything */
7577

76-
/* Get info for WRITE SOURCE ... / EXTRACT */
78+
/*! Get info for WRITE SOURCE ... / EXTRACT */
7779
void writeExtractedSource(vstring extractLabels, /* EXTRACT argument provided by user */
7880
vstring fullOutput_fn, flag noVersioningFlag);
7981

@@ -84,7 +86,7 @@ void eraseSource(void);
8486
void verifyProofs(vstring labelMatch, flag verifyFlag);
8587

8688

87-
/* If checkFiles = 0, do not open external files.
89+
/*! If checkFiles = 0, do not open external files.
8890
If checkFiles = 1, check for presence of gifs and biblio file */
8991
void verifyMarkup(vstring labelMatch, flag dateCheck, flag topDateCheck,
9092
flag fileCheck,
@@ -95,51 +97,53 @@ void verifyMarkup(vstring labelMatch, flag dateCheck, flag topDateCheck,
9597
void processMarkup(vstring inputFileName, vstring outputFileName,
9698
flag processCss, long actionBits);
9799

98-
/* List "discouraged" statements with "(Proof modification is discouraged."
100+
/*! List "discouraged" statements with "(Proof modification is discouraged."
99101
and "(New usage is discouraged.)" comment markup tags. */
100102
void showDiscouraged(void);
101103

102-
/* Take a relative step FIRST, LAST, +nn, -nn (relative to the unknown
104+
/*! Take a relative step FIRST, LAST, +nn, -nn (relative to the unknown
103105
essential steps) or ALL, and return the actual step for use by ASSIGN,
104106
IMPROVE, REPLACE, LET (or 0 in case of ALL, used by IMPROVE). In case
105107
stepStr is an unsigned integer nn, it is assumed to already be an actual
106108
step and is returned as is. If format is illegal, -1 is returned. */
107-
long getStepNum(vstring relStep, /* User's argument */
108-
nmbrString *pfInProgress, /* proofInProgress.proof */
109-
flag allFlag /* 1 = "ALL" is permissible */);
109+
long getStepNum(vstring relStep, /*!< User's argument */
110+
nmbrString *pfInProgress, /*!< proofInProgress.proof */
111+
flag allFlag /*!< 1 = "ALL" is permissible */);
110112

111-
/* Convert the actual step numbers of an unassigned step to the relative
113+
/*! Convert the actual step numbers of an unassigned step to the relative
112114
-1, -2, etc. offset for SHOW NEW_PROOF ... /UNKNOWN, to make it easier
113115
for the user to ASSIGN the relative step number. A 0 is returned
114116
for the last unknown step. The step numbers of known steps are
115-
unchanged. */
116-
/* The caller must deallocate the returned nmbrString. */
117+
unchanged.
118+
The caller must deallocate the returned nmbrString. */
117119
nmbrString *getRelStepNums(nmbrString *pfInProgress);
118120

119-
/* This procedure finds the next statement number whose label matches
121+
/*! This procedure finds the next statement number whose label matches
120122
stmtName. Wildcards are allowed. If uniqueFlag is 1,
121123
there must be exactly one match, otherwise an error message is printed,
122124
and -1 is returned. If uniqueFlag is 0, the next match is
123125
returned, or -1 if there are no more matches. No error messages are
124126
printed when uniqueFlag is 0, except for the special case of
125127
startStmt=1. For use by PROVE, REPLACE, ASSIGN. */
126-
long getStatementNum(vstring stmtName, /* Possibly with wildcards */
127-
long startStmt, /* Starting statement number (1 for full scan) */
128-
long maxStmt, /* Must be LESS THAN this statement number */
129-
flag aAllowed, /* 1 means $a is allowed */
130-
flag pAllowed, /* 1 means $p is allowed */
131-
flag eAllowed, /* 1 means $e is allowed */
132-
flag fAllowed, /* 1 means $f is allowed */
133-
flag efOnlyForMaxStmt, /* If 1, $e and $f must belong to maxStmt */
134-
flag uniqueFlag); /* If 1, match must be unique */
135-
136-
/* For HELP processing */
128+
long getStatementNum(
129+
vstring stmtName, /*!< Possibly with wildcards */
130+
long startStmt, /*!< Starting statement number (1 for full scan) */
131+
long maxStmt, /*!< Must be LESS THAN this statement number */
132+
flag aAllowed, /*!< 1 means $a is allowed */
133+
flag pAllowed, /*!< 1 means $p is allowed */
134+
flag eAllowed, /*!< 1 means $e is allowed */
135+
flag fAllowed, /*!< 1 means $f is allowed */
136+
flag efOnlyForMaxStmt, /*!< If 1, $e and $f must belong to maxStmt */
137+
flag uniqueFlag /*!< If 1, match must be unique */
138+
);
139+
140+
/*! For HELP processing */
137141
extern flag g_printHelp;
138142
void H(vstring helpLine);
139143

140-
/* For MIDI files */
141-
extern flag g_midiFlag; /* Set to 1 if typeProof() is to output MIDI file */
142-
extern vstring g_midiParam; /* Parameter string for MIDI file */
144+
/*! For MIDI files */
145+
extern flag g_midiFlag; /*!< Set to 1 if typeProof() is to output MIDI file */
146+
extern vstring g_midiParam; /*!< Parameter string for MIDI file */
143147
void outputMidi(long plen, nmbrString *indentationLevels,
144148
nmbrString *logicalFlags, vstring g_midiParameter, vstring statementLabel);
145149

src/mmdata.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2541,9 +2541,6 @@ temp_pntrString *pntrTempAlloc(long size) {
25412541
}
25422542

25432543

2544-
/* Make string have temporary allocation to be released by next pntrLet() */
2545-
/* Warning: after pntrMakeTempAlloc() is called, the pntrString may NOT be
2546-
assigned again with pntrLet() */
25472544
temp_pntrString *pntrMakeTempAlloc(pntrString *s) {
25482545
if (g_pntrTempAllocStackTop>=(M_MAX_ALLOC_STACK-1)) {
25492546
printf(
@@ -2562,12 +2559,6 @@ temp_pntrString *pntrMakeTempAlloc(pntrString *s) {
25622559
}
25632560

25642561

2565-
/* pntrString assignment */
2566-
/* This function must ALWAYS be called to make assignment to */
2567-
/* a pntrString in order for the memory cleanup routines, etc. */
2568-
/* to work properly. If a pntrString has never been assigned before, */
2569-
/* it is the user's responsibility to initialize it to NULL_PNTRSTRING (the */
2570-
/* null string). */
25712562
void pntrLet(pntrString **target, const pntrString *source) {
25722563
long targetLength,sourceLength;
25732564
long targetAllocLen;

0 commit comments

Comments
 (0)