2021-08-03 05:37:06 +00:00
|
|
|
/* region.h -- a region starts at the mark and end at the dot */
|
2013-05-20 05:16:08 +00:00
|
|
|
#ifndef _REGION_H_
|
|
|
|
#define _REGION_H_
|
|
|
|
|
2013-09-23 10:58:31 +00:00
|
|
|
#include "line.h"
|
|
|
|
|
2021-08-13 03:06:58 +00:00
|
|
|
/* 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.
|
2013-09-23 10:58:31 +00:00
|
|
|
*/
|
2021-08-03 05:37:06 +00:00
|
|
|
typedef struct {
|
2021-08-13 03:06:58 +00:00
|
|
|
line_p r_linep ; /* Origin struct line address. */
|
|
|
|
int r_offset ; /* Origin struct line offset. */
|
|
|
|
long r_size ; /* Length in characters. */
|
2021-08-03 05:37:06 +00:00
|
|
|
} region_t ;
|
2013-05-20 05:16:08 +00:00
|
|
|
|
2021-08-03 05:37:06 +00:00
|
|
|
typedef region_t *region_p ;
|
|
|
|
|
|
|
|
/* Bindable functions */
|
|
|
|
BINDABLE( killregion) ;
|
|
|
|
BINDABLE( copyregion) ;
|
|
|
|
BINDABLE( lowerregion) ;
|
|
|
|
BINDABLE( upperregion) ;
|
|
|
|
|
|
|
|
int getregion( region_p rp) ;
|
2013-05-20 05:16:08 +00:00
|
|
|
|
|
|
|
#endif
|
2021-08-03 05:37:06 +00:00
|
|
|
/* end of region.h */
|