On Mon, Oct 18, 2021 at 7:10 AM Rony G. Flatscher <rony.flatsc...@wu.ac.at>
wrote:

> Sleeping over the current structure of the API samples these are the
> things that are in place currently:
>
>    1. samples/Makefile.am (???)
>    2. samples/native.api/call.example/ ... for all systems,
>    CMakeLists.txt, Makefile.linux, Makefile.windows, Makefile.am (???)
>    3. samples/unix/api/callrexx/ ...  callrexx1.cpp, callrexx2.c,
>    CMakeLists.txt, no Makefiles
>    4. samples/unix/api/wpipe{1..3}/... rexxasp{1..3}.c,
>    aspitest{1..3}.rex, CMakeLists.txt, no Makefiles
>    5. samples/windows/ ... api/ ... misc/ ... ole/ ... oodialog/
>    ...rexutils/
>    6. samples/windows/api/ ... callrxnt/ ... callrxwn/ ... rexxexit/
>    7. samples/windows/api/wpipe{1..3}/ .. rexxapi{1..3}.c,
>    apitest{1..3}.rex, CMakeLists.rex, nmake make files named rexxapi{1..3}.mak
>
> Suggested changes:
>
> 1. It seems that the "Makefile.am" files are left-overs and can be safely
> deleted?
>
> 2. create a new structure for the installed api samples, such that the
> installation on all systems would look like:
>
> samples/api
> samples/api/classic/ ... having all samples in their own directories that
> exemplify the SAA API interface, rexxapi.pdf, "Chapter 2. Classic Rexx
> Application Programming Interfaces"
> samples/api/c++/ ... having all samples in their own directories that
> exemplify the ooRexx native API interface, rexxapi.pdf, "Chapter 1. Rexx
> C++ Application Programming Interfaces"
>
> 3. rename "wpipe{1..3}" directory names to "rexxapi{1..3]" to match the
> names of the programs therein for all systems ("wpipe" is confusing)
>
> 4. Unix, rename "rexxsp{1..}.c" to "rexxapi{1..3}.c" and
> "aspitest{1..3].rex" to "apitest{1..3].rex"  to match the Windows names
> ("asp" does not make any sense in this context); sample change done with
> "wpipe1"
>
> 5. Add Makefiles where there are missing, such that interested programmers
> can try compiling and running the samples on their own (e.g. missing for
> the Unix wpipe samples
>
> 6. Add "readme.txt" files in each api directory to briefly describe its
> content
>
> In addition I propose to add the c++ samples of the 2015 RexxLA
> presentation of how to create external routines and external methods, cf.
> <https://www.rexxla.info/events/2015/schedule.html>
> <https://www.rexxla.info/events/2015/schedule.html>, the talk with the
> code samples entitled "How to Develop a Native Library in C++ for ooRexx in
> a Nutshell".
>
I have no problems with any of this, but make sure that any new samples
conform with conventions used by other samples (i.e., appropriate project
copyright statements and no additional personal author information). And if
possible, do as much of this at one time so we're not buried under a bunch
of checkin emails for piece-meal changes.

Rick


> The easier it becomes for programmers to understand how the APIs work the
> better.
>
> Any comments?
>
> ---rony
>
>
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to