RE: Infile problem with saolc (?)

From: Michael Gogins (gogins@nyc.pipeline.com)
Date: Mon Aug 30 1999 - 20:31:37 EDT


Some compilers treat stdin and stdout as constants, some do not. For
portability, they should not be treated as constants. Instead there should
be global FILE pointers that are set to stdin and stdout after global static
initialization (that is, after main() or the equivalent in a shared library
has been entered).

The yacc-generated code and the other sfront sources should probably be
patched to fix this.

-----Original Message-----
From: Richard Dobson [mailto:rwd@cableinet.co.uk]
Sent: Monday, August 30, 1999 7:09 PM
To: saol-dev@media.mit.edu
Subject: Infile problem with saolc (?)

I have reached the stage of needing to test my WAV file input routines,
only to hit an unexpected problem; it does not ~seem~ to be related to
my Win32 build, as I have not changed anything other than to add WAV
support.

I used a watered-down version of in.saol (without the flange), and have
hit an error which suggests that the infile properties are not getting
written to the context structure. I get the message:
"Not that many input channels to instrument..."
[saol_interp.c]

reporting channels = 0, whereas I am inputting a stereo file. This also
happens with aif input, which I have not touched. Under the debugger,
the context seems to be missing most information about it.

Is this a known saolc bug/feature, or is it likely to be specific to my
build?

I had hoped to run saolc on Linux, but my attempts to defeat the
objections of gcc (specifically to the line:

FILE *yyin = {stdin}, *yyout = {stdout};

in saol.yy.c, which throws an error about not initializing with a
constant)

have so far been unsuccessful, so I can't run saolc on my Linux system
as a reference. I am an expert neither on gcc nor on make; if anyone has
a magic makefile which is RedHat-6 friendly, I will be very glad to see
it!

Richard Dobson

--
Test your DAW with my Soundcard Attrition Page!
http://wkweb5.cableinet.co.uk/rwd (LU: 23rd August 1999)
CDP: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm (LU: 14th June 1999)



This archive was generated by hypermail 2b29 : Wed May 10 2000 - 12:15:32 EDT