ignore loose indentation :)

SVN revision: 11735
This commit is contained in:
Carsten Haitzler 2004-09-28 03:06:21 +00:00
parent bfb1076a77
commit 0d4c9b87ff
2 changed files with 3 additions and 3 deletions

View File

@ -562,7 +562,7 @@ resetglobals(void)
intest = 0; /* true if inside a test */ intest = 0; /* true if inside a test */
sideeffect = 0; /* true if an expression causes a side-effect */ sideeffect = 0; /* true if an expression causes a side-effect */
stmtindent = 0; /* current indent of the statement */ stmtindent = 0; /* current indent of the statement */
indent_nowarn = FALSE; /* do not skip warning "217 loose indentation" */ indent_nowarn = TRUE; /* do not skip warning "217 loose indentation" */
sc_allowtags = TRUE; /* allow/detect tagnames */ sc_allowtags = TRUE; /* allow/detect tagnames */
sc_status = statIDLE; sc_status = statIDLE;
} }
@ -3373,7 +3373,7 @@ statement(int *lastindent, int allow_decl)
!indent_nowarn && sc_tabsize > 0) !indent_nowarn && sc_tabsize > 0)
error(217); /* loose indentation */ error(217); /* loose indentation */
*lastindent = stmtindent; *lastindent = stmtindent;
indent_nowarn = FALSE; /* if warning was blocked, re-enable it */ indent_nowarn = TRUE; /* if warning was blocked, re-enable it */
} /* if */ } /* if */
switch (tok) switch (tok)
{ {

View File

@ -73,7 +73,7 @@ int fcurrent = 0; /* current file being processed (debugging) */
int intest = 0; /* true if inside a test */ int intest = 0; /* true if inside a test */
int sideeffect = 0; /* true if an expression causes a side-effect */ int sideeffect = 0; /* true if an expression causes a side-effect */
int stmtindent = 0; /* current indent of the statement */ int stmtindent = 0; /* current indent of the statement */
int indent_nowarn = FALSE; /* skip warning "217 loose indentation" */ int indent_nowarn = TRUE; /* skip warning "217 loose indentation" */
int sc_tabsize = 8; /* number of spaces that a TAB represents */ int sc_tabsize = 8; /* number of spaces that a TAB represents */
int sc_allowtags = TRUE; /* allow/detect tagnames in lex() */ int sc_allowtags = TRUE; /* allow/detect tagnames in lex() */
int sc_status; /* read/write status */ int sc_status; /* read/write status */