zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <clint@zsh.org>
To: zsh-workers@sunsite.dk
Subject: uuid module out-of-tree
Date: Thu, 11 Oct 2007 10:44:28 -0400	[thread overview]
Message-ID: <20071011144428.GA2134@scowler.net> (raw)

[-- 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 --]

             reply	other threads:[~2007-10-11 14:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-11 14:44 Clint Adams [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071011144428.GA2134@scowler.net \
    --to=clint@zsh.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).