TEACL is a fork of TECOC created for the purpose of describing diffs in a document being collaboratively edited
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1000 B

This function performs the action of a single P command. It must
1. write the edit buffer to the output file.
2. clear the edit buffer
3. read a page into the edit buffer
#include "zport.h" /* define portability identifiers */
#include "tecoc.h" /* define general identifiers */
#include "defext.h" /* define external global variables */
#include "dchars.h" /* define identifiers for characters */
DEFAULT SinglP() /* do a single P command */
if (WrPage(CurOut, EBfBeg, EBfEnd, FFPage) == FAILURE) {
DBGFEX(2,DbgFNm,"FAILURE, WrPage() failed");
return FAILURE;
GapBeg = EBfBeg; /* clear the... */
GapEnd = EBfEnd; /* ...edit buffer */
if (RdPage() == FAILURE) {
DBGFEX(2,DbgFNm,"FAILURE, RdPage() failed");
return FAILURE;
return SUCCESS;