🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10175

Manx precompiled include files

#10175
From: Steven Collins
Date: Mon, 31 Oct 1988 15:20
32 lines
1990 bytes
I am using Manx 3.6 a which supports pre-compiled include files.
For some reason, When I try to precompile a file containing
somthing like:

struct my_structure structure1= {
                                       a bunch of structure intializers
                                };

and then subsequently link it, I get a global called structure1, but
it is uninitialized. The program works fine if I don't precompile
but just include the file, but that means I'm always recompiling 
this big pile of structure inits. 
I realize that I may be going about the whole problem in a dumb way.
What's the smart way to initialize a bunch of structures that contain
20-30 element arrays of LONGS?  I mostly want to avoid making the
compiler chew on them every debugging cycle.
On another topic, 
I am using a snip of code from the PD PerfectSound to read an
a/d converter on the parallel port. this code (ACK! Pffft!) goes
to the hardware registers directly and works fine under 1.2 but
does not work under 1.3. I realize that this is just what MAMA
warned me about, but...but...but...
I don't have a clue how to do it the right way. I'm pretty sure that
the parallel device won't do the job, because I have to use BUSY, POUT
and SEL as outputs to tell the a/d which channel to sample.
Any suggestions or even references on this stuff would be greatly
appriciated.
                             thanks  steve collins
                             !gryphon!pnet02!collins

UUCP: {ames!elroy, <backbone>}!gryphon!pnet02!collins
INET: collins@pnet02.cts.com
Technical Details
Message-ID: <8327@gryphon.CTS.COM>
Path: arc1-ca.pugleaf.net!utzoo!yunexus!geac!syntron!jtsv16!uunet!lll-winken!lll-tis!ames!elroy!gryphon!pnet02!collins

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!geac!syntron!jtsv16!uunet!lll-winken!lll-tis!ames!elroy!gryphon!pnet02!collins
From: collins@pnet02.cts.com (Steven Collins)
Newsgroups: comp.sys.amiga.tech
Subject: Manx precompiled include files
Message-ID: <8327@gryphon.CTS.COM>
Date: 31 Oct 88 15:20:15 GMT
Article-I.D.: gryphon.8327
Sender: root@gryphon.CTS.COM
Organization: People-Net [pnet02], Redondo Beach, CA.
Lines: 31