From: uz Date: Mon, 6 Jul 2009 20:33:06 +0000 (+0000) Subject: Add some code that avoids outputing a forward label in the same line as a X-Git-Tag: V2.13.0rc1~284 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5b0323771a6e36844e665ab41efec203f8093087;p=cc65 Add some code that avoids outputing a forward label in the same line as a normal label. It works but looks bad. git-svn-id: svn://svn.cc65.org/cc65/trunk@3971 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/da65/output.c b/src/da65/output.c index 3b4ffe47f..851157405 100644 --- a/src/da65/output.c +++ b/src/da65/output.c @@ -183,6 +183,12 @@ void DefForward (const char* Name, const char* Comment, unsigned Offs) */ { if (Pass == PassCount) { + /* Flush existing output if necessary */ + if (Col > 1) { + LineFeed (); + } + + /* Output the forward definition */ Output ("%s", Name); Indent (ACol); if (UseHexOffs) {