Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (22 sloc) 1.016 kb
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
1 /* buffer2.h */
2 /* Copyright 1995 by Steve Kirkendall */
3
4 /* Ideally, these function would have been declared in buffer.h, but since
5 * their arguments are MARKs, they had to be declared after the MARK data type
6 * is declared in mark.h, but mark.h can only be included after buffer.h...
7 * so these functions' declarations had to go into their own separate file.
8 */
9 BEGIN_EXTERNC
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
10 extern ELVBOOL bufread P_((MARK mark, char *rname));
11 extern ELVBOOL bufwrite P_((MARK from, MARK to, char *wname, ELVBOOL force));
12 extern void bufwilldo P_((MARK cursor, ELVBOOL will));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
13 extern long bufundo P_((MARK cursor, long back));
14 extern void bufreplace P_((MARK from, MARK to, CHAR *newp, long newlen));
15 extern void bufpaste P_((MARK dst, MARK from, MARK to));
16 extern CHAR *bufmemory P_((MARK from, MARK to));
17 END_EXTERNC
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
18
19 /* This is used to store information needed to restore MARKs for an "undo" */
20 struct umark_s
21 {
22 MARK mark; /* pointer to POSSIBLY FREED mark */
23 long offset; /* offset of that mark, before a change */
24 };
25
Something went wrong with that request. Please try again.