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.
/* Last size recorded for a current buffer which is not a minibuffer. */
static ptrdiff_t last_non_minibuf_size;
-/* Total number of times read_char has returned, modulo UINTMAX_MAX + 1. */
uintmax_t num_input_events;
+ptrdiff_t point_before_last_command_or_undo;
+struct buffer *buffer_before_last_command_or_undo;
/* Value of num_nonmacro_input_events as of last auto save. */
/* 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;