aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-05-23 12:05:38 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-05-23 12:05:38 +0000
commita97d1398381199317a5627d7a24e407284ef1e2e (patch)
tree57ba86ec8f6a73bd6aafd40db3b51f242e817215 /gcc/c-lex.c
parente275a5350601fb2218ad553bb2029b03faf6c7f3 (diff)
downloadgcc-a97d1398381199317a5627d7a24e407284ef1e2e.zip
gcc-a97d1398381199317a5627d7a24e407284ef1e2e.tar.gz
gcc-a97d1398381199317a5627d7a24e407284ef1e2e.tar.bz2
c-lex.c (indent_level): Remove.
* c-lex.c (indent_level): Remove. (cb_file_change, c_lex): Remove indent level handling. * c-lex.h (indent_level): Remove. * input.h (struct file_stack): Remove indent_level. * toplev.c (push_srcloc): Remove indent_level handling. cp: * spew.c (yyungetc, snarf_block): Remove indent_level handling. From-SVN: r53786
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 357017c..7e82b03 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -67,7 +67,6 @@ extern FILE *asm_out_file;
/* Number of bytes in a wide character. */
#define WCHAR_BYTES (WCHAR_TYPE_SIZE / BITS_PER_UNIT)
-int indent_level; /* Number of { minus number of }. */
int pending_lang_change; /* If we need to switch languages - C++ only */
int c_header_level; /* depth in C headers - C++ only */
@@ -271,7 +270,6 @@ cb_file_change (pfile, new_map)
lineno = included_at;
push_srcloc (new_map->to_file, 1);
- input_file_stack->indent_level = indent_level;
(*debug_hooks->start_source_file) (included_at, new_map->to_file);
#ifndef NO_IMPLICIT_EXTERN_C
if (c_header_level)
@@ -294,16 +292,6 @@ cb_file_change (pfile, new_map)
--pending_lang_change;
}
#endif
-#if 0
- if (indent_level != input_file_stack->indent_level)
- {
- warning_with_file_and_line
- (input_filename, lineno,
- "this file contains more '%c's than '%c's",
- indent_level > input_file_stack->indent_level ? '{' : '}',
- indent_level > input_file_stack->indent_level ? '}' : '{');
- }
-#endif
pop_srcloc ();
(*debug_hooks->end_source_file) (to_line);
@@ -718,9 +706,6 @@ c_lex (value)
*value = NULL_TREE;
switch (tok->type)
{
- case CPP_OPEN_BRACE: indent_level++; break;
- case CPP_CLOSE_BRACE: indent_level--; break;
-
/* Issue this error here, where we can get at tok->val.c. */
case CPP_OTHER:
if (ISGRAPH (tok->val.c))