public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@glug.org>
To: brolley@redhat.com
Cc: cgen@sources.redhat.com
Subject: Re: [patch][commit] Location of (include file)
Date: Tue, 09 May 2006 22:01:00 -0000	[thread overview]
Message-ID: <E1FdaGN-0002TX-CS@mail.agora-net.com> (raw)
In-Reply-To: <4460DDCA.7080001@redhat.com> (message from Dave Brolley on Tue, 	09 May 2006 14:22:02 -0400)

   From: Dave Brolley <brolley@redhat.com>
   Date: Tue, 09 May 2006 14:22:02 -0400

   + ; Return the directory name of the given file name
   + 
   + (define (dirname s)
   +   (let loop ((i (string-length s)))
   +     (cond ((= i 0) "")
   + 	  ((char=? #\/ (string-ref s (- i 1))) (substring s 0 i))
   + 	  (else (loop (- i 1)))))
   + )
   + 

guile> (version)
"1.4.1.107"
guile> (dirname "/etc/hosts")
"/etc"
guile> dirname
#<primitive-procedure dirname>

thi

  reply	other threads:[~2006-05-09 22:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-09 16:23 Dave Brolley
2006-05-09 18:22 ` Dave Brolley
2006-05-09 22:01   ` Thien-Thi Nguyen [this message]
2006-05-10 16:27     ` Dave Brolley

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=E1FdaGN-0002TX-CS@mail.agora-net.com \
    --to=ttn@glug.org \
    --cc=brolley@redhat.com \
    --cc=cgen@sources.redhat.com \
    /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.
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).