Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com, Dan Morrill <morrildl@nycap.rr.com>
Subject: Re: Function parameter weirdness
Date: Mon, 25 Oct 1999 06:19:13 -0400	[thread overview]
Message-ID: <38142EA1.E15C284@voicenet.com> (raw)
In-Reply-To: Pine.LNX.4.10.9910241616320.23455-100000@obsequious.yi.org

yup, but it sppears that the 'sender' of the parameter has to know what type it is
to get this picture correct. It was the same with postgresql & their JNI like
interface. The caller had all the parameters set to be the longest dataum ( 64bit
long ). The callee, had their parameter lists setup according to the sizeof the
variable used ( ie char, short, int, long ). proper action would only be taken if
both caller/callee passed/received longs in the parameter lists, AND then typecast
their usage.
gat

Dan Morrill wrote:

>
> I even thought that might be the problem, but I assumed explicit casts would
> take care of it.


  reply	other threads:[~1999-10-25 10:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-24  3:03 Function parameter weirdness Dan Morrill
1999-10-24 15:03 ` Uncle George
1999-10-24 20:18   ` Dan Morrill
1999-10-25 10:19     ` Uncle George [this message]
1999-10-28 23:38       ` Richard Henderson
1999-10-29 10:28         ` Uncle George
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox