/*
* This function deletes "n" bytes,
* starting at dot. It understands how do deal
* with end of lines, etc. It returns TRUE if all
* of the characters were deleted, and FALSE if
* they were not (because dot ran into the end of
* the buffer. The "kflag" is TRUE if the text
* should be put in the kill buffer.
*/
ldelete(n, kflag)
{
register WINDOW *wp;
#define dotp (*(LINE **)0x90)
register char *cp1;
#define cp3 (*(char **)0x9a)
#define cp2 (*(char**)0x92)
#define doto (*(int *)0x94)
#define chunk (*(int *)0x96)
#define left (*(int *)0x98)
#define localn (*(int *)0xa2)
localn = n;
while ( localn > 0 )
{ if ( curbp->b_linep == ( dotp = curwp->w_dotp ) )
return ( 0 ); /* Hit end of buffer. */
doto = curwp->w_doto;