Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!esosun!cogen!alen From: alen@cogen.UUCP (Alen Shapiro) Newsgroups: comp.sys.mac Subject: Re: X2Fix and Long2Fix in LSC Message-ID: <335@cogen.UUCP> Date: Wed, 2-Sep-87 16:09:56 EDT Article-I.D.: cogen.335 Posted: Wed Sep 2 16:09:56 1987 Date-Received: Sat, 5-Sep-87 07:37:20 EDT References: <3857@cit-vax.Caltech.Edu> Reply-To: alen@cogen.UUCP (Alen Shapiro) Organization: Cogensys, LaJolla, Calf. Lines: 27 In article <3857@cit-vax.Caltech.Edu> sho@tybalt.caltech.edu.UUCP (Sho Kuwamoto) writes: >I am in the process of converting a program to use the fixed point >routines. My version of LSC seems to choke on both X2Fix() and >Long2Fix(). The first bug occured in a line like > > FixMul(X2Fix(5.0), X2Fix(5.0)); > >Which gave a "Pascal argument wrong size" error. After putting in a >line of the form > > Fixed X2Fix(); > >I just get a link error that says X2Fix is undefined. ***deleted*** It would seem that despite the lack of any prototype for X2Fix() in any of my <.h> files (referenced in <#include catalog.h>) LSC does NOT want you to redefine X2Fix(). X2Fix() however does not complain if it is given the address of a variable (not a constant) - these Pascal type args are call by address i.e. var arg. I have no manual page to check this with (my docs are out of date - there is a 2.01 LSC sup. I'm waiting for from Think). so try FixMul(X2Fix(&a), X2Fix(&b)); --alen the Lisa slayer (its a long story)