|
From: | Simon Sobisch |
Subject: | Re: [Bug-GnuCOBOL] Bug-GnuCOBOL Digest, Vol 17, Issue 5 |
Date: | Wed, 04 Jul 2018 20:19:21 +0200 |
User-agent: | K-9 Mail for Android |
Hi Marty, I'll answer bottom up. The source doesn't say END FUNCTION, it misses the I. Concerning the dynamic module load, I guess that using COB_PRE_LOAD=update will work and that also renaming it to UPDATE.so will make it work without pre loading. To integrate the function in the compiler: add it to reserved.c, depending on special parameters checking with a new token (in this case also change parser.y) or a generic existing one. Just follow the existing ones as sample. Then add the runtime function in common.c, including it as extern in common.h. Ideally you've added test cases to tests/testsuite.src before, if not do so now. Last steps: adding ChangeLog entries and upload the beauty to the patch tracker (currently at SourceForge) or send it to the list. Am 4. Juli 2018 19:12:47 MESZ schrieb Marty Heyman <address@hidden>: Thanks Pat, I’m working with Michail on this. Embedding the function definition in the source works fine. At least on my raspbian system, cobcrun doesn’t seem to recognize the dynamically loadable module (update.so) in the same directory as the test file and reports it can’t find the function. |
[Prev in Thread] | Current Thread | [Next in Thread] |