]> git.sur5r.net Git - cc65/blobdiff - src/cc65/codegen.h
Fixed two compiler warnings.
[cc65] / src / cc65 / codegen.h
index 15a6872bce4a64976a776f9841e0681ded30cfe0..a3b6df128f3082ba51a81cbb8d8c34a077d0e384 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2003 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 1998-2009, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -63,6 +63,7 @@
 #define CF_INT         0x0001  /* Operation on ints */
 #define CF_PTR         CF_INT  /* Alias for readability */
 #define CF_LONG                0x0000  /* Operation on longs */
+#define CF_FLOAT        0x0004  /* Operation on a float */
 
 #define CF_NOKEEP      0x0008  /* Value may get destroyed when storing */
 
@@ -84,9 +85,6 @@
 
 
 
-/* Compiler relative stackpointer */
-extern int oursp;
-
 /* Forward */
 struct StrBuf;
 
@@ -121,8 +119,8 @@ void g_usedata (void);
 void g_usebss (void);
 /* Switch to the bss segment */
 
-void g_segname (segment_t Seg, const char* Name);
-/* Set the name of a segment */
+void g_segname (segment_t Seg);
+/* Emit the name of a segment if necessary */
 
 
 
@@ -138,6 +136,9 @@ void g_defcodelabel (unsigned label);
 void g_defdatalabel (unsigned label);
 /* Define a local data label */
 
+void g_aliasdatalabel (unsigned label, unsigned baselabel, long offs);
+/* Define label as a local alias for baselabel+offs */
+
 
 
 /*****************************************************************************/
@@ -155,6 +156,9 @@ void g_defexport (const char* Name, int ZP);
 void g_defimport (const char* Name, int ZP);
 /* Import the given label */
 
+void g_importstartup (void);
+/* Forced import of the startup segment */
+
 void g_importmainargs (void);
 /* Forced import of a special symbol that handles arguments to main */
 
@@ -394,6 +398,9 @@ void g_truejump (unsigned flags, unsigned label);
 void g_falsejump (unsigned flags, unsigned label);
 /* Jump to label if zero flag set */
 
+void g_drop (unsigned Space);
+/* Drop space allocated on the stack */
+
 void g_space (int space);
 /* Create or drop space on the stack */
 
@@ -471,17 +478,6 @@ void g_asmcode (struct StrBuf* B);
 
 
 
-/*****************************************************************************/
-/*                         Inlined known functions                          */
-/*****************************************************************************/
-
-
-
-void g_strlen (unsigned flags, unsigned long val, long offs);
-/* Inline the strlen() function */
-
-
-
 /* End of codegen.h */
 #endif