unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* writing an elisp interface to a c library
@ 2005-08-18 10:44 James Cloos
  2005-08-18 11:29 ` Masatake YAMATO
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: James Cloos @ 2005-08-18 10:44 UTC (permalink / raw)


Can anyone point me to a good example in the emacs codebase of a lisp
api that closely matches an existing external c api?  So far I've only
hacked the elisp part of emacs, not the C....

I presume I'll need to create some read-only lisp integers matching
the names of the various enum values, lisp objects to hold the (opaque)
structs the lib uses and DEFUNs to match the lib's api?  I have read
the primitives section of the elisp manual, but which src files are
the best to study?  

(As I see it, the lib's api is such that it can be mapped to lisp w/o
diverging from its C look and feel.  Following that api very closely,
then, seems to be the Right Thing To Do.  Being able to write all of
the higher-level code using the lib in elisp is enticing.)

I'm primarily targetting the emacs-unicode-2 branch for this project,
if it makes any difference.

Thanks,

-JimC
-- 
James H. Cloos, Jr. <cloos@jhcloos.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-31  0:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-18 10:44 writing an elisp interface to a c library James Cloos
2005-08-18 11:29 ` Masatake YAMATO
2005-08-18 13:16 ` Thien-Thi Nguyen
2005-08-31  0:22 ` James Cloos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).