unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: "Bruno Félix Rezende Ribeiro" <oitofelix@gnu.org>
To: guile-user@gnu.org
Subject: Fwd: Guile's SCM_DEFINE and Semantic mode
Date: Sun, 02 Nov 2014 20:33:09 -0200	[thread overview]
Message-ID: <5456B125.3050509@gnu.org> (raw)
In-Reply-To: <5454F895.9050005@gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 171 bytes --]

Originally I sent the attached message to the GNU Emacs help mailing
list, but perhaps people on this list could have useful advice for me as
well.  Thanks in advance.

[-- Attachment #1.2: Guile's SCM_DEFINE and Semantic mode.eml --]
[-- Type: message/rfc822, Size: 5590 bytes --]

[-- Attachment #1.2.1.1: Type: text/plain, Size: 913 bytes --]

Hello users of the greatest editor of all times!

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?

-- 
 ,= ,-_-. =.  Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
((_/)o o(\_)) There is no system but GNU;
 `-'(. .)`-'  GNU Linux-Libre is one of its official kernels;
     \_/      All software must be free as in freedom;


[-- Attachment #1.2.1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

       reply	other threads:[~2014-11-02 22:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5454F895.9050005@gnu.org>
2014-11-02 22:33 ` Bruno Félix Rezende Ribeiro [this message]
2014-11-02 23:12   ` Fwd: Guile's SCM_DEFINE and Semantic mode Ludovic Courtès
2014-11-03 22:52     ` Bruno Félix Rezende Ribeiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5456B125.3050509@gnu.org \
    --to=oitofelix@gnu.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).