This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] guile.c: Replace call to scm_init_guile with scm_with_guile.
- From: Doug Evans <xdje42 at gmail dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 10 Mar 2014 21:10:15 -0700
- Subject: Re: [PATCH] guile.c: Replace call to scm_init_guile with scm_with_guile.
- Authentication-results: sourceware.org; auth=none
- References: <wrby51ajnae dot fsf at sspiff dot org>
On Sun, Feb 16, 2014 at 9:55 PM, Doug Evans <xdje42@gmail.com> wrote:
> Hi.
>
> scm_with_guile is a better way to initialize Guile than scm_init_guile
> (scm_init_guile is less portable according to the docs),
> plus it's good to do all the initialization from within a call to
> scm_with_guile.
>
> This patch does that.
> Regression tested on amd64-linux with guile 2.0.9.
>
> 2014-02-17 Doug Evans <xdje42@gmail.com>
>
> * guile/guile.c (call_initialize_gdb_module): New function.
> (initialize_guile): Replace call to scm_init_guile with call to
> scm_with_guile.
Committed.