home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gumby!wupost!emory!emory.mathcs.emory.edu
- From: widener!obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler)
- Newsgroups: comp.databases.informix
- Subject: Re: memory allocation under AIX 3.2
- Message-ID: <9473@emory.mathcs.emory.edu>
- Date: 4 Sep 92 15:28:04 GMT
- Sender: walt@mathcs.emory.edu
- Reply-To: widener!obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler)
- Lines: 27
- X-Informix-List-ID: <list.1430>
-
- }Date: Wed, 2 Sep 92 22:38:00 GMT
- }Message-Id: <9209022238.AA05733@obelix.informix.com>
- }Subject: Re: memory allocation under AIX 3.2
- }X-Informix-List-Id: <list.1424>
- }
- }}Date: Tue, 1 Sep 92 18:35:28 +0100
- }}From: Manuel Monteiro <uunet!ssf.pt!mm>
- }}Subject: memory allocation under AIX 3.2
- }}X-Informix-List-Id: <list.1423>
- }}
- }}I had the following problem when upgrading from AIX 3.1 to AIX 3.2.
- }}
- }}In a esql/c program, when you pushquote((char *)str, strlen(str)),
- }}what is really pushed into the stack is the pointer to the string, not
- }}the contents of the string (I didn't know that 'call by reference' was
- }}supported :-).
-
- Time to grovel apologetically. I was working too late at night to
- spot that the function which should be called is retquote, not
- pushquote. If you use the correct function, you get the correct
- results. Your code, Manuel, is simply wrong and should use retquote.
- My answer was wrong in not pointing this out.
-
- My thanks to Dave Cortesi for pointing out the error of my ways.
-
- Yours apologetically,
- Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>
-