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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.68.96.228 with SMTP id dv4mr6433059pbb.6.1374581134338; Tue, 23 Jul 2013 05:05:34 -0700 (PDT) X-Received: by 10.49.99.65 with SMTP id eo1mr110786qeb.3.1374581134096; Tue, 23 Jul 2013 05:05:34 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!usenet-its.stanford.edu!usenet.stanford.edu!ko2no94017930pbb.0!news-out.google.com!b2ni84830pby.1!nntp.google.com!cb17no86096qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 23 Jul 2013 05:05:33 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=20.132.68.148; posting-account=71T85QoAAACdj14SLDEMBv_3HCGzGIoF NNTP-Posting-Host: 20.132.68.148 References: <54f7f0d4-29ef-4de0-94d8-8320e8df24e2@googlegroups.com> <18255aa3-c926-4e18-a8a6-d19fe6b3ad93@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <14193741-9946-4de8-ab03-38d1b8ee8610@googlegroups.com> Subject: Re: .h header file in ObjectAda 8.2.2 source code? From: dd24fan Injection-Date: Tue, 23 Jul 2013 12:05:34 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:16497 Date: 2013-07-23T05:05:33-07:00 List-Id: > Are those the types of the variables ACCESS_CARD and MODE -- the actual parameters in the Initialize call -- or the types of the corresponding formal parameters of Initialize? > In other words, how is Initialize declared in the .h file? The actual and formal types in C are not necessarily the same, since C converts automatically. For the Ada declaration, you should use the formal types. > Also, what are the values of ACCESS_CARD and MODE in the C program? Yes, the variables are the actual parameters in the call. in the .h the code is like this: . . /* wAccess can be one of the following */ Note:(Just listing the one I need) #define ACCESS_CARD 0 /* card running on W32 OS */ /* wMode parameter can be one of the following */ Note:(Just listing the one I need) #define MODE 0x0001 /* mode */ . . _EXTERN S16BIT _DECL _Initialize(S16BIT DevNum, U16BIT wAccess, U16BIT wMode, U32BIT dwMemWrdSize, U32BIT dwRegAddr, U32BIT dwMemAddr); . . > I assume that these values of ACCESS_CARD and MODE match the values used in the C program, right? Yes, that's right. > You didn't say if this Ada code still hangs. Does it? Yes, the application is still hung up.