Re: C and 4gl
Posted in 1995
Quoting gbw@netcom.com... > > I am writing C functions which are to be called from Informix-4gl and I am > using popint(), popquote() etc. to retrieve arguments off the 4gl stack. > > The problem with this is that you need to know the type of each argument in > advance in order to know which popXXX() function to call. > > In my situation it is not OK to just use popquote() with a sufficiently > large buffer with the understanding that 4gl can convert almost any type > into a string. I really do need to know what the types are. > First of all, the largest a string comming off the stack can be is 512 bytes. As for your mail in general... I don't see the problem. If you are writing a C routine for an existing 4GL program, look at the 4GL code and write your C routine accordingly. If you write a C routine for someone else to use at a later time, document the routine so that they can write the 4GL program accordingly. DAS -- Dave Snyder @ Bell Atlantic - Philadelphia, PA WORK: ddx85qr@boots.bell-atl.com HOME: dave@das13.snide.com