[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [open-cobol-list] CVS update + 2
From: |
Bill Klein |
Subject: |
RE: [open-cobol-list] CVS update + 2 |
Date: |
Tue Feb 8 01:50:30 2005 |
Just out of curiosity, did you look at the ISO 2002
External as "literal"
syntax? It would seem to me that this may be a useful feature for mixed
COBOL / C applications (as COBOL is case-INSENSITIVE - and doesn't allow
special characters such as underscore as the first character) for external
data item names. With the
as "literal"
phrase, one could (I think) provide better support for cross-program (cross
language) external data.
This same phrase can be used on the Program-ID paragraph for non-COBOL type
program names.
***
Also, does your current EXTERNAL support work with code such as
FD Not-External.
01 IS-External External Pic X(100).
This has several different rules than the similar code
FD File-Is-External External.
01 So-is-record-area PIC X(100).
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Roger While
> Sent: Monday, February 07, 2005 11:41 AM
> To: address@hidden
> Subject: [open-cobol-list] CVS update + 2
>
> CVS updated :
> I have redone processing of EXTERNAL items.
> Instead of allocating a character array for these, we
> now allocate a character pointer. At program initialization
> this is set by a call to a new libcob routine "cob_external_addr".
> This looks up the pointer name in a cache and if found returns
> the previously dynamically allocated area. If not, it is allocated
> and cached. Also lengths are checked. eg.
> prog1 - XYZ PIC X(4) EXTERNAL
> prog2 - XYZ PIC X(5) EXTERNAL
>
> prog1 is loaded before prog2.
> This gives a runtime error.
> (Hm, methinks we should check field type as well)
>
> For Cygwin and Mingw, "cobcrun" is linked with the shared library.
>
> On current Cygwin 1.5.12-1, Open Cobol now passes all tests
> and cobcrun is functional :-)
>
> Roger
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive
> Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
>