From 25b82b3485e9e44d8d6268d3774b0b81d0d501b2 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 19 Jun 2009 14:26:47 +0200 Subject: new function: canonicalize-path. use when autocompiling * libguile/filesys.h: * libguile/filesys.c (scm_canonicalize_path): New function, canonicalize-path. * module/system/base/compile.scm (compiled-file-name): Canonicalize the filename so that compiling e.g. ../foo.scm doesn't compile to ~/.guile-ccache/1.9/../foo.scm. --- libguile/filesys.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libguile/filesys.h') diff --git a/libguile/filesys.h b/libguile/filesys.h index 3e5c83e76..b9a6ca8a6 100644 --- a/libguile/filesys.h +++ b/libguile/filesys.h @@ -65,6 +65,7 @@ SCM_API SCM scm_lstat (SCM str); SCM_API SCM scm_copy_file (SCM oldfile, SCM newfile); SCM_API SCM scm_dirname (SCM filename); SCM_API SCM scm_basename (SCM filename, SCM suffix); +SCM_API SCM scm_canonicalize_path (SCM path); SCM_INTERNAL void scm_init_filesys (void); -- cgit v1.2.3