diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-08-09 19:32:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-08-09 19:32:03 +0000 |
commit | 51a3bc15018f98230bd538cac6f6e490beff51f5 (patch) | |
tree | b62ccb1d3e9f75bd5c9c4976f0e31a21351028b5 | |
parent | 25d0e5a03a0ab0a813d555f47a64c6367b891f9c (diff) | |
download | gdb-51a3bc15018f98230bd538cac6f6e490beff51f5.zip gdb-51a3bc15018f98230bd538cac6f6e490beff51f5.tar.gz gdb-51a3bc15018f98230bd538cac6f6e490beff51f5.tar.bz2 |
* listing.c (listing_psize): Treat argument as indicating whether
a height is expected.
-rw-r--r-- | gas/listing.c | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/gas/listing.c b/gas/listing.c index ba0e5fd..f37c987 100644 --- a/gas/listing.c +++ b/gas/listing.c @@ -15,7 +15,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GAS; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Contributed by Steve Chamberlain @@ -988,23 +988,32 @@ listing_list (on) void -listing_psize (ignore) - int ignore; +listing_psize (width_only) + int width_only; { - paper_height = get_absolute_expression (); - - if (paper_height < 0 || paper_height > 1000) + if (! width_only) { - paper_height = 0; - as_warn ("strange paper height, set to no form"); - } - if (*input_line_pointer == ',') - { - input_line_pointer++; - paper_width = get_absolute_expression (); + paper_height = get_absolute_expression (); + + if (paper_height < 0 || paper_height > 1000) + { + paper_height = 0; + as_warn ("strange paper height, set to no form"); + } + + if (*input_line_pointer != ',') + { + demand_empty_rest_of_line (); + return; + } + + ++input_line_pointer; } -} + paper_width = get_absolute_expression (); + + demand_empty_rest_of_line (); +} void listing_title (depth) |