Move struct region from estruct.t to regiom.h.

This commit is contained in:
Renaud 2013-09-23 18:58:31 +08:00
parent 7b079662e4
commit 870989f948
3 changed files with 13 additions and 13 deletions

View File

@ -178,8 +178,8 @@ posix.o: posix.c termio.h
random.o: random.c random.h basic.h buffer.h crypt.h line.h utf8.h \
display.h estruct.h retcode.h edef.h execute.h input.h log.h search.h \
window.h defines.h
region.o: region.c region.h estruct.h retcode.h buffer.h crypt.h line.h \
utf8.h edef.h log.h window.h defines.h
region.o: region.c region.h line.h utf8.h buffer.h crypt.h estruct.h \
retcode.h edef.h log.h window.h defines.h
search.o: search.c search.h estruct.h retcode.h basic.h buffer.h crypt.h \
line.h utf8.h display.h edef.h input.h log.h window.h defines.h
spawn.o: spawn.c spawn.h defines.h buffer.h crypt.h line.h utf8.h \

View File

@ -385,16 +385,6 @@
int cexit( int status) ;
#endif
/*
* 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.
*/
struct region {
struct line *r_linep; /* Origin struct line address. */
int r_offset; /* Origin struct line offset. */
long r_size; /* Length in characters. */
};
/*
* The editor communicates with the display using a high level interface. A
* "TERM" structure holds useful variables, and indirect pointers to routines

View File

@ -1,7 +1,17 @@
#ifndef _REGION_H_
#define _REGION_H_
#include "estruct.h"
#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.
*/
struct region {
struct line *r_linep; /* Origin struct line address. */
int r_offset; /* Origin struct line offset. */
long r_size; /* Length in characters. */
};
int killregion( int f, int n) ;
int copyregion( int f, int n) ;