zsh-workers
 help / color / mirror / code / Atom feed
* uuid module out-of-tree
@ 2007-10-11 14:44 Clint Adams
  2007-10-11 15:08 ` Clint Adams
  0 siblings, 1 reply; 6+ messages in thread
From: Clint Adams @ 2007-10-11 14:44 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

Attached is my latest stab at an out-of-tree module.

This one is simple and links to libuuid from e2fsprogs, using header
files from zsh 4.3.4.

To use, build and load the module, then run 'zuuid' and it will output a
128-bit universally unique ID (per RFC 4122).

config.h and zsh.mdh are munged from a zsh 4.3.4 build, which is
suboptimal.

uuid.mdh (in the tarball, "hand-crafted") includes zsh.mdh, zsh.mdh
includes system.h, and system.h needs config.h .

One thing to do would be to ship some kind of include file for autoconf
so that the out-of-tree module can set all the necessary defines
(such as HAVE_STDARG_H or HAVE_VARARGS_H) needed by system.h

Alternately, the portions of system.h that require config.h but don't
need to be exported for out-of-tree modules could be split out to
a different header or guarded with #ifdefs.

[-- Attachment #2: libuuid-zsh-0.0.tar.gz --]
[-- Type: application/octet-stream, Size: 258410 bytes --]

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

end of thread, other threads:[~2007-10-12 12:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-11 14:44 uuid module out-of-tree Clint Adams
2007-10-11 15:08 ` Clint Adams
2007-10-11 19:23   ` Peter Stephenson
2007-10-11 20:28     ` Clint Adams
2007-10-12  8:50       ` Peter Stephenson
2007-10-12 12:43         ` Clint Adams

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

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).