From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,47957cb8c33729e5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: Brian May Newsgroups: comp.lang.ada Subject: Re: Thick Ada bindings to C Win32 References: Date: Fri, 12 Nov 2004 12:51:29 +1100 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:R0nQVE0bjTjhwoUrccsOwzQj8H4= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: snoopy.microcomaustralia.com.au X-Trace: news.melbourne.pipenetworks.com 1100224271 202.173.153.89 (12 Nov 2004 11:51:11 +1000) X-Complaints-To: abuse@pipenetworks.com X-Abuse-Info: Please forward all headers to enable your complaint to be properly processed. Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-north.connect.com.au!duster.adelaide.on.net!news.melbourne.pipenetworks.com!not-for-mail Xref: g2news1.google.com comp.lang.ada:6162 Date: 2004-11-12T12:51:29+11:00 List-Id: >>>>> "Jeffrey" == Jeffrey Carter writes: Jeffrey> Brian May wrote: >> nNumberOfBytesToWrite => Win32.Dword(Item'Length), -- Win32.Dword => 1 bytes Jeffrey> This conversion is unnecessary. 'Length is universal Jeffrey> integer, and so may be used with any integer type. Hmmm... I was thinking that when I copied it here. I suspect the original author who created this package wasn't exactly sure of what he was doing. I think I have fixed all the bugs though (e.g. previously the get procedure was a function that returned the byte read; this was fine except for when no byte is read, due to timeout, in which case the return value was undefined). -- Brian May