GNU bug report logs - #24932
[PATCH] Update module function signature

Previous Next

Package: emacs;

Reported by: Syohei YOSHIDA <syohex <at> gmail.com>

Date: Sun, 13 Nov 2016 02:09:02 UTC

Severity: minor

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24932 in the body.
You can then email your comments to 24932 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#24932; Package emacs. (Sun, 13 Nov 2016 02:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Syohei YOSHIDA <syohex <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 13 Nov 2016 02:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Syohei YOSHIDA <syohex <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Syohei YOSHIDA <syohex <at> gmail.com>
Subject: [PATCH] Update module function signature
Date: Sun, 13 Nov 2016 11:06:18 +0900
Second argument of module function is ptrdiff_t, not int.
This fixes a compile warning.
---
 modules/modhelp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/modhelp.py b/modules/modhelp.py
index 5d8f89b..445cb3b 100755
--- a/modules/modhelp.py
+++ b/modules/modhelp.py
@@ -154,7 +154,7 @@ def main():
 int plugin_is_GPL_compatible;
 
 static emacs_value
-${c_func} (emacs_env *env, int nargs, emacs_value args[], void *data)
+${c_func} (emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data)
 {
   return env->intern (env, "t");
 }
-- 
2.9.3





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24932; Package emacs. (Sun, 13 Nov 2016 21:03:01 GMT) Full text and rfc822 format available.

Message #8 received at 24932 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Colascione <dancol <at> dancol.org>
To: Syohei YOSHIDA <syohex <at> gmail.com>, 24932 <at> debbugs.gnu.org
Subject: Re: bug#24932: [PATCH] Update module function signature
Date: Sun, 13 Nov 2016 13:02:31 -0800
On 11/12/2016 06:06 PM, Syohei YOSHIDA wrote:
> Second argument of module function is ptrdiff_t, not int.
> This fixes a compile warning.

That's an ABI break. We should find another way to fix the warning or 
add a new function.

> ---
>  modules/modhelp.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules/modhelp.py b/modules/modhelp.py
> index 5d8f89b..445cb3b 100755
> --- a/modules/modhelp.py
> +++ b/modules/modhelp.py
> @@ -154,7 +154,7 @@ def main():
>  int plugin_is_GPL_compatible;
>
>  static emacs_value
> -${c_func} (emacs_env *env, int nargs, emacs_value args[], void *data)
> +${c_func} (emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data)
>  {
>    return env->intern (env, "t");
>  }
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#24932; Package emacs. (Sun, 13 Nov 2016 21:06:01 GMT) Full text and rfc822 format available.

Message #11 received at 24932 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Colascione <dancol <at> dancol.org>
To: Syohei YOSHIDA <syohex <at> gmail.com>, 24932 <at> debbugs.gnu.org
Subject: Re: bug#24932: [PATCH] Update module function signature
Date: Sun, 13 Nov 2016 13:05:49 -0800
On 11/13/2016 01:02 PM, Daniel Colascione wrote:
> On 11/12/2016 06:06 PM, Syohei YOSHIDA wrote:
>> Second argument of module function is ptrdiff_t, not int.
>> This fixes a compile warning.
>
> That's an ABI break. We should find another way to fix the warning or
> add a new function.

Err, never mind. The patch is fine. I just read it too fast.

>
>> ---
>>  modules/modhelp.py | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/modules/modhelp.py b/modules/modhelp.py
>> index 5d8f89b..445cb3b 100755
>> --- a/modules/modhelp.py
>> +++ b/modules/modhelp.py
>> @@ -154,7 +154,7 @@ def main():
>>  int plugin_is_GPL_compatible;
>>
>>  static emacs_value
>> -${c_func} (emacs_env *env, int nargs, emacs_value args[], void *data)
>> +${c_func} (emacs_env *env, ptrdiff_t nargs, emacs_value args[], void
>> *data)
>>  {
>>    return env->intern (env, "t");
>>  }
>>
>
>
>
>




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 28 Nov 2016 15:52:02 GMT) Full text and rfc822 format available.

Notification sent to Syohei YOSHIDA <syohex <at> gmail.com>:
bug acknowledged by developer. (Mon, 28 Nov 2016 15:52:02 GMT) Full text and rfc822 format available.

Message #16 received at 24932-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Syohei YOSHIDA <syohex <at> gmail.com>
Cc: 24932-done <at> debbugs.gnu.org
Subject: Re: [PATCH] Update module function signature
Date: Mon, 28 Nov 2016 07:51:04 -0800
Thanks for reporting the problem. I installed the fix and am closing the 
bug report.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 27 Dec 2016 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 226 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.