cppinit.c (cpp_reader_init): Initialise col_adjust and default tab stop size.
authorNeil Booth <neilb@earthling.net>
Thu, 18 May 2000 11:09:27 +0000 (11:09 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Thu, 18 May 2000 11:09:27 +0000 (11:09 +0000)
commit6ab3e7dde0bb5e0ebae56b7182b049c6a3626955
tree183a804a4d784ff0a4492f7cc32f7ac45a78527e
parentfc5b21380eee9b33e07a59dbdb91c05cfe18a3cf
cppinit.c (cpp_reader_init): Initialise col_adjust and default tab stop size.

* cppinit.c (cpp_reader_init): Initialise col_adjust and
default tab stop size.
(no_num, OPT_ftabstop): New.
(handle_option): Handle "ftabstop=" command-line option.
(print_help): Document it.
* cpplex.c (COLUMN): Remove.
(handle_newline): Reset col_adjust.
(skip_whitespace): Update col_adjust as tabs encountered.
(_cpp_lex_line): Update to use col_adjust.  Call
skip_whitespace for all whitespace.
* cpplib.h (struct cpp_options): New member tabstop.
(struct cpp_reader): New member col_adjust.
(CPP_BUF_COL): Update.
(CPP_BUF_COLUMN): New.
* cpp.texi: Document "-ftabstop=" command line option.

From-SVN: r33982
gcc/ChangeLog
gcc/cpp.texi
gcc/cppinit.c
gcc/cpplex.c
gcc/cpplib.h