diff options
author | Robert Dewar <dewar@adacore.com> | 2005-03-29 18:14:20 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2005-03-29 18:14:20 +0200 |
commit | debe0ab674d54dbe2df6358be39f56143e00ca8e (patch) | |
tree | bcdecf2cbba892fbd44f1149051ea028d0d1c515 /gcc/ada/styleg.ads | |
parent | d127f91b1d4b99d53d31a80076bf178ceb4053df (diff) | |
download | gcc-debe0ab674d54dbe2df6358be39f56143e00ca8e.zip gcc-debe0ab674d54dbe2df6358be39f56143e00ca8e.tar.gz gcc-debe0ab674d54dbe2df6358be39f56143e00ca8e.tar.bz2 |
errutil.adb, errout.adb: Minor comment updates on Line_Terminator references
2005-03-29 Robert Dewar <dewar@adacore.com>
* errutil.adb, errout.adb:
Minor comment updates on Line_Terminator references
* par-ch10.adb: Add ??? comment about line terminator
* styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
(check dos line terminator).
(Check_Line_Max_Length): New procedure, split off from the existing
Check_Line_Terminator routine. Separating this out allows -gnatyf to
be properly recognized.
* styleg.adb: Add ??? comment for line terminator reference
* scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
(Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
* styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
(check dos line terminator).
(Check_Line_Max_Length): New procedure, split off from the existing
Check_Line_Terminator routine. Separating this out allows -gnatyf to
be properly recognized.
* stylesw.ads, stylesw.adb:
Add handling for new -gnatyd switch (check dos line terminator)
* switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
Recognize -gnatwb/-gnatwB switches
Include Warn_On_Bad_Fixed_Value for -gnatg
* usage.adb:
Add line for new -gnatyd switch (check dos line terminator)
* usage.adb: Add lines for -gnatwb/-gnatwB
* vms_data.ads: Add entry for NOCRLF (-gnatyd)
* vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
* gnat_ugn.texi: Fix overlong lines
Document new -gnatyd switch
Document new -gnatwb/-gnatwB switches
From-SVN: r97169
Diffstat (limited to 'gcc/ada/styleg.ads')
-rw-r--r-- | gcc/ada/styleg.ads | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ada/styleg.ads b/gcc/ada/styleg.ads index bf5b1e1..3bd0712 100644 --- a/gcc/ada/styleg.ads +++ b/gcc/ada/styleg.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1992-2004 Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2005 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -104,11 +104,15 @@ package Styleg is procedure Check_Left_Paren; -- Called after scanning out a left parenthesis to check spacing. + procedure Check_Line_Max_Length (Len : Int); + -- Called with Scan_Ptr pointing to the first line terminator character + -- terminating the current line. Used to check for appropriate line length. + -- The parameter Len is the length of the current line. + procedure Check_Line_Terminator (Len : Int); -- Called with Scan_Ptr pointing to the first line terminator terminating - -- the current line, used to check for appropriate line terminator and - -- to check the line length (Len is the length of the current line). - -- Note that the terminator may be the EOF character. + -- the current line, used to check for appropriate line terminator usage. + -- The parameter Len is the length of the current line. procedure Check_Pragma_Name; -- The current token is a pragma identifier. Check that it is spelled |