good questions
The library that I want to call is "just C", pretty clean, standard
POSIX. My development platform is PC Linux. The package gets built and
tested on other platforms as often as I can drive that, notably FreeBSD.
I don't have access to USS for dev/test. (But if anyone is offering ...)
There's no specific need to interrogate nor to set Rexx variables. The
goal is a function which takes arguments and returns a string. The Rexx
function has sub-functions named by the first argument. It works a lot
like Rexx/Sockets (return string is the RC followed by either an error
string or by desired results, if any).
Interfacing with Regina is pretty easy. Regina's header in this case is
named "rexxsaa.h", so presumably adheres to SAA norms. I confess I have
NOT TRIED linking against ooRexx. Thought I should first ask others who
have tread that road.
Thanks!
-- R; <><
On 4/25/23 08:37, Jeremy Nicoll wrote:
On Tue, 25 Apr 2023, at 13:29, Rick Troth wrote:
hello
I have a project where I want to call C from Rexx.
I've done this with Regina several times. Can someone tell me how, or
point to doco, or (best) lend a hand, calling C from ooRexx?
Do you have ooREXX running on a mainframe?
Which OS?
If z/OS ... Is the C program in LINKLIST? or a load lib? What
calling (register) convention is it written with - like a TSO CP,
or a job-step program, or what?
Are you expecting the C code to access contents of rexx
variables "by magic" or are you going to pass copies of
their values, or their addresses in storage, or what?
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN