Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!think!ames!sdcsvax!nosc!humu!uhccux!todd
From: todd@uhccux.UUCP (The Perplexed Wiz)
Newsgroups: comp.lang.prolog,comp.sys.ibm.pc
Subject: Re: Arity/Prolog and Microsoft C 5.0?
Message-ID: <1228@uhccux.UUCP>
Date: Thu, 3-Dec-87 17:29:13 EST
Article-I.D.: uhccux.1228
Posted: Thu Dec  3 17:29:13 1987
Date-Received: Tue, 8-Dec-87 01:22:35 EST
References: <1214@uhccux.UUCP>
Reply-To: todd@uhccux.UUCP (The Perplexed Wiz)
Organization: U. of Hawaii, Manoa (Honolulu)
Lines: 40
Keywords: Arity Prolog Microsoft C
Xref: mnetor comp.lang.prolog:478 comp.sys.ibm.pc:10785

To answer my own dumb (read "I didn't read the manuals closely enough!")
questions.

In article <1214@uhccux.UUCP> todd@uhccux.UUCP (The Perplexed Wiz) writes:
>Has anyone successfully linked a Microsoft C (version 5.0) function
>to Arity/Prolog 4.0?  It seems like a lot has changed since Arity

Yes.

>wrote the "Building Arity/Prolog Applications" handbook.  For example,
>the handbook talks about an Arity supplied file called "arityc.h".
>However, all I can find is "apctype.h" on my disks.  It also seems that

There is no 'arityc.h'.  However, it appears that the one reference to that
file is merely a typo that should be 'apctype.h'.

>some of the MSC compile options Arity says I must use to compile the C
>code no longer exists in MSC version 5.0.  Also, the Arity handbook

Uh-uh...I misread the example.  The options exist as advertised.  All I had
to do was switch from

	msc foo /Alfw		(Microsoft C 4.0)
to
	cl /c /Alfw foo.c	(Microsoft C 5.0)

>shows a C function called 'getint_c' being used to translate (I guess?)
>parameters passed from Prolog to the C function.  However, I can't
>figure out where this function is supposed to come from.

It is documented on page 49 of the "Building..." manual.

It also seems that you can ignore the compiler warning 4058 (address of
frame variable taken, DS != SS) that occurs when getint_c is used.

-- 
Todd Ogasawara, U. of Hawaii Faculty Development Program
UUCP:		{ihnp4,uunet,ucbvax,dcdwest}!sdcsvax!nosc!uhccux!todd
ARPA:		uhccux!todd@nosc.MIL		BITNET: todd@uhccux
INTERNET:	todd@uhccux.UHCC.HAWAII.EDU