From: alby.gamper@gmail.com
Subject: Re: Ann: Ada-Win32 bindings
Date: Sat, 4 Aug 2018 02:58:09 -0700 (PDT)
Date: 2018-08-04T02:58:09-07:00 [thread overview]
Message-ID: <36106b58-d744-4acc-942b-c62306b16e3e@googlegroups.com> (raw)
In-Reply-To: <pk3jge$1jq8$1@gioia.aioe.org>
On Saturday, August 4, 2018 at 5:10:08 PM UTC+10, Dmitry A. Kazakov wrote:
> On 2018-08-04 02:20, alby.gamper@gmail.com wrote:
>
> > I am pleased to announce the initial release of ADA bindings for the Win32 API
>
> Since Win32Ada is no more public that is a welcome substitute.
>
> Alas, to late for me. I already migrated from Win32Ada to hand-written
> small portions of Win32 API for the projects that used Win32Ada.
>
> > Note: Their is still a bit of work to do in these bindings, specifically
> > 1) Callbacks / function profiles need to be addressed (currently mapped to System.Address)
> > 2) Handle inline functions ??
> > 3) Better handling of Pre-processor macros ??
>
> Yes, some are missing, e.g. MAKELANGID.
>
> 4. A- and W-forms should not be exposed, IMO. E.g. not
> CreateFileMappingA and CreateFileMapping but two overloaded
> CreateFileMapping.
>
> 5. The stuff like LPCSTR should be handled more intelligently. I know it
> is difficult, but input nul-terminated strings should also allow
> char_array (or wide equivalent) argument instead of a raw pointer to char.
>
> 6. NTSTATUS constants
>
> 7. Some Ada convenience calls, e.g.
>
> Conversions FILTETIME <-> Ada.Calendar.Time
>
> procedure Raise_From_LastError
> ( ID : Exception_ID;
> Prefix : String := "";
> Error : Error_Code := GetLastError
> );
>
> Conversions NTSTATUS <-> ERROR_CODE etc.
>
> --
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de
Hi Dmitry
Thanks for your valued response, and I mostly agree with your points, and I will
try and address these points in future release's
Note some items may need to be Hand written, but point 6 and maybe 4 should be
very doable/straight forward. I'm thinking along the lines of using ANTLR to
parse the MACRO/PRE_PROCESSOR definitions/expansions ?
Alex
next prev parent reply other threads:[~2018-08-04 9:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-04 0:20 Ann: Ada-Win32 bindings alby.gamper
2018-08-04 7:10 ` Dmitry A. Kazakov
2018-08-04 9:58 ` alby.gamper [this message]
2018-08-04 11:27 ` Dmitry A. Kazakov
2018-08-06 21:57 ` Randy Brukardt
2018-08-06 22:11 ` Randy Brukardt
2018-08-07 9:45 ` alby.gamper
2018-08-07 14:12 ` Dan'l Miller
2018-08-07 22:14 ` Randy Brukardt
2018-08-07 22:02 ` Randy Brukardt
2018-08-07 15:38 ` Ann: " Aurele Vitali
2018-08-09 12:00 ` alby.gamper
2018-08-09 13:38 ` Aurele Vitali
2018-08-09 21:46 ` Jere
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox