comparison src/fileio.c @ 23569:b1255c3676c7

fileio.c (init_fileio_once): New function.
author Geoff Voelker <voelker@cs.washington.edu>
date Fri, 30 Oct 1998 03:49:09 +0000
parents 8682bf30d667
children 690f81d9c3a2
comparison
equal deleted inserted replaced
23568:dba43a039f3c 23569:b1255c3676c7
5516 } 5516 }
5517 return val; 5517 return val;
5518 } 5518 }
5519 5519
5520 void 5520 void
5521 init_fileio_once ()
5522 {
5523 /* Must be set before any path manipulation is performed. */
5524 XSETFASTINT (Vdirectory_sep_char, '/');
5525 }
5526
5527 void
5521 syms_of_fileio () 5528 syms_of_fileio ()
5522 { 5529 {
5523 Qexpand_file_name = intern ("expand-file-name"); 5530 Qexpand_file_name = intern ("expand-file-name");
5524 Qsubstitute_in_file_name = intern ("substitute-in-file-name"); 5531 Qsubstitute_in_file_name = intern ("substitute-in-file-name");
5525 Qdirectory_file_name = intern ("directory-file-name"); 5532 Qdirectory_file_name = intern ("directory-file-name");
5659 "Directory separator character for built-in functions that return file names.\n\ 5666 "Directory separator character for built-in functions that return file names.\n\
5660 The value should be either ?/ or ?\\ (any other value is treated as ?\\).\n\ 5667 The value should be either ?/ or ?\\ (any other value is treated as ?\\).\n\
5661 This variable affects the built-in functions only on Windows,\n\ 5668 This variable affects the built-in functions only on Windows,\n\
5662 on other platforms, it is initialized so that Lisp code can find out\n\ 5669 on other platforms, it is initialized so that Lisp code can find out\n\
5663 what the normal separator is."); 5670 what the normal separator is.");
5664 XSETFASTINT (Vdirectory_sep_char, '/');
5665 5671
5666 DEFVAR_LISP ("file-name-handler-alist", &Vfile_name_handler_alist, 5672 DEFVAR_LISP ("file-name-handler-alist", &Vfile_name_handler_alist,
5667 "*Alist of elements (REGEXP . HANDLER) for file names handled specially.\n\ 5673 "*Alist of elements (REGEXP . HANDLER) for file names handled specially.\n\
5668 If a file name matches REGEXP, then all I/O on that file is done by calling\n\ 5674 If a file name matches REGEXP, then all I/O on that file is done by calling\n\
5669 HANDLER.\n\ 5675 HANDLER.\n\