all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexander Kuleshov <kuleshovmail@gmail.com>
To: 27615@debbugs.gnu.org
Subject: bug#27615: [PATCH] define internal_border_parts array only if HAVE_WINDOW_SYSTEM enabled
Date: Sat, 8 Jul 2017 16:47:41 +0600	[thread overview]
Message-ID: <CANCZXo5CkaEesoV2iV3mO8O1opi-jvLL5h26LXVWaPJfm6weDg@mail.gmail.com> (raw)

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

Hello,

the internal_border_parts[] array is used only in a case when HAVE_WINDOW_SYSTEM
is enabled.

Here is attached a patch that defines this array only for this case.

Thank you.

[-- Attachment #2: 0001-define-internal_border_parts-array-only-if-HAVE_WIND.patch --]
[-- Type: text/x-patch, Size: 1273 bytes --]

From 3cee08240cb3779e5e93562d498ddb9eaf097662 Mon Sep 17 00:00:00 2001
From: Alexander Kuleshov <kuleshovmail@gmail.com>
Date: Sat, 8 Jul 2017 16:38:11 +0600
Subject: [PATCH] define internal_border_parts array only if HAVE_WINDOW_SYSTEM
 enabled

  * src/keyboard.c: (internal_border_parts): define this one only in
a case when HAVE_WINDOW_SYSTEM is enabled.
---
 src/keyboard.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/keyboard.c b/src/keyboard.c
index 9e90899..804af85 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -5127,6 +5127,7 @@ static short const scroll_bar_parts[] = {
   SYMBOL_INDEX (Qrightmost), SYMBOL_INDEX (Qend_scroll), SYMBOL_INDEX (Qratio)
 };
 
+#ifdef HAVE_WINDOW_SYSTEM
 /* An array of symbol indexes of internal border parts, indexed by an enum
    internal_border_part value.  Note that Qnil corresponds to
    internal_border_part_none and should not appear in Lisp events.  */
@@ -5137,6 +5138,7 @@ static short const internal_border_parts[] = {
   SYMBOL_INDEX (Qbottom_right_corner), SYMBOL_INDEX (Qbottom_edge),
   SYMBOL_INDEX (Qbottom_left_corner)
 };
+#endif
 
 /* A vector, indexed by button number, giving the down-going location
    of currently depressed buttons, both scroll bar and non-scroll bar.
-- 
2.9.0.GIT


             reply	other threads:[~2017-07-08 10:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-08 10:47 Alexander Kuleshov [this message]
2017-07-09  7:44 ` bug#27615: [PATCH] define internal_border_parts array only if HAVE_WINDOW_SYSTEM enabled martin rudalics
2017-07-09  7:46 ` martin rudalics

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=CANCZXo5CkaEesoV2iV3mO8O1opi-jvLL5h26LXVWaPJfm6weDg@mail.gmail.com \
    --to=kuleshovmail@gmail.com \
    --cc=27615@debbugs.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.
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.