aboutsummaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-03-13 11:49:33 +0000
committerNick Clifton <nickc@redhat.com>2003-03-13 11:49:33 +0000
commit0822d0753e797b3e9e69bec809adc0500192bb40 (patch)
treebe3e1c14331e1e1e01cfe584be5976d3e81f4c6a /gas/macro.c
parent053c44e1bfece752ad00adbab7a4ceb57726eb1c (diff)
downloadbinutils-0822d0753e797b3e9e69bec809adc0500192bb40.zip
binutils-0822d0753e797b3e9e69bec809adc0500192bb40.tar.gz
binutils-0822d0753e797b3e9e69bec809adc0500192bb40.tar.bz2
(buffer_and_nest): Store more to sb instead of '\n'.
(get_line_sb): Return end of line character or '\n' if it is zero or non-existent.
Diffstat (limited to 'gas/macro.c')
-rw-r--r--gas/macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/macro.c b/gas/macro.c
index 77dc067..469ca80 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -222,8 +222,8 @@ buffer_and_nest (from, to, ptr, get_line)
}
}
- /* Add a CR to the end and keep running. */
- sb_add_char (ptr, '\n');
+ /* Add the original end-of-line char to the end and keep running. */
+ sb_add_char (ptr, more);
line_start = ptr->len;
more = get_line (ptr);
}