]> 4ch.mooo.com Git - 16.git/blobdiff - src/sega.c
Merge remote-tracking branch 'upstream/master'
[16.git] / src / sega.c
old mode 100644 (file)
new mode 100755 (executable)
index 27c74b2..3a271cd
@@ -2,18 +2,30 @@
 #include <stdlib.h>\r
 #include <malloc.h>\r
 \r
-struct list {\r
-    struct list __based(__self) *next;\r
-    int         value;\r
+struct list {
+#ifdef __WATCOMC__\r
+       struct list __based(__self) *next;
+#endif
+#ifdef __BORLANDC__
+       struct list _seg *next;
+#endif\r
+       int         value;\r
 };\r
 \r
 void main(int argc, char *argv[])\r
-  {\r
-    int         i;\r
-    __segment   segu;
+{\r
+       int         i;
+#ifdef __WATCOMC__\r
+       __segment   segu;
        void __based(__self) *pee;\r
-    struct list __based(segu) *head;\r
-    struct list __based(segu) *p;\r
+       struct list __based(segu) *head;\r
+       struct list __based(segu) *p;
+#endif
+#ifdef __BORLANDC__
+       void _seg *pee;\r
+       struct list _seg *head;\r
+       struct list _seg *p;
+#endif\r
 \r
     /* allocate based heap */\r
     segu = _bheapseg( 65536 );\r