diff options
| author | Andrea Corallo | 2019-08-11 09:18:45 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:33:58 +0100 |
| commit | e65d2f364cf40891d15009e9764143a45c2d164c (patch) | |
| tree | 749a4356711bf972cab628f82b56dd270987d2eb /src/comp.c | |
| parent | b9c228438d34b15ae2804a563d4d52b5e0de62ad (diff) | |
| download | emacs-e65d2f364cf40891d15009e9764143a45c2d164c.tar.gz emacs-e65d2f364cf40891d15009e9764143a45c2d164c.zip | |
some renaming
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/comp.c b/src/comp.c index 08fa384654c..347a3b351e1 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -145,7 +145,7 @@ typedef struct { | |||
| 145 | Lisp_Object func_blocks; /* blk_name -> gcc_block. */ | 145 | Lisp_Object func_blocks; /* blk_name -> gcc_block. */ |
| 146 | Lisp_Object func_hash; /* f_name -> gcc_func. */ | 146 | Lisp_Object func_hash; /* f_name -> gcc_func. */ |
| 147 | Lisp_Object funcs; /* List of functions defined. */ | 147 | Lisp_Object funcs; /* List of functions defined. */ |
| 148 | Lisp_Object routine_dispatcher; | 148 | Lisp_Object emitter_dispatcher; |
| 149 | } comp_t; | 149 | } comp_t; |
| 150 | 150 | ||
| 151 | static comp_t comp; | 151 | static comp_t comp; |
| @@ -249,7 +249,7 @@ static void | |||
| 249 | register_dispatch (Lisp_Object key, void *func) | 249 | register_dispatch (Lisp_Object key, void *func) |
| 250 | { | 250 | { |
| 251 | Lisp_Object value = make_mint_ptr (func); | 251 | Lisp_Object value = make_mint_ptr (func); |
| 252 | Fputhash (key, value, comp.routine_dispatcher); | 252 | Fputhash (key, value, comp.emitter_dispatcher); |
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | 255 | ||
| @@ -1109,7 +1109,7 @@ emit_limple_call (Lisp_Object args) | |||
| 1109 | Lisp_Object calle_sym = FIRST (args); | 1109 | Lisp_Object calle_sym = FIRST (args); |
| 1110 | char *calle = (char *) SDATA (SYMBOL_NAME (calle_sym)); | 1110 | char *calle = (char *) SDATA (SYMBOL_NAME (calle_sym)); |
| 1111 | Lisp_Object emitter = | 1111 | Lisp_Object emitter = |
| 1112 | Fgethash (calle_sym, comp.routine_dispatcher, Qnil); | 1112 | Fgethash (calle_sym, comp.emitter_dispatcher, Qnil); |
| 1113 | 1113 | ||
| 1114 | if (!NILP (emitter)) | 1114 | if (!NILP (emitter)) |
| 1115 | { | 1115 | { |
| @@ -2056,10 +2056,10 @@ DEFUN ("comp-init-ctxt", Fcomp_init_ctxt, Scomp_init_ctxt, | |||
| 2056 | return Qnil; | 2056 | return Qnil; |
| 2057 | } | 2057 | } |
| 2058 | 2058 | ||
| 2059 | if (NILP (comp.routine_dispatcher)) | 2059 | if (NILP (comp.emitter_dispatcher)) |
| 2060 | { | 2060 | { |
| 2061 | /* Move this into syms_of_comp the day will be dumpable. */ | 2061 | /* Move this into syms_of_comp the day will be dumpable. */ |
| 2062 | comp.routine_dispatcher = CALLN (Fmake_hash_table); | 2062 | comp.emitter_dispatcher = CALLN (Fmake_hash_table); |
| 2063 | register_dispatch (Qset_internal, emit_set_internal); | 2063 | register_dispatch (Qset_internal, emit_set_internal); |
| 2064 | register_dispatch (Qhelper_unbind_n, helper_unbind_n); | 2064 | register_dispatch (Qhelper_unbind_n, helper_unbind_n); |
| 2065 | } | 2065 | } |
| @@ -2172,7 +2172,8 @@ DEFUN ("comp-init-ctxt", Fcomp_init_ctxt, Scomp_init_ctxt, | |||
| 2172 | sizeof (void *), | 2172 | sizeof (void *), |
| 2173 | false); | 2173 | false); |
| 2174 | 2174 | ||
| 2175 | comp.func_hash = CALLN (Fmake_hash_table, QCtest, Qequal); | 2175 | if (NILP (comp.func_hash)) |
| 2176 | comp.func_hash = CALLN (Fmake_hash_table, QCtest, Qequal); | ||
| 2176 | 2177 | ||
| 2177 | /* Define data structures. */ | 2178 | /* Define data structures. */ |
| 2178 | 2179 | ||
| @@ -2442,13 +2443,12 @@ syms_of_comp (void) | |||
| 2442 | defsubr (&Scomp_release_ctxt); | 2443 | defsubr (&Scomp_release_ctxt); |
| 2443 | defsubr (&Scomp_add_func_to_ctxt); | 2444 | defsubr (&Scomp_add_func_to_ctxt); |
| 2444 | defsubr (&Scomp_compile_and_load_ctxt); | 2445 | defsubr (&Scomp_compile_and_load_ctxt); |
| 2446 | |||
| 2445 | staticpro (&comp.func_hash); | 2447 | staticpro (&comp.func_hash); |
| 2446 | staticpro (&comp.func_blocks); | ||
| 2447 | comp.func_hash = Qnil; | 2448 | comp.func_hash = Qnil; |
| 2448 | comp.routine_dispatcher = Qnil; | 2449 | staticpro (&comp.func_blocks); |
| 2449 | 2450 | staticpro (&comp.emitter_dispatcher); | |
| 2450 | staticpro (&comp.routine_dispatcher); | 2451 | comp.emitter_dispatcher = Qnil; |
| 2451 | comp.routine_dispatcher = Qnil; | ||
| 2452 | 2452 | ||
| 2453 | DEFVAR_INT ("comp-speed", comp_speed, | 2453 | DEFVAR_INT ("comp-speed", comp_speed, |
| 2454 | doc: /* From 0 to 3. */); | 2454 | doc: /* From 0 to 3. */); |