X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcc65%2Fasmcode.h;h=2db1ecbd469bd134cbbc8977bf0413e634764c63;hb=f7dfcbcc3daf8426770842b5e6ed3634e0d50c82;hp=ab0b73b635fb9fc86dee764e8e52261329c480d6;hpb=77e8bffa81d947d2d726c9ee2efffaf1e945a16d;p=cc65 diff --git a/src/cc65/asmcode.h b/src/cc65/asmcode.h index ab0b73b63..2db1ecbd4 100644 --- a/src/cc65/asmcode.h +++ b/src/cc65/asmcode.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2000 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 2000-2001 Ullrich von Bassewitz */ +/* Wacholderweg 14 */ +/* D-70597 Stuttgart */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -52,7 +52,7 @@ /* Marker for an assembler code position */ -typedef struct Line_* CodeMark; +typedef unsigned CodeMark; @@ -62,21 +62,17 @@ typedef struct Line_* CodeMark; -void AddCodeLine (const char* Format, ...) attribute ((format(printf,1,2))); -/* Add a new line of code to the output */ - -void AddCodeHint (const char* Hint); -/* Add an optimizer hint */ - -void AddEmptyLine (void); -/* Add an empty line for formatting purposes */ - CodeMark GetCodePos (void); /* Get a marker pointing to the current output position */ void RemoveCode (CodeMark M); /* Remove all code after the given code marker */ +void MoveCode (CodeMark Start, CodeMark End, CodeMark Target); +/* Move the code between Start (inclusive) and End (exclusive) to + * (before) Target. + */ + void WriteOutput (FILE* F); /* Write the final output to a file */