TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Doug Nazar
from: Darin McBride
date: 1996-06-04 22:06:20
subject: Semaphores (16 & 32)

DM> I wonder why it's in 'watcom/lib386/os2' then... :-/

 DN> lib386/os2/os2286.lib is for 16-bit programs it thunks the 32bit API
 DN> lib386/os2/os2386.lib is for 32-bit programs ti thunks the 16bit API

 DN> they both provide the 16bit & 32bit API's.

 DN> lib286\os2\os2.lib is for 16-bit programs and only contains the 16bit API.

Now *this* explains it.  :-)

DM> A few tests show that because of APIENTRY16 
DM> including the pascal calling
DM> convention, case is immaterial.  Dos16SemClear works as well as
DM> DOS16SEMCLEAR. Due to this, I may just simply toss 
DM> the #define's, and use
DM> them as Dos16 rather than Dos.  Um, maybe not.  :-)

 DN> I guess it's really up to you. I simply copied the way 
 DN> IBM handles the VIO calls .

True.  I like mixed case, personally.  However, I figured out that the
PRCP.INF shows them as Dos* rather than Dos16*, so I'd better do the
conversions in the #defines lest I confuse myself.  :-)


--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 517 628 713/888 800/1
@PATH: 342/5015 61 3615/50 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.