Bruno Félix Rezende Ribeiro <[email protected]> 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