From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Wed, 02 Jul 2014 23:33:39 +0200 Message-ID: <87tx6zzbrg.fsf@igel.home> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1404336850 27277 80.91.229.3 (2 Jul 2014 21:34:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2014 21:34:10 +0000 (UTC) Cc: Emacs development discussions To: =?utf-8?Q?Aur=C3=A9lien?= Aptel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 02 23:34:01 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X2SAC-0005Oo-KZ for ged-emacs-devel@m.gmane.org; Wed, 02 Jul 2014 23:34:00 +0200 Original-Received: from localhost ([::1]:56646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2SAC-0002LT-7t for ged-emacs-devel@m.gmane.org; Wed, 02 Jul 2014 17:34:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2SA3-0002H6-IE for emacs-devel@gnu.org; Wed, 02 Jul 2014 17:33:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2S9x-0003t0-AS for emacs-devel@gnu.org; Wed, 02 Jul 2014 17:33:51 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:52077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2S9x-0003sa-4i for emacs-devel@gnu.org; Wed, 02 Jul 2014 17:33:45 -0400 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3h3bKJ6ZMVz3hhxH; Wed, 2 Jul 2014 23:33:40 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3h3bKJ6PJFz7S6SJ; Wed, 2 Jul 2014 23:33:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 3yErrvMmhJX3; Wed, 2 Jul 2014 23:33:40 +0200 (CEST) X-Auth-Info: qZjoy9f9McWpADRgM3PGJ8ZDI/iDhc0zjp4tbokYj+g= Original-Received: from igel.home (host-188-174-220-244.customer.m-online.net [188.174.220.244]) by mail.mnet-online.de (Postfix) with ESMTPA; Wed, 2 Jul 2014 23:33:40 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 103F72C17F3; Wed, 2 Jul 2014 23:33:40 +0200 (CEST) X-Yow: I fill MY industrial waste containers with old copies of the ``WATCHTOWER'' and then add HAWAIIAN PUNCH to the top.. They look NICE in the yard-- In-Reply-To: (=?utf-8?Q?=22Aur=C3=A9lien?= Aptel"'s message of "Wed, 2 Jul 2014 22:54:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172856 Archived-At: Aur=C3=A9lien Aptel 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: =E2=80=98Ffmod=E2=80=99 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 =E2=80=98= DEFUN=E2=80=99 > { .a ## maxargs =3D fnname }, \ > ^ > > So I'm stuck here for now... Any help/feedback welcome :) You need to declare Ffmod with EXFUN. Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."