mirror of
https://github.com/rfivet/uemacs.git
synced 2025-04-22 02:42:18 -04:00
Move struct region from estruct.t to regiom.h.
This commit is contained in:
parent
7b079662e4
commit
870989f948
4
Makefile
4
Makefile
@ -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 \
|
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 \
|
display.h estruct.h retcode.h edef.h execute.h input.h log.h search.h \
|
||||||
window.h defines.h
|
window.h defines.h
|
||||||
region.o: region.c region.h estruct.h retcode.h buffer.h crypt.h line.h \
|
region.o: region.c region.h line.h utf8.h buffer.h crypt.h estruct.h \
|
||||||
utf8.h edef.h log.h window.h defines.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 \
|
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
|
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 \
|
spawn.o: spawn.c spawn.h defines.h buffer.h crypt.h line.h utf8.h \
|
||||||
|
10
estruct.h
10
estruct.h
@ -385,16 +385,6 @@
|
|||||||
int cexit( int status) ;
|
int cexit( int status) ;
|
||||||
#endif
|
#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
|
* The editor communicates with the display using a high level interface. A
|
||||||
* "TERM" structure holds useful variables, and indirect pointers to routines
|
* "TERM" structure holds useful variables, and indirect pointers to routines
|
||||||
|
12
region.h
12
region.h
@ -1,7 +1,17 @@
|
|||||||
#ifndef _REGION_H_
|
#ifndef _REGION_H_
|
||||||
#define _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 killregion( int f, int n) ;
|
||||||
int copyregion( int f, int n) ;
|
int copyregion( int f, int n) ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user