Changed multi-line C comments into another style.
The left side doesn't look unbalanced.
This commit is contained in:
@@ -104,9 +104,9 @@ static int GetOverallIfCond (void)
|
||||
/* Get the overall condition based on all conditions on the stack. */
|
||||
{
|
||||
/* Since the last entry contains the overall condition of the parent, we
|
||||
* must check it in combination of the current condition. If there is no
|
||||
* last entry, the overall condition is true.
|
||||
*/
|
||||
** must check it in combination of the current condition. If there is no
|
||||
** last entry, the overall condition is true.
|
||||
*/
|
||||
return (IfCount == 0) ||
|
||||
((IfStack[IfCount-1].Flags & (ifCond | ifParentCond)) == (ifCond | ifParentCond));
|
||||
}
|
||||
@@ -114,7 +114,7 @@ static int GetOverallIfCond (void)
|
||||
|
||||
|
||||
static void CalcOverallIfCond (void)
|
||||
/* Caclulate the overall condition based on all conditions on the stack. */
|
||||
/* Calculate the overall condition, based on all conditions on the stack. */
|
||||
{
|
||||
IfCond = GetOverallIfCond ();
|
||||
}
|
||||
@@ -256,9 +256,9 @@ void DoConditionals (void)
|
||||
NextTok ();
|
||||
|
||||
/* Ignore the new condition if we are inside a false .ELSE
|
||||
* branch. This way we won't get any errors about undefined
|
||||
* symbols or similar...
|
||||
*/
|
||||
** branch. This way we won't get any errors about undefined
|
||||
** symbols or similar...
|
||||
*/
|
||||
if (IfCond) {
|
||||
SetIfCond (D, ConstExpression ());
|
||||
ExpectSep ();
|
||||
@@ -273,8 +273,8 @@ void DoConditionals (void)
|
||||
FreeIf ();
|
||||
|
||||
/* Be sure not to read the next token until the .IF stack
|
||||
* has been cleanup up, since we may be at end of file.
|
||||
*/
|
||||
** has been cleanup up, since we may be at end of file.
|
||||
*/
|
||||
NextTok ();
|
||||
ExpectSep ();
|
||||
|
||||
@@ -440,9 +440,9 @@ void DoConditionals (void)
|
||||
|
||||
int CheckConditionals (void)
|
||||
/* Check if the current token is one that starts a conditional directive, and
|
||||
* call DoConditionals if so. Return true if a conditional directive was found,
|
||||
* return false otherwise.
|
||||
*/
|
||||
** call DoConditionals if so. Return true if a conditional directive was found,
|
||||
** return false otherwise.
|
||||
*/
|
||||
{
|
||||
switch (CurTok.Tok) {
|
||||
case TOK_ELSE:
|
||||
@@ -473,15 +473,15 @@ int CheckConditionals (void)
|
||||
|
||||
void CheckOpenIfs (void)
|
||||
/* Called from the scanner before closing an input file. Will check for any
|
||||
* open .ifs in this file.
|
||||
*/
|
||||
** open .ifs in this file.
|
||||
*/
|
||||
{
|
||||
const LineInfo* LI;
|
||||
|
||||
while (1) {
|
||||
/* Get the current file number and check if the topmost entry on the
|
||||
* .IF stack was inserted with this file number
|
||||
*/
|
||||
** .IF stack was inserted with this file number
|
||||
*/
|
||||
IfDesc* D = GetCurrentIf ();
|
||||
if (D == 0) {
|
||||
/* There are no open .IFs */
|
||||
|
||||
Reference in New Issue
Block a user