changeset 44486:7b98c268f335

(Vgame_score_directory): New variable. (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
author Colin Walters <walters@gnu.org>
date Wed, 10 Apr 2002 19:15:51 +0000
parents 2fd94b88c732
children 3d2cd2b5a07b
files src/callproc.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Wed Apr 10 19:14:38 2002 +0000
+++ b/src/callproc.c	Wed Apr 10 19:15:51 2002 +0000
@@ -105,7 +105,7 @@
 
 Lisp_Object Vexec_path, Vexec_directory, Vexec_suffixes;
 Lisp_Object Vdata_directory, Vdoc_directory;
-Lisp_Object Vconfigure_info_directory;
+Lisp_Object Vconfigure_info_directory, Vgame_score_directory;
 Lisp_Object Vtemp_file_name_pattern;
 
 Lisp_Object Vshell_file_name;
@@ -1626,6 +1626,15 @@
 includes this.  */);
   Vconfigure_info_directory = build_string (PATH_INFO);
 
+  DEFVAR_LISP ("game-score-directory", &Vgame_score_directory,
+	       doc: /* Directory of score files for games which come with GNU Emacs.
+If this variable is nil, then Emacs is unable to use a shared directory.  */);
+#ifdef HAVE_SHARED_GAME_DIR
+  Vgame_score_directory = build_string(HAVE_SHARED_GAME_DIR);
+#else
+  Vgame_score_directory = Qnil;
+#endif
+
   DEFVAR_LISP ("temp-file-name-pattern", &Vtemp_file_name_pattern,
 	       doc: /* Pattern for making names for temporary files.
 This is used by `call-process-region'.  */);