summaryrefslogtreecommitdiff
path: root/gas/listing.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-03-27 23:47:09 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-03-27 23:47:09 +0000
commitd5d06d1e22d78662b3a5328b2f75207747c04eec (patch)
tree94f334047dbe609d01df54ce50caf10666ebe9da /gas/listing.c
parentddf736534326f7c765ceb793032b47f49babea5f (diff)
downloadbinutils-redhat-d5d06d1e22d78662b3a5328b2f75207747c04eec.tar.gz
Default LISTING_LHS_WIDTH to depend on LISTING_WORD_SIZE so that bytes per
line is 4. Fix tests for LISTING_WORD_SIZE==1.
Diffstat (limited to 'gas/listing.c')
-rw-r--r--gas/listing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/listing.c b/gas/listing.c
index 205d62815d..cecf2450ba 100644
--- a/gas/listing.c
+++ b/gas/listing.c
@@ -109,10 +109,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define LISTING_WORD_SIZE 4
#endif
#ifndef LISTING_LHS_WIDTH
-#define LISTING_LHS_WIDTH 1
+#define LISTING_LHS_WIDTH ((LISTING_WORD_SIZE) > 4 ? 1 : 4 / (LISTING_WORD_SIZE))
#endif
#ifndef LISTING_LHS_WIDTH_SECOND
-#define LISTING_LHS_WIDTH_SECOND 1
+#define LISTING_LHS_WIDTH_SECOND LISTING_LHS_WIDTH
#endif
#ifndef LISTING_RHS_WIDTH
#define LISTING_RHS_WIDTH 100