add %file-port-name-canonicalization option
authorAndy Wingo <wingo@pobox.com>
Mon, 19 Apr 2010 11:14:43 +0000 (13:14 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 19 Apr 2010 11:14:43 +0000 (13:14 +0200)
commit0157a341577223a981d912c93b568792e9dc67e3
treea6ce122413a6f190a523e6521a68eb355cfce6e1
parent427c73b9ca0f4f29194ba0933b2d03d51275f7c6
add %file-port-name-canonicalization option

* libguile/fports.c (%file-port-name-canonicalization): New global var.
  (fport_canonicalize_filename): New helper. If
  %file-port-name-canonicalization is 'absolute, then run file port
  names through canonicalize_path; if it's 'relative, then canonicalize
  the name, but strip off load paths; otherwise leave the port name
  alone.
  (scm_open_file): Use fport_canonicalize_filename.
  (scm_init_fports): Define %file-port-name-canonicalization.
libguile/fports.c