aboutsummaryrefslogtreecommitdiff
path: root/gas/listing.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-03-27 23:47:09 +0000
committerAlan Modra <amodra@gmail.com>2000-03-27 23:47:09 +0000
commit224de7a50d1d755bd561f7e669957bff6b9032b2 (patch)
tree26b9d324ffb587f7991a4cca412c29df676b34e6 /gas/listing.c
parentba23e138c9c5214ead72b2599790256e3563591a (diff)
downloadgdb-224de7a50d1d755bd561f7e669957bff6b9032b2.zip
gdb-224de7a50d1d755bd561f7e669957bff6b9032b2.tar.gz
gdb-224de7a50d1d755bd561f7e669957bff6b9032b2.tar.bz2
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 205d628..cecf245 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