comparison 3rdparty/packages/ed/setbuf.c @ 994:bef1844de0dc

The ED editor ported from Minix
author roug
date Sun, 23 Feb 2003 21:11:37 +0000
parents
children
comparison
equal deleted inserted replaced
993:57b5e715a417 994:bef1844de0dc
1 /* setbuf.c */
2 #include <stdio.h>
3 #include "tools.h"
4 #include "ed.h"
5
6 relink(a, x, y, b)
7 LINE *a, *x, *y, *b;
8 {
9 x->l_prev = a;
10 y->l_next = b;
11 }
12
13 clrbuf()
14 {
15 del(1, lastln);
16 }
17
18 set_buf()
19 {
20 relink(&line0, &line0, &line0, &line0);
21 curln = lastln = 0;
22 }
23