1
Fork 0
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:
pcpa 2014-07-27 16:48:52 -03:00
parent 0d96d24073
commit a8c180a926
4 changed files with 11 additions and 7 deletions

View file

@ -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();
}