From a132b94cf933a20d66506586fb0e4356d1761152 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Mon, 27 Jan 2003 15:46:40 +0000 Subject: [PATCH] * edit-widget.h (struct macro): Move definition ... * edit.h: ... here to fix compilation on HP-UX. --- edit/ChangeLog | 5 +++++ edit/edit-widget.h | 5 ----- edit/edit.h | 8 ++++++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/edit/ChangeLog b/edit/ChangeLog index 5823f2c25..69e3a2831 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,8 @@ +2003-01-27 Andrew V. Samoilov + + * edit-widget.h (struct macro): Move definition ... + * edit.h: ... here to fix compilation on HP-UX. + 2002-12-25 Pavel Roskin * editkeys.c: Move key maps to the file scope. Put common keys diff --git a/edit/edit-widget.h b/edit/edit-widget.h index bdd36d957..80894a82f 100644 --- a/edit/edit-widget.h +++ b/edit/edit-widget.h @@ -7,11 +7,6 @@ #define MAX_MACRO_LENGTH 1024 #define N_LINE_CACHES 32 -struct macro { - short command; - short ch; -}; - #define BOOK_MARK_COLOR ((25 << 8) | 5) #define BOOK_MARK_FOUND_COLOR ((26 << 8) | 4) diff --git a/edit/edit.h b/edit/edit.h index 10fc5e097..bb6b6450d 100644 --- a/edit/edit.h +++ b/edit/edit.h @@ -102,10 +102,15 @@ #define MARK_2 700000000 #define KEY_PRESS 1400000000 -/*Tabs spaces: (sofar only HALF_TAB_SIZE is used: */ +/* Tabs spaces: (sofar only HALF_TAB_SIZE is used: */ #define TAB_SIZE option_tab_spacing #define HALF_TAB_SIZE ((int) option_tab_spacing / 2) +struct macro { + short command; + short ch; +}; + struct selection { unsigned char * text; int len; @@ -221,7 +226,6 @@ void edit_left_word_move (WEdit * edit, int s); void edit_right_word_move (WEdit * edit, int s); void edit_get_selection (WEdit * edit); -struct macro; int edit_save_macro_cmd (WEdit * edit, struct macro macro[], int n); int edit_load_macro_cmd (WEdit * edit, struct macro macro[], int *n, int k); void edit_delete_macro_cmd (WEdit * edit);