summaryrefslogtreecommitdiff
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-12-20 17:27:28 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-12-20 17:27:54 -0800
commit3864302c81d29c762c8ae31626bf22df69a8c99f (patch)
tree350e8a63cde1c5ea3609757e0eba091b22f2faf7 /src/keyboard.h
parent4851616b4d2e14cdf970b9029f0d4b00083a08f5 (diff)
downloademacs-3864302c81d29c762c8ae31626bf22df69a8c99f.tar.gz
Port undo fixes to -fno-common
Port recent fix for Bug#21968 to platforms like 'gcc -fno-common'. * src/keyboard.c, src/keyboard.h (point_before_last_command_or_undo) (buffer_before_last_command_or_undo): Declare in keyboard.h, and define in keyboard.c, instead of assuming the traditional Unix relaxed ref-def linkage.
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 6c715a44fba..890d24eb2d9 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -245,16 +245,15 @@ extern KBOARD *current_kboard;
/* Total number of times read_char has returned, modulo UINTMAX_MAX + 1. */
extern uintmax_t num_input_events;
-
/* The location of point immediately before the last command was
executed, or the last time the undo-boundary command added a
boundary.*/
-ptrdiff_t point_before_last_command_or_undo;
+extern ptrdiff_t point_before_last_command_or_undo;
/* The value of current_buffer immediately before the last command was
executed, or the last time the undo-boundary command added a
boundary.*/
-struct buffer *buffer_before_last_command_or_undo;
+extern struct buffer *buffer_before_last_command_or_undo;
extern struct buffer *prev_buffer;