]> git.sur5r.net Git - cc65/blobdiff - src/cc65/codegen.h
Fixed more E_MCONST issues
[cc65] / src / cc65 / codegen.h
index 93a4aa4b8af3a85872805ba70dff54f2e3003c1b..6bd016a232184247df307f46d5c9b8f66f20811c 100644 (file)
@@ -9,7 +9,7 @@
 /* (C) 1998-2001 llrich von Bassewitz                                        */
 /*               Wacholderweg 14                                             */
 /*               D-70597 Stuttgart                                           */
-/* EMail:        uz@musoftware.de                                            */
+/* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 
 
 
-/*****************************************************************************/
-/*                                Forwards                                  */
-/*****************************************************************************/
-
-
-
-struct CodeSeg;
-struct DataSeg;
+/* cc65 */
+#include "segments.h"
 
 
 
@@ -93,7 +87,7 @@ extern int oursp;
 
 
 /*****************************************************************************/
-/*                           Pre- and postamble                             */
+/*                        Files, pre- and postamble                         */
 /*****************************************************************************/
 
 
@@ -101,6 +95,9 @@ extern int oursp;
 void g_preamble (void);
 /* Generate the assembler code preamble */
 
+void g_fileinfo (const char* Name, unsigned long Size, unsigned long MTime);
+/* If debug info is enabled, place a file info into the source */
+
 
 
 /*****************************************************************************/
@@ -109,12 +106,6 @@ void g_preamble (void);
 
 
 
-void g_pushseg (struct CodeSeg** CS, struct DataSeg** DS, const char* FuncName);
-/* Push the current segments and generate new ones for the given function */
-
-void g_popseg (void);
-/* Restore the old segments */
-
 void g_userodata (void);
 /* Switch to the read only data segment */
 
@@ -124,22 +115,13 @@ void g_usedata (void);
 void g_usebss (void);
 /* Switch to the bss segment */
 
-void g_codename (const char* Name);
-/* Set the name of the CODE segment */
-
-void g_rodataname (const char* Name);
-/* Set the name of the RODATA segment */
-
-void g_dataname (const char* Name);
-/* Set the name of the DATA segment */
-
-void g_bssname (const char* Name);
-/* Set the name of the BSS segment */
+void g_segname (segment_t Seg, const char* Name);
+/* Set the name of a segment */
 
 
 
 /*****************************************************************************/
-/*                     Functions handling local labels                      */
+/*                     Functions handling local labels                      */
 /*****************************************************************************/
 
 
@@ -230,7 +212,7 @@ void g_scale (unsigned flags, long val);
 void g_enter (unsigned flags, unsigned argsize);
 /* Function prologue */
 
-void g_leave (int flags, int val);
+void g_leave (void);
 /* Function epilogue */