mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-04 22:40:25 +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
|
@ -57,12 +57,12 @@ static jit_state_t *disasm_jit;
|
|||
* Implementation
|
||||
*/
|
||||
void
|
||||
jit_init_debug(void)
|
||||
jit_init_debug(char *progname)
|
||||
{
|
||||
#if DISASSEMBLER
|
||||
bfd_init();
|
||||
|
||||
disasm_bfd = bfd_openr(jit_progname, NULL);
|
||||
disasm_bfd = bfd_openr(progname, NULL);
|
||||
assert(disasm_bfd);
|
||||
bfd_check_format(disasm_bfd, bfd_object);
|
||||
bfd_check_format(disasm_bfd, bfd_archive);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue