comparison src/lread.c @ 25555:301ce7f0b398

(Vbyte_boolean_vars): New variable. (defvar_bool, syms_of_lread): Use it.
author Dave Love <fx@gnu.org>
date Mon, 06 Sep 1999 11:02:28 +0000
parents 1fb18e7e3f35
children a5eaace0fa01
comparison
equal deleted inserted replaced
25554:e52ba2d9f6d7 25555:301ce7f0b398
124 static int load_convert_to_unibyte; 124 static int load_convert_to_unibyte;
125 125
126 /* Function to use for loading an Emacs lisp source file (not 126 /* Function to use for loading an Emacs lisp source file (not
127 compiled) instead of readevalloop. */ 127 compiled) instead of readevalloop. */
128 Lisp_Object Vload_source_file_function; 128 Lisp_Object Vload_source_file_function;
129
130 /* List of all DEFVAR_BOOL variables. Used by the byte optimizer. */
131 Lisp_Object Vbyte_boolean_vars;
129 132
130 /* List of descriptors now open for Fload. */ 133 /* List of descriptors now open for Fload. */
131 static Lisp_Object load_descriptor_list; 134 static Lisp_Object load_descriptor_list;
132 135
133 /* File for get_file_char to read from. Use by load. */ 136 /* File for get_file_char to read from. Use by load. */
3036 sym = intern (namestring); 3039 sym = intern (namestring);
3037 val = allocate_misc (); 3040 val = allocate_misc ();
3038 XMISCTYPE (val) = Lisp_Misc_Boolfwd; 3041 XMISCTYPE (val) = Lisp_Misc_Boolfwd;
3039 XBOOLFWD (val)->boolvar = address; 3042 XBOOLFWD (val)->boolvar = address;
3040 XSYMBOL (sym)->value = val; 3043 XSYMBOL (sym)->value = val;
3044 Vbyte_boolean_vars = Fcons (sym, Vbyte_boolean_vars);
3041 } 3045 }
3042 3046
3043 /* Similar but define a variable whose value is the Lisp Object stored 3047 /* Similar but define a variable whose value is the Lisp Object stored
3044 at address. Two versions: with and without gc-marking of the C 3048 at address. Two versions: with and without gc-marking of the C
3045 variable. The nopro version is used when that variable will be 3049 variable. The nopro version is used when that variable will be
3419 3423
3420 DEFVAR_LISP ("preloaded-file-list", &Vpreloaded_file_list, 3424 DEFVAR_LISP ("preloaded-file-list", &Vpreloaded_file_list,
3421 "List of files that were preloaded (when dumping Emacs)."); 3425 "List of files that were preloaded (when dumping Emacs).");
3422 Vpreloaded_file_list = Qnil; 3426 Vpreloaded_file_list = Qnil;
3423 3427
3428 DEFVAR_LISP ("byte-boolean-vars", &Vbyte_boolean_vars,
3429 "List of all DEFVAR_BOOL variables, used by the byte code optimizer.");
3430 Vbyte_boolean_vars = Qnil;
3431
3424 /* Vsource_directory was initialized in init_lread. */ 3432 /* Vsource_directory was initialized in init_lread. */
3425 3433
3426 load_descriptor_list = Qnil; 3434 load_descriptor_list = Qnil;
3427 staticpro (&load_descriptor_list); 3435 staticpro (&load_descriptor_list);
3428 3436