all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam Kandur via "Emacs development discussions." <emacs-devel@gnu.org>
To: emacs-devel@gnu.org
Subject: [PATCH] comment unused args in resize_cb() in src/widget.c
Date: Tue, 7 Sep 2021 19:26:50 +0200 (CEST)	[thread overview]
Message-ID: <Mj0I3Si--3-2@tuta.io> (raw)

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

Hi emacs!
I've been playing with emacs sources and noticed resize_cb () in src/widget.c accept 4 arguments but use only one inside. I'm new in programming (and C), but i decided to comment other args and build it.
Maybe it would be usefull.Adam.

[-- Attachment #2: 0001-comment-unused-args-in-resize_cb-in-src-widget.c.patch --]
[-- Type: text/x-patch, Size: 848 bytes --]

From 8d7edc5bc1fa6078af0e8588fc37bad6e5602a1e Mon Sep 17 00:00:00 2001
From: Adam Kandur <rndd@tuta.io>
Date: Tue, 7 Sep 2021 20:20:00 +0300
Subject: [PATCH] comment unused args in resize_cb() in src/widget.c

---
 src/widget.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/widget.c b/src/widget.c
index dd43fd1c46..6ee0a5c135 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -354,10 +354,10 @@ EmacsFrameInitialize (Widget request, Widget new, ArgList dum1, Cardinal *dum2)
 }
 
 static void
-resize_cb (Widget widget,
-           XtPointer closure,
-           XEvent *event,
-           Boolean *continue_to_dispatch)
+resize_cb (Widget widget)
+           /* XtPointer closure, */
+           /* XEvent *event, */
+           /* Boolean *continue_to_dispatch) */
 {
   EmacsFrameResize (widget);
 }
-- 
2.32.0


             reply	other threads:[~2021-09-07 17:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-07 17:26 Adam Kandur via Emacs development discussions. [this message]
2021-09-07 17:40 ` [PATCH] comment unused args in resize_cb() in src/widget.c Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=Mj0I3Si--3-2@tuta.io \
    --to=emacs-devel@gnu.org \
    --cc=rndd@tuta.io \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.