2021-08-03 01:37:06 -04:00
|
|
|
/* region.h -- a region starts at the mark and end at the dot */
|
2013-05-20 01:16:08 -04:00
|
|
|
#ifndef _REGION_H_
|
|
|
|
#define _REGION_H_
|
|
|
|
|
2013-09-23 06:58:31 -04:00
|
|
|
#include "line.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The starting position of a region, and the size of the region in
|
|
|
|
* characters, is kept in a region structure. Used by the region commands.
|
|
|
|
*/
|
2021-08-03 01:37:06 -04:00
|
|
|
typedef struct {
|
|
|
|
line_p r_linep ; /* Origin struct line address. */
|
|
|
|
int r_offset ; /* Origin struct line offset. */
|
|
|
|
long r_size ; /* Length in characters. */
|
|
|
|
} region_t ;
|
2013-05-20 01:16:08 -04:00
|
|
|
|
2021-08-03 01:37:06 -04:00
|
|
|
typedef region_t *region_p ;
|
|
|
|
|
|
|
|
/* Bindable functions */
|
|
|
|
BINDABLE( killregion) ;
|
|
|
|
BINDABLE( copyregion) ;
|
|
|
|
BINDABLE( lowerregion) ;
|
|
|
|
BINDABLE( upperregion) ;
|
|
|
|
|
|
|
|
int getregion( region_p rp) ;
|
2013-05-20 01:16:08 -04:00
|
|
|
|
|
|
|
#endif
|
2021-08-03 01:37:06 -04:00
|
|
|
|
|
|
|
/* end of region.h */
|