On 25.04.2023 14:48, Rick Troth wrote:
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.
ooRexx comes with samples for C and C++ that demonstrate how easy it is to create external functions
(and external method routines) for it.
Linux: /usr/local/share/ooRexx/samples/api
Windows: C:\Program Files\ooRexx\samples\api
If you get the "portable" version of ooRexx (a plain zip archive with a readme.txt file) from
<https://sourceforge.net/projects/oorexx/files/oorexx/5.1.0beta/portable/> for your operating
system, download the full package which includes the samples in its zip archive, so it would be a
simple unzip to get at the samples, documentation etc.
The documentation for the C/C++ API is in the PDF book named "rexxapi.pdf" (the full ooRexx
reference can be found in the PDF book named "rexxref.pdf").
---rony
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN