comp.lang.ada
 help / color / mirror / Atom feed
From: dd24fan <d3v3r4@gmail.com>
Subject: Re: .h header file in ObjectAda 8.2.2 source code?
Date: Tue, 23 Jul 2013 05:05:33 -0700 (PDT)
Date: 2013-07-23T05:05:33-07:00	[thread overview]
Message-ID: <14193741-9946-4de8-ab03-38d1b8ee8610@googlegroups.com> (raw)
In-Reply-To: <b55hhqFm1tiU1@mid.individual.net>

> 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.

  reply	other threads:[~2013-07-23 12:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-19 11:47 .h header file in ObjectAda 8.2.2 source code? dd24fan
2013-07-19 13:02 ` Niklas Holsti
2013-07-19 15:36 ` dd24fan
2013-07-20  5:41   ` Randy Brukardt
2013-07-22 19:06     ` dd24fan
2013-07-22 19:08     ` dd24fan
2013-07-22 20:04       ` Niklas Holsti
2013-07-23 12:05         ` dd24fan [this message]
2013-07-22 19:50     ` dd24fan
2013-07-20  8:07   ` Niklas Holsti
2013-08-01 15:03     ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox