🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11310

Re: Pascal calling 'C'

#11310
From: Dave Jones
Date: Mon, 06 Mar 1989 22:55
28 lines
1342 bytes
I haven't actually done it, but a very quick experiment using the -S flag
and inspecting the assembly language seems to indicate that the following
will work:

      procedure curse_proc(i,j: integer); external;

      procedure caller;
      begin
         curse_proc(1,2);
      end;

To access the global variables defined in curses, you will have to write
access-routines in C, because, so far as I know, pc has no concept of
external variables.

WARNING!!  RELIGIOUS THEMES FOLLOW.

The next question is, do you *really* want to use curses?  Wouldn't
Sunview be infinitely superior?  For that matter, do you *really* want to
use Pascal?  Wouldn't C be infinitely superior?

[[ Ya gotta do what ya gotta do...  --wnl ]]

ALL CLEAR.

Anyway, good luck..

	Dave J.
Technical Details
Message-ID: <2320@goofy.megatest.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!sun-spots-request
References: <8902131755.AA04082@altair_4.gemed.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rice!sun-spots-request
From: megatest!djones@decwrl.dec.com (Dave Jones)
Newsgroups: comp.sys.sun
Subject: Re: Pascal calling 'C'
Keywords: Software
Message-ID: <2320@goofy.megatest.UUCP>
Date: 6 Mar 89 22:55:42 GMT
References: <8902131755.AA04082@altair_4.gemed.com>
Sender: usenet@rice.edu
Organization: Megatest Corporation, San Jose, Ca
Lines: 28
Approved: Sun-Spots@rice.edu
Original-Date: 23 Feb 89 02:38:08 GMT
X-Sun-Spots-Digest: Volume 7, Issue 183, message 2 of 17