X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fsega.c;h=3a271cd2a94be177795a3fc0e4057fe7c38620f4;hb=515acf3e0e40fd4130a776c39e80f23548fa2319;hp=27c74b2d6a135d3ab7a6bb9fe4b8bf501c59b542;hpb=62f639bbb2ed0d2d1a4340ab9a7d87f537fc4eda;p=16.git diff --git a/src/sega.c b/src/sega.c old mode 100644 new mode 100755 index 27c74b2d..3a271cd2 --- a/src/sega.c +++ b/src/sega.c @@ -2,18 +2,30 @@ #include #include -struct list { - struct list __based(__self) *next; - int value; +struct list { +#ifdef __WATCOMC__ + struct list __based(__self) *next; +#endif +#ifdef __BORLANDC__ + struct list _seg *next; +#endif + int value; }; void main(int argc, char *argv[]) - { - int i; - __segment segu; +{ + int i; +#ifdef __WATCOMC__ + __segment segu; void __based(__self) *pee; - struct list __based(segu) *head; - struct list __based(segu) *p; + struct list __based(segu) *head; + struct list __based(segu) *p; +#endif +#ifdef __BORLANDC__ + void _seg *pee; + struct list _seg *head; + struct list _seg *p; +#endif /* allocate based heap */ segu = _bheapseg( 65536 );