guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: Guile's SCM_DEFINE and Semantic mode


From: Ludovic Courtès
Subject: Re: Fwd: Guile's SCM_DEFINE and Semantic mode
Date: Mon, 03 Nov 2014 00:12:50 +0100
User-agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux)

Bruno Félix Rezende Ribeiro <address@hidden> skribis:

> I'm working on a libguile-based project.  All function definitions that
> are exported from C code to the Guile interpreter are define like this:
> (meta-variables between '<' and '>')
>
> SCM_DEFINE (<c-name>, <scheme-name>,
>             <mandatory-args-count>, <optional-args-count>, <rest-bool>,
>             <argument-list>,
>           <documentation-string>)
> {
>  <function-body>
> }
>
> At C preprocessing time the 'SCM_DEFINE (...)' function header gets
> expanded to:
>
> SCM
> <c-name> <c-argument-list>
>
> Unfortunately Semantic doesn't recognize it as a function definition.
> How can I make Semantic recognize it as such?

I don’t know about Semantic, but I know that GNU GLOBAL doesn’t have any
problems dealing with SCM_DEFINE’d functions.

So perhaps the simplest way is to use xgtags.el or similar, or to tell
Semantic to use GLOBAL as its back-end (info "(semantic) SymRef")?

Ludo’.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]