rain.c
Jacob Ritorto
jacob.ritorto at gmail.com
Tue Dec 2 13:11:24 CST 2014
setbuf((&__iob[1]),malloc(1024));
if (!(term=getenv("TERM"))) {
On Tue, Dec 2, 2014 at 1:22 PM, Holm Tiffe <holm at freibergnet.de> wrote:
> Jacob Ritorto wrote:
>
> > Given the gloomy weather and speaking of porting, I just got bored and
> > tried to compile /usr/src/games/rain.c from 2.11bsd on opensolaris using
> > gcc3.44. It errored out with rain.c:61: error: parse error before '->'
> > token. What's that all about? There's not even a pointer on that line:
> > 61 float cols, lines;
> >
> > rain.c source here:
> http://www.retro11.de/ouxr/211bsd/usr/src/games/rain.c
> >
>
> Tell us what you see when you use the C-preprocessor only on that file:
>
> gcc -E rain.c |less
>
> and then search in the output for setbuf:
>
>
> float cols, lines;
>
> setbuf(__stdoutp,malloc(1024));
> if (!(term=getenv("TERM"))) {
>
>
> ..like this.
>
> This is FreeBSD here and you can see that setbuf handles a pointer..
>
> Regards,
>
> Holm
> --
> Technik Service u. Handel Tiffe, www.tsht.de, Holm Tiffe,
> Freiberger Straße 42, 09600 Oberschöna, USt-Id: DE253710583
> www.tsht.de, info at tsht.de, Fax +49 3731 74200, Mobil: 0172 8790 741
>
>
More information about the cctech
mailing list