]> git.sur5r.net Git - cc65/blobdiff - src/ca65/fragment.h
New module strstack
[cc65] / src / ca65 / fragment.h
index 2235f55d644cd0059d18b0b3d8ba678d70324fc4..863b4740c1966d76f9ee37aaa2f4f57c368bff3b 100644 (file)
 
 
 
-/*****************************************************************************/
-/*                                Forwards                                  */
-/*****************************************************************************/
-
-
-
-struct LineInfo;
-
-
-
 /*****************************************************************************/
 /*                             struct Fragment                              */
 /*****************************************************************************/
@@ -69,13 +59,26 @@ struct Fragment {
     unsigned short     Len;            /* Length for this fragment */
     unsigned char      Type;           /* Fragment type */
     union {
-               unsigned char   Data [4];       /* Literal values */
+               unsigned char   Data[4];        /* Literal values */
                ExprNode*       Expr;           /* Expression */
     } V;
 };
 
 
 
+/*****************************************************************************/
+/*                                   Code                                    */
+/*****************************************************************************/
+
+
+
+Fragment* NewFragment (unsigned char Type, unsigned short Len);
+/* Create, initialize and return a new fragment. The fragment will be inserted
+ * into the current segment.
+ */
+
+
+
 /* End of fragment.h */
 #endif