Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!rutgers!ames!amdahl!acs
From: acs@amdahl.UUCP (Tony Sumrall)
Newsgroups: comp.sys.amiga
Subject: Re: Beep Bug Fix For Dave Wecker's VT100 Program
Message-ID: <4714@amdahl.UUCP>
Date: Wed, 17-Dec-86 03:48:19 EST
Article-I.D.: amdahl.4714
Posted: Wed Dec 17 03:48:19 1986
Date-Received: Thu, 18-Dec-86 00:06:20 EST
References: <1391@umd5>
Reply-To: acs@amdahl.UUCP (Tony Sumrall)
Organization: Amdahl Corporation, Sunnyvale CA
Lines: 16
Summary: It's the +H option that makes it work for Manx

In article <1391@umd5> carl@umd5.umd.edu.UUCP (Carl Symborski) writes:

> Now the real sweat is why does this fix work?  I mean why does LATTICE need
> this and MANX dosn't.

The problem is that DBW's makefile creates a pre-compiled header file via
+H when he compiles vt100.c.  When the header file is created, MODULE_MAIN
*is* defined so a cc +Iwhatever init.c will cause MODULE_MAIN *and*
MODULE_INIT to be defined.  This will cause sizeof(Audio_AllocMap) to
yield a 4 instead of a zero.  If Manx folks had compiled without +H/+I
they would've seen the problem too.
-- 
Tony Sumrall                    ...!{ihnp4,hplabs,seismo,sun}!amdahl!acs

[ Opinions expressed herein are the author's and should not be construed
  to reflect the views of Amdahl Corp. ]