#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