diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-18 11:09:27 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-18 11:09:27 +0000 |
commit | 3b304865ca50dd941827ffe1a6f34e821529802c (patch) | |
tree | 183a804a4d784ff0a4492f7cc32f7ac45a78527e /gcc/cpp.texi | |
parent | ea19bdb56dd54240bcd2d6364addb82c5a963837 (diff) | |
download | ppe42-gcc-3b304865ca50dd941827ffe1a6f34e821529802c.tar.gz ppe42-gcc-3b304865ca50dd941827ffe1a6f34e821529802c.zip |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33982 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpp.texi')
-rw-r--r-- | gcc/cpp.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cpp.texi b/gcc/cpp.texi index ed126f8db09..9a48f5ed452 100644 --- a/gcc/cpp.texi +++ b/gcc/cpp.texi @@ -3155,6 +3155,13 @@ Because of the clash with @samp{-l}, you must use the awkward syntax above. In a future release, this option will be replaced by @samp{-flint} or @samp{-Wlint}; we are not sure which yet. +@item -ftabstop=NUMBER +@findex -ftabstop +Indicates the distance between tabstops. This helps the preprocessor +report correct column numbers in warnings or errors, even if tabs appear +on the line. Values less than 1 or greater than 100 are ignored. The +default is 8. + @item -$ @findex -$ Forbid the use of @samp{$} in identifiers. The C standard does not |