From 0530d30a58dd8ba07c9f0b9ab30d11835d3fb7c3 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Fri, 23 Jan 2004 12:52:20 +0000 Subject: * frags.h (frag_room): Declare. * frags.c (frag_room): New function. * doc/internals.texi: Document it. --- gas/frags.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gas/frags.c') diff --git a/gas/frags.c b/gas/frags.c index 1521d4b..83625d7 100644 --- a/gas/frags.c +++ b/gas/frags.c @@ -262,6 +262,14 @@ frag_wane (register fragS *fragP) fragP->fr_var = 0; } +/* Return the number of bytes by which the current frag can be grown. */ + +int +frag_room (void) +{ + return obstack_room (&frchain_now->frch_obstack); +} + /* Make an alignment frag. The size of this frag will be adjusted to force the next frag to have the appropriate alignment. ALIGNMENT is the power of two to which to align. FILL_CHARACTER is the -- cgit v1.1