mirror of
https://github.com/rfivet/uemacs.git
synced 2024-12-18 15:26:23 -05:00
Move search and flag related defines out of estruct.
This commit is contained in:
parent
9780b4ce16
commit
015771e7a5
6
edef.h
6
edef.h
@ -98,8 +98,14 @@ extern int scrollcount; /* number of lines to scroll */
|
|||||||
|
|
||||||
extern int currow; /* Cursor row */
|
extern int currow; /* Cursor row */
|
||||||
extern int curcol; /* Cursor column */
|
extern int curcol; /* Cursor column */
|
||||||
|
|
||||||
|
|
||||||
|
#define CFCPCN 0x0001 /* Last command was C-P, C-N */
|
||||||
|
#define CFKILL 0x0002 /* Last command was a kill */
|
||||||
|
|
||||||
extern int thisflag; /* Flags, this command */
|
extern int thisflag; /* Flags, this command */
|
||||||
extern int lastflag; /* Flags, last command */
|
extern int lastflag; /* Flags, last command */
|
||||||
|
|
||||||
extern int curgoal; /* Goal for C-P, C-N */
|
extern int curgoal; /* Goal for C-P, C-N */
|
||||||
extern struct window *curwp; /* Current window */
|
extern struct window *curwp; /* Current window */
|
||||||
extern struct buffer *curbp; /* Current buffer */
|
extern struct buffer *curbp; /* Current buffer */
|
||||||
|
12
estruct.h
12
estruct.h
@ -249,18 +249,6 @@
|
|||||||
|
|
||||||
#include "retcode.h"
|
#include "retcode.h"
|
||||||
|
|
||||||
/*
|
|
||||||
* PTBEG, PTEND, FORWARD, and REVERSE are all toggle-able values for
|
|
||||||
* the scan routines.
|
|
||||||
*/
|
|
||||||
#define PTBEG 0 /* Leave the point at the beginning on search */
|
|
||||||
#define PTEND 1 /* Leave the point at the end on search */
|
|
||||||
#define FORWARD 0 /* forward direction */
|
|
||||||
#define REVERSE 1 /* backwards direction */
|
|
||||||
|
|
||||||
#define CFCPCN 0x0001 /* Last command was C-P, C-N */
|
|
||||||
#define CFKILL 0x0002 /* Last command was a kill */
|
|
||||||
|
|
||||||
#define BELL 0x07 /* a bell character */
|
#define BELL 0x07 /* a bell character */
|
||||||
#define TAB 0x09 /* a tab character */
|
#define TAB 0x09 /* a tab character */
|
||||||
|
|
||||||
|
12
search.h
12
search.h
@ -5,11 +5,21 @@
|
|||||||
|
|
||||||
#include "line.h"
|
#include "line.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* PTBEG, PTEND, FORWARD, and REVERSE are all toggle-able values for
|
||||||
|
* the scan routines.
|
||||||
|
*/
|
||||||
|
#define PTBEG 0 /* Leave the point at the beginning on search */
|
||||||
|
#define PTEND 1 /* Leave the point at the end on search */
|
||||||
|
#define FORWARD 0 /* forward direction */
|
||||||
|
#define REVERSE 1 /* backwards direction */
|
||||||
|
|
||||||
|
int scanner( const char *patrn, int direct, int beg_or_end) ;
|
||||||
|
|
||||||
int forwsearch( int f, int n) ;
|
int forwsearch( int f, int n) ;
|
||||||
int forwhunt( int f, int n) ;
|
int forwhunt( int f, int n) ;
|
||||||
int backsearch( int f, int n) ;
|
int backsearch( int f, int n) ;
|
||||||
int backhunt( int f, int n) ;
|
int backhunt( int f, int n) ;
|
||||||
int scanner( const char *patrn, int direct, int beg_or_end) ;
|
|
||||||
int eq( unsigned char bc, unsigned char pc) ;
|
int eq( unsigned char bc, unsigned char pc) ;
|
||||||
void savematch( void) ;
|
void savematch( void) ;
|
||||||
void rvstrcpy( char *rvstr, char *str) ;
|
void rvstrcpy( char *rvstr, char *str) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user