1/* Copyright (c) 1993-2002
2 *      Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3 *      Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4 * Copyright (c) 1987 Oliver Laumann
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program (see the file COPYING); if not, write to the
18 * Free Software Foundation, Inc.,
19 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
20 *
21 ****************************************************************
22 * $Id: mark.h,v 1.1.1.1 1993/06/16 23:51:13 jnweiger Exp $ FAU
23 */
24
25struct markdata
26{
27  struct win *md_window;/* pointer to window we are working on */
28  struct acluser *md_user;	/* The user who brought us up */
29  int	cx, cy;		/* cursor Position in WIN coords*/
30  int	x1, y1;		/* first mark in WIN coords */
31  int	second;		/* first mark dropped flag */
32  int	left_mar, right_mar, nonl;
33  int	rep_cnt;	/* number of repeats */
34  int	append_mode;	/* shall we overwrite or append to copybuffer */
35  int	write_buffer;	/* shall we do a KEY_WRITE_EXCHANGE right away? */
36  int	hist_offset;	/* how many lines are on top of the screen */
37  char	isstr[100];	/* string we are searching for */
38  int	isstrl;
39  char	isistr[200];	/* string of chars user has typed */
40  int	isistrl;
41  int	isdir;		/* current search direction */
42  int	isstartpos;	/* position where isearch was started */
43  int	isstartdir;	/* direction when isearch was started */
44};
45
46
47#define W2D(y) ((y) - markdata->hist_offset)
48#define D2W(y) ((y) + markdata->hist_offset)
49
50