Hi Paul,
Paul Smith skribis:
> I can figure this all out myself if necessary, but I was wondering if
> anyone knows of an autoconfiscated package where this is already done I
> could look at and grab ideas from.
I don’t have any example at hand, but I think it should be relatively
easy to do.
Hi Paul,
Paul Smith skribis:
> I've been experimenting with using Guile as an extension language to GNU
> make (optionally built-in of course).
Sounds like great news! :-)
> What I've done so far:
>
> * Modified GNU make's main to be invoked from scm_boot_guile(), if
> Guile is
() Paul Smith
() Sat, 17 Sep 2011 20:10:16 -0400
char *str = scm_to_locale_string (scm_object_to_string (scm_c_eval_string
(argv[0]),
SCM_UNDEFINED));
char *s = str;
unsigned int l = strlen (s);
if (s[0] == '"' && s[l-1
On Sun, 2011-09-18 at 14:10 +0200, Ludovic Courts wrote:
> Ideally, when Guile support is enabled, GNU make would be turned into
> a Guile extension (a shared library and its companion Scheme module
> that loads it with ‘load-extension’) that would expose make’s
> functionality.
I'm not sure I'm i
On Sun, 2011-09-18 at 14:10 +0200, Ludovic Courts wrote:
> There are two problems I can think of here:
>
> - string unquoting is actually more complex than this (recall that
> ‘object->string’ merely calls ‘write’):
> - ‘scm_c_eval_string’ can return any Scheme objects, some of which
>
On Sun, 2011-09-18 at 17:30 +0200, Thien-Thi Nguyen wrote:
> The double-quote stripping is kind of hacky. I would create a port
> and ‘display’ the result of ‘scm_c_eval_string’ to it.
Thanks for the hints. I've reworked my code to implement a generic "SCM
to make string" function; currently it
Hi Paul!
Paul Smith skribis:
> On Sun, 2011-09-18 at 14:10 +0200, Ludovic Courts wrote:
>> There are two problems I can think of here:
>>
>> - string unquoting is actually more complex than this (recall that
>> ‘object->string’ merely calls ‘write’):
>> - ‘scm_c_eval_string’ can return
Hi!
Paul Smith skribis:
> On Sun, 2011-09-18 at 14:10 +0200, Ludovic Courts wrote:
>> Ideally, when Guile support is enabled, GNU make would be turned into
>> a Guile extension (a shared library and its companion Scheme module
>> that loads it with ‘load-extension’) that would expose make’s
>> f
() Paul Smith
() Sun, 18 Sep 2011 15:28:00 -0400
[new impl]
That's better than what I had before, but I still have some concerns.
For example, what if a Guile call wanted to return a list? I can use
display as above, but the list will be enclosed in parentheses, which is
not how