]> git.sur5r.net Git - cc65/blobdiff - src/ca65/objcode.h
Error message for negative array sizes.
[cc65] / src / ca65 / objcode.h
index b4b0d489811aaebff164fdce43c15941863c8018..8387ba5763f7c202e17d1cb09730e9436202de48 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2000 Ullrich von Bassewitz                                       */
+/* (C) 1998-2001 Ullrich 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       */
 
 
 
-#include "../common/segdefs.h"
+/* common */
+#include "segdefs.h"
+
+/* ca65 */
 #include "expr.h"
 
 
 /* Are we in absolute mode or in relocatable mode? */
 extern int     RelocMode;
 
+/* Definitions for predefined segments */
+extern SegDef NullSegDef;
+extern SegDef ZeropageSegDef;
+extern SegDef DataSegDef;
+extern SegDef BssSegDef;
+extern SegDef RODataSegDef;
+extern SegDef CodeSegDef;
+
 
 
 /*****************************************************************************/
@@ -60,26 +71,11 @@ extern int  RelocMode;
 
 
 
-void UseCodeSeg (void);
-/* Use the code segment */
-
-void UseRODataSeg (void);
-/* Use the r/o data segment */
-
-void UseDataSeg (void);
-/* Use the data segment */
+void UseSeg (const SegDef* D);
+/* Use the given segment */
 
-void UseBssSeg (void);
-/* Use the BSS segment */
-
-void UseZeropageSeg (void);
-/* Use the zero page segment */
-
-void UseNullSeg (void);
-/* Use the null segment */
-
-void UseSeg (const char* Name, unsigned SegType);
-/* Use the segment with the given name */
+const SegDef* GetCurrentSeg (void);
+/* Get a pointer to the segment defininition of the current segment */
 
 unsigned GetSegNum (void);
 /* Get the number of the current segment */
@@ -163,6 +159,6 @@ void EmitFill (unsigned long Count);
 /* End of objcode.h */
 
 #endif
-               
+