From: Dave Brolley <brolley@redhat.com>
To: cgen@sources.redhat.com
Subject: Re: [patch][commit] Location of (include file)
Date: Tue, 09 May 2006 18:22:00 -0000 [thread overview]
Message-ID: <4460DDCA.7080001@redhat.com> (raw)
In-Reply-To: <4460C206.9080103@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 71 bytes --]
Forgot to include this part which also goes with this patch....
Dave
[-- Attachment #2: cgen-include2.ChangeLog --]
[-- Type: text/plain, Size: 87 bytes --]
2006-05-09 Dave Brolley <brolley@redhat.com>
* utils.scm (dirname): New function.
[-- Attachment #3: cgen-include2.patch.txt --]
[-- Type: text/plain, Size: 985 bytes --]
Index: cgen/utils.scm
===================================================================
RCS file: /cvs/src/src/cgen/utils.scm,v
retrieving revision 1.18
diff -c -p -r1.18 utils.scm
*** cgen/utils.scm 15 Jun 2005 21:28:19 -0000 1.18
--- cgen/utils.scm 9 May 2006 18:19:54 -0000
***************
*** 1,5 ****
; Generic Utilities.
! ; Copyright (C) 2000-2005 Red Hat, Inc.
; This file is part of CGEN.
; See file COPYING.CGEN for details.
--- 1,5 ----
; Generic Utilities.
! ; Copyright (C) 2000-2005, 2006 Red Hat, Inc.
; This file is part of CGEN.
; See file COPYING.CGEN for details.
***************
*** 155,160 ****
--- 155,169 ----
(->string str))
)
+ ; 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)))))
+ )
+
; Turn STR into lowercase.
(define (string-downcase str)
next prev parent reply other threads:[~2006-05-09 18:22 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 [this message]
2006-05-09 22:01 ` Thien-Thi Nguyen
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=4460DDCA.7080001@redhat.com \
--to=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).