🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.lisp.x
Article #245

Calling XLISP from C - problem solved

#245
From: Richard Cole
Date: Fri, 25 Jan 1991 13:36
30 lines
1434 bytes
Hi Folks, 
    thanks for the email/posted responses re calling xlisp from C.
In fact I had just completed a version using unnamed streams when I read
the Niels Mayer's recent posting.  All I did was to split the original
main routine in xlisp.c into three routines, an initialise, a tidy up
and exit, and an evaluate an expression routine.  This latter is not a
loop and simply gets its expression to evaluate from a modified version
of xmkstrinput which creates an unnamed stream and stuffs a string into
it, the string being the argument to the routine.  I will have to look at
error handling though as Niels points out.

Thanks again

       /__) .  _  /_   _   _  _ /
      / \  / /_  /  / /_| /  /_/

Richard Cole  <colers@prl.philips.co.uk>

AI Group
Philips Research Laboratories
Cross Oak Lane
Redhill
Surrey
RH1 5HA
UK


-- 
Richard Cole	          |  Philips Research Laboratories
colers@prl.philips.co.uk  |  Cross Oak Lane, Redhill, Surrey, RH1 5HA, UK
Technical Details
Message-ID: <1223@prlhp1.prl.philips.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!spool2.mu.edu!uunet!mcsun!ukc!strath-cs!prlhp1!colers

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!spool2.mu.edu!uunet!mcsun!ukc!strath-cs!prlhp1!colers
From: colers@prlhp1.prl.philips.co.uk (Richard Cole)
Newsgroups: comp.lang.lisp.x
Subject: Calling XLISP from C - problem solved
Message-ID: <1223@prlhp1.prl.philips.co.uk>
Date: 25 Jan 91 13:36:15 GMT
Reply-To: colers@prl.philips.co.uk
Organization: Philips Research Laboratories, Redhill, UK
Lines: 30