device/lib/Makefile.in: bad fix, reverted to 1.43
[fw/sdcc] / src / port.h
index cc747fd73d49177a2c4228fefe69f99f7e7424ca..5bb49e82de4a793bd769774eae319448cf152312 100644 (file)
@@ -14,6 +14,7 @@
 #define TARGET_ID_AVR      4
 #define TARGET_ID_DS390    5
 #define TARGET_ID_PIC      6
+#define TARGET_ID_PIC16           7
 #define TARGET_ID_XA51     9
 #define TARGET_ID_DS400           10
 
@@ -27,6 +28,7 @@
 #define TARGET_IS_DS390 (port->id==TARGET_ID_DS390)
 #define TARGET_IS_DS400 (port->id==TARGET_ID_DS400)
 #define TARGET_IS_PIC   (port->id==TARGET_ID_PIC)
+#define TARGET_IS_PIC16        (port->id==TARGET_ID_PIC16)
 #define TARGET_IS_XA51 (port->id==TARGET_ID_XA51)
 
 #define MAX_BUILTIN_ARGS       16
@@ -55,6 +57,8 @@ typedef struct
 
     struct
       {
+        /** Pointer to glue function */
+        void (*do_glue)(void);
        /** TRUE if all types of glue functions should be inserted into
            the file that also defines main.
            We dont want this in cases like the z80 where the startup
@@ -147,6 +151,13 @@ typedef struct
       }
     mem;
 
+    struct
+      {
+         void (*genExtraAreaDeclaration)(FILE *, bool);
+         void (*genExtraAreaLinkOptions)(FILE *);
+      }
+    extraAreas;
+      
     /* stack related information */
     struct
       {
@@ -280,6 +291,9 @@ extern PORT ds390_port;
 #if !OPT_DISABLE_PIC
 extern PORT pic_port;
 #endif
+#if !OPT_DISABLE_PIC16
+extern PORT pic16_port;
+#endif
 #if !OPT_DISABLE_TININative
 extern PORT tininative_port;
 #endif