[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] C$LIST-DIRECTORY requires 'USAGE HANDLE'
From: |
Brian Tiffin |
Subject: |
Re: [open-cobol-list] C$LIST-DIRECTORY requires 'USAGE HANDLE' |
Date: |
Sat, 13 Feb 2016 15:55:36 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 |
Joakim Jalap wrote:
> First of all sorry if I have completely misunderstood this, I don't wish
> to waste anybody's time.
>
> But it seems I hit a little snag while looking in to the
> C$LIST-DIRECTORY-request. The API for that function requires a variable
> with USAGE HANDLE, but if I understand correctly GNU Cobol does not yet
> have that. There is a wishlist item #77 about it.
Equivalent of USAGE POINTER
Or should be. If there is more to the structure than that, still no
problem, just build an 01 record with a couple of sub-fields. (When
mapping C struct to COBOL record, adding SYNCHRONIZED (or short as
SYNCH) the compile will take care that COBOL has the same implicit
padding between fields as what C would use).
Cheers,
Brian
>
> Implementing that seems like a much more difficult job than implementing
> C$LIST-DIRECTORY, since I guess it requires changes to the actual
> compiler in a lot of places. So is there any point for a noob like
> myself to have a go at it? I would require quite a lot of help, but I'm
> willing to give it a try :)
>
> Best,
> Joakim
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list