On Fri, Jan 15, 1999 at 03:28:07PM -0500, William M. Perry wrote:
Olivier Galibert <galibert(a)pobox.com> writes:
> Nice. Now my question is, is being able to add C functions callable from
> lisp enough for you, or do you need to "plug" into the C code itself one
> way or another?
I'm not 100% sure I understand what you mean by 'plug' into the C code
itself, but here's a stab at a response anyway. :) I assume you mean being
able to call core XEmacs primitives that are already in C?
I'm not sure you can really make a distinction between the two here. When
I did the first very rough cut of the module support, the first module I
wrote was a base64 decoder, which had to deal with all the cruft with MULE,
buffers, GCPRO, throwing errors, etc, etc.
Any non-trivial module would have to do this.
And the new stuff is no different. When you use ellcc, you get all of the
XEmacs internal header files so you have access to everything exactly as
the source was configured (including config.h) and the XEmacs executable
itsel fhas all of its symbols exported, so that modules can call any
non-static function and reference (and even modify if it has to) any
non-static variable. Modules are useless without this.
So I guess the answer to OG's question is a resounding "YES", we will
"plug into C code".
--
J. Kean Johnston | "If equal affection cannot be,
Engineer, SPG | let the more loving one be me" - W.H. Auden
Santa Cruz, CA +----------------------------------------------------------
Tel: 831-427-7569 Fax: 831-429-1887 E-mail: jkj(a)sco.com