🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #18700

Re: X2Fix and Long2Fix in LSC

#18700
From: Alen Shapiro
Date: Wed, 02 Sep 1987 20:09
27 lines
1580 bytes
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)  
Technical Details
Message-ID: <335@cogen.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!esosun!cogen!alen
References: <3857@cit-vax.Caltech.Edu>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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