"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/window.h" between
most-5.1.0.tar.gz and most-5.2.0.tar.gz

About: most is a textfile paging program (supports multiple windows and can scroll left and right).

window.h  (most-5.1.0):window.h  (most-5.2.0)
#ifndef _DAVIS_WINDOW_H_ #ifndef _DAVIS_WINDOW_H_
# define _DAVIS_WINDOW_H_ # define _DAVIS_WINDOW_H_
/* /*
This file is part of MOST. This file is part of MOST.
Copyright (c) 1991, 1999, 2002, 2005-2018, 2019 John E. Davis Copyright (c) 1991, 1999, 2002, 2005-2021, 2022 John E. Davis
This program is free software; you can redistribute it and/or modify it This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) Software Foundation; either version 2 of the License, or (at your option)
any later version. any later version.
This program is distributed in the hope that it will be useful, but WITHOUT This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details. more details.
You should have received a copy of the GNU General Public License along You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc., 675 with this program; if not, write to the Free Software Foundation, Inc., 675
Mass Ave, Cambridge, MA 02139, USA. Mass Ave, Cambridge, MA 02139, USA.
*/ */
# include "buffer.h" # include "buffer.h"
typedef struct _Most_Window_Type typedef struct _Most_Window_Type
{ {
unsigned long top_offset; /* offset of top line of window from bob */ unsigned long top_offset; /* offset of top line of window from bob */
int beg_line; /* line number of top */ MOST_INT beg_line; /* line number of top */
int curs_line; /* line number of curs pos */ MOST_INT curs_line; /* line number of curs pos */
int curs_col; /* column number of curs pos */ MOST_INT curs_col; /* column number of curs pos */
unsigned long curs_offset; /* pos of cursor from bob*/ unsigned long curs_offset; /* pos of cursor from bob*/
int col; /* column offset */ MOST_INT col; /* column offset */
int n_lines; /* number of lines of buffer (mode dependent) */ MOST_INT n_lines; /* number of lines of buffer (mode dependent)
int top; /* screen location of top */ */
int bot; /* screen location of bot */ MOST_INT top; /* screen location of top */
MOST_INT bot; /* screen location of bot */
int display; /* value of MOST_S_OPT for selective display */ int display; /* value of MOST_S_OPT for selective display */
#if 0 #if 0
char *status; /* status line */ char *status; /* status line */
#endif #endif
Most_Buffer_Type *buf; /* buffer structure in window */ Most_Buffer_Type *buf; /* buffer structure in window */
struct _Most_Window_Type *next; /* next window */ struct _Most_Window_Type *next; /* next window */
struct _Most_Window_Type *prev; /* prev window */ struct _Most_Window_Type *prev; /* prev window */
int flags; /* Squeeze lines, etc.. */ int flags; /* Squeeze lines, etc.. */
int lock; /* true if locked */ int lock; /* true if locked */
int dirty_flag; int dirty_flag;
} }
Most_Window_Type; Most_Window_Type;
extern Most_Window_Type *Most_Win; extern Most_Window_Type *Most_Win;
extern Most_Window_Type *Most_Top_Win; extern Most_Window_Type *Most_Top_Win;
extern unsigned long Most_Curs_Offset; extern unsigned long Most_Curs_Offset;
extern int Most_Column; extern MOST_INT Most_Column;
extern int Most_Curs_Row; extern MOST_INT Most_Curs_Row;
extern int Most_Curs_Col; extern MOST_INT Most_Curs_Col;
#define MOST_MINI_BUF_LEN 256 #define MOST_MINI_BUF_LEN 256
extern char Most_Mini_Buf[MOST_MINI_BUF_LEN]; extern char Most_Mini_Buf[MOST_MINI_BUF_LEN];
extern int Most_Selective_Display; extern int Most_Selective_Display;
extern int Most_Restore_Width_To; extern int Most_Restore_Width_To;
extern int Most_Display_Inited; extern int Most_Display_Inited;
extern int most_split_window (void); extern int most_split_window (void);
extern void most_toggle_lock(void); extern void most_toggle_lock(void);
extern void most_update_window(int); /* moves window to have arg lines on the to p */ extern void most_update_window(MOST_INT); /* moves window to have arg lines on t he top */
extern void most_update_status(void); extern void most_update_status(void);
extern void most_redraw_window(void); /* redraws window updating the structur e */ extern void most_redraw_window(void); /* redraws window updating the structur e */
extern void most_window_buffer(void); extern void most_window_buffer(void);
extern void most_init_display(void); extern void most_init_display(void);
extern void most_reset_display(void); extern void most_reset_display(void);
extern void most_other_window(int); extern void most_other_window(int);
extern void most_set_window (Most_Window_Type *); extern void most_set_window (Most_Window_Type *);
extern void most_update_windows(int); extern void most_update_windows(MOST_INT);
extern void most_message(char *, int); extern void most_message(char *, int);
extern void most_put_message(void); extern void most_put_message(void);
extern void most_clear_minibuffer(void); extern void most_clear_minibuffer(void);
extern void most_check_minibuffer(void); extern void most_check_minibuffer(void);
extern void most_free_window_buffer(void); extern void most_free_window_buffer(void);
extern void most_select_minibuffer(void); extern void most_select_minibuffer(void);
extern void most_exit_minibuffer(void); extern void most_exit_minibuffer(void);
extern int most_read_from_minibuffer(char *, char *, char *, unsigned int); extern int most_read_from_minibuffer(char *, char *, char *, unsigned int);
extern void most_redraw_display(void); extern void most_redraw_display(void);
extern void most_one_window(void); extern void most_one_window(void);
 End of changes. 6 change blocks. 
13 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)