diff options
author | Andy Wingo <wingo@pobox.com> | 2009-06-19 14:26:47 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2009-06-19 14:26:47 +0200 |
commit | 25b82b3485e9e44d8d6268d3774b0b81d0d501b2 (patch) | |
tree | f3378fd8b175d43240e6bff9f749826e4da87175 /libguile/filesys.h | |
parent | ffca4c2203d85bc4d9e348d77053d21112e665af (diff) | |
download | guile-25b82b3485e9e44d8d6268d3774b0b81d0d501b2.tar.gz |
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.
Diffstat (limited to 'libguile/filesys.h')
-rw-r--r-- | libguile/filesys.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |