view 3rdparty/packages/ed/setbuf.c @ 1942:b41df77588b0

printer is now scbbp sio is now scbbt All references changed in various files
author boisy
date Sat, 26 Nov 2005 22:51:50 +0000
parents bef1844de0dc
children
line wrap: on
line source

/*      setbuf.c        */
#include <stdio.h>
#include "tools.h"
#include "ed.h"

relink(a, x, y, b)
LINE *a, *x, *y, *b;
{
  x->l_prev = a;
  y->l_next = b;
}

clrbuf()
{
  del(1, lastln);
}

set_buf()
{
  relink(&line0, &line0, &line0, &line0);
  curln = lastln = 0;
}