[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting source location information
From: |
Rob Browning |
Subject: |
Re: Getting source location information |
Date: |
Wed, 30 Nov 2005 14:35:00 -0800 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Bruce Korb <address@hidden> writes:
> With the final piece being the C code:
>
> SCM proc = scm_c_eval_string ("eval-string-from-file");
This is probably fine, but you might also want to try the
scm_c_module_lookup function(s). They should be a little bit more
efficient:
SCM proc = scm_variable_ref(scm_c_lookup("eval-string-from-file"));
There's also a SCM_VARIABLE_REF macro.
> SCM res = scm_call_3 (proc, str, file, line);
> // Let's forget columns -- we don't have scm_call_4.
Actually it looks like there is a scm_call_4.
> I'll give this a spin and let you know if it works shortly
> (a day or two). Thank you. (I still think adding it to libguile
> would not hurt.)
It could be worth adding something like this to Guile, but I'd need to
think a bit more about what might be most generally useful.
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
- Re: I don't want to maintain this, (continued)
- Re: I don't want to maintain this, Bruce Korb, 2005/11/30
- Re: I don't want to maintain this, Ludovic Courtès, 2005/11/30
- Re: I don't want to maintain this, Bruce Korb, 2005/11/30
- Getting source location information, Ludovic Courtès, 2005/11/30
- Re: Getting source location information, Bruce Korb, 2005/11/30
- Re: Getting source location information, Ludovic Courtès, 2005/11/30
- Re: Getting source location information, Bruce Korb, 2005/11/30
- Re: Getting source location information, Ludovic Courtès, 2005/11/30
- Re: Getting source location information, Rob Browning, 2005/11/30
- Re: Getting source location information, Bruce Korb, 2005/11/30
- Re: Getting source location information,
Rob Browning <=
- Re: Getting source location information, Bruce Korb, 2005/11/30
- Re: Getting source location information, Han-Wen Nienhuys, 2005/11/30
Re: I don't want to maintain this, Kevin Ryde, 2005/11/30
Re: I don't want to maintain this, Kevin Ryde, 2005/11/30