emacs-devel
[Top][All Lists]
Advanced

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

Re: Dynamic loading progress


From: Andreas Schwab
Subject: Re: Dynamic loading progress
Date: Wed, 02 Jul 2014 23:33:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

Aurélien Aptel <address@hidden> writes:

> It works for very simple stuff so far. If I put a printf in the module
> init function it is called successfully. But as soon as I try to use
> DEFUN, gcc complains:
>
> In file included from fmod.c:17:0:
> fmod.c:30:16: error: ‘Ffmod’ undeclared here (not in a function)
>  DEFUN ("fmod", Ffmod, Sfmod, 2, 2, 0,
>                 ^
> emacs-master/src/lisp.h:2688:26: note: in definition of macro ‘DEFUN’
>         { .a ## maxargs = fnname },     \
>                           ^
>
> So I'm stuck here for now... Any help/feedback welcome :)

You need to declare Ffmod with EXFUN.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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