mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-21 11:10:21 +02:00
Remove the global but not advertised jit_progname variable
* include/lightning/jit_private.h, lib/jit_disasm.c, lib/lightning.c: Remove the global jit_progname variable. It was being only used in jit_init_debug, that is called from init_jit, so, just pass an argument.
This commit is contained in:
parent
0d96d24073
commit
a8c180a926
4 changed files with 11 additions and 7 deletions
|
@ -170,7 +170,6 @@ _patch_register(jit_state_t *jit, jit_node_t *node, jit_node_t *link,
|
|||
/*
|
||||
* Initialization
|
||||
*/
|
||||
const char *jit_progname;
|
||||
#if !defined(__sgi)
|
||||
#define mmap_fd -1
|
||||
#endif
|
||||
|
@ -181,9 +180,8 @@ const char *jit_progname;
|
|||
void
|
||||
init_jit(char *progname)
|
||||
{
|
||||
jit_progname = progname;
|
||||
jit_get_cpu();
|
||||
jit_init_debug();
|
||||
jit_init_debug(progname);
|
||||
jit_init_size();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue