00001 /* Copyright (c) 1993-2002 00002 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de) 00003 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de) 00004 * Copyright (c) 1987 Oliver Laumann 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2, or (at your option) 00009 * any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program (see the file COPYING); if not, write to the 00018 * Free Software Foundation, Inc., 00019 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 00020 * 00021 **************************************************************** 00022 * $Id: mark.h,v 1.1.1.1 1993/06/16 23:51:13 jnweiger Exp $ FAU 00023 */ 00024 00025 struct markdata 00026 { 00027 struct win *md_window;/* pointer to window we are working on */ 00028 struct acluser *md_user; /* The user who brought us up */ 00029 int cx, cy; /* cursor Position in WIN coords*/ 00030 int x1, y1; /* first mark in WIN coords */ 00031 int second; /* first mark dropped flag */ 00032 int left_mar, right_mar, nonl; 00033 int rep_cnt; /* number of repeats */ 00034 int append_mode; /* shall we overwrite or append to copybuffer */ 00035 int write_buffer; /* shall we do a KEY_WRITE_EXCHANGE right away? */ 00036 int hist_offset; /* how many lines are on top of the screen */ 00037 char isstr[100]; /* string we are searching for */ 00038 int isstrl; 00039 char isistr[200]; /* string of chars user has typed */ 00040 int isistrl; 00041 int isdir; /* current search direction */ 00042 int isstartpos; /* position where isearch was started */ 00043 int isstartdir; /* direction when isearch was started */ 00044 }; 00045 00046 00047 #define W2D(y) ((y) - markdata->hist_offset) 00048 #define D2W(y) ((y) + markdata->hist_offset) 00049
1.4.3