Mercurial > emacs
comparison src/callproc.c @ 46600:736bbb2f8711
(init_callproc): Set up Vshared_game_score_directory.
Set to nil if dir does not exist.
(syms_of_callproc): Init unconditionally and simply.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 21 Jul 2002 20:29:02 +0000 |
parents | 254af4bff749 |
children | 4173dcd87832 |
comparison
equal
deleted
inserted
replaced
46599:44651cb24a24 | 46600:736bbb2f8711 |
---|---|
1578 build_string (dir)); | 1578 build_string (dir)); |
1579 } | 1579 } |
1580 else | 1580 else |
1581 Vtemp_file_name_pattern = build_string ("/tmp/emacsXXXXXX"); | 1581 Vtemp_file_name_pattern = build_string ("/tmp/emacsXXXXXX"); |
1582 #endif | 1582 #endif |
1583 | |
1584 Vshared_game_score_directory = build_string (PATH_GAME); | |
1585 if (NILP (Ffile_directory_p (Vshared_game_score_directory))) | |
1586 Vshared_game_score_directory = Qnil; | |
1583 } | 1587 } |
1584 | 1588 |
1585 void | 1589 void |
1586 set_process_environment () | 1590 set_process_environment () |
1587 { | 1591 { |
1638 Vconfigure_info_directory = build_string (PATH_INFO); | 1642 Vconfigure_info_directory = build_string (PATH_INFO); |
1639 | 1643 |
1640 DEFVAR_LISP ("shared-game-score-directory", &Vshared_game_score_directory, | 1644 DEFVAR_LISP ("shared-game-score-directory", &Vshared_game_score_directory, |
1641 doc: /* Directory of score files for games which come with GNU Emacs. | 1645 doc: /* Directory of score files for games which come with GNU Emacs. |
1642 If this variable is nil, then Emacs is unable to use a shared directory. */); | 1646 If this variable is nil, then Emacs is unable to use a shared directory. */); |
1643 #ifdef HAVE_SHARED_GAME_DIR | 1647 Vshared_game_score_directory = build_string (PATH_GAME); |
1644 Vshared_game_score_directory = build_string(HAVE_SHARED_GAME_DIR); | |
1645 #else | |
1646 Vshared_game_score_directory = Qnil; | |
1647 #endif | |
1648 | 1648 |
1649 DEFVAR_LISP ("temp-file-name-pattern", &Vtemp_file_name_pattern, | 1649 DEFVAR_LISP ("temp-file-name-pattern", &Vtemp_file_name_pattern, |
1650 doc: /* Pattern for making names for temporary files. | 1650 doc: /* Pattern for making names for temporary files. |
1651 This is used by `call-process-region'. */); | 1651 This is used by `call-process-region'. */); |
1652 /* This variable is initialized in init_callproc. */ | 1652 /* This variable is initialized in init_callproc. */ |