ca76526b11
if it exists.
59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
--- etc/papd/file.c.orig Tue Mar 31 01:41:43 1998
|
|
+++ etc/papd/file.c Fri Nov 19 11:36:22 1999
|
|
@@ -7,10 +7,11 @@
|
|
#include <sys/param.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
-#include <strings.h>
|
|
+#include <string.h>
|
|
|
|
#include "file.h"
|
|
|
|
+int
|
|
markline( start, stop, pf )
|
|
char **start, **stop;
|
|
struct papfile *pf;
|
|
@@ -44,6 +45,7 @@
|
|
}
|
|
}
|
|
|
|
+void
|
|
consumetomark( start, stop, pf )
|
|
char *start, *stop;
|
|
struct papfile *pf;
|
|
@@ -59,10 +61,9 @@
|
|
if ( pf->pf_cur == pf->pf_end ) {
|
|
pf->pf_cur = pf->pf_end = pf->pf_buf;
|
|
}
|
|
-
|
|
- return;
|
|
}
|
|
|
|
+int
|
|
morespace( pf, data, len )
|
|
struct papfile *pf;
|
|
char *data;
|
|
@@ -72,7 +73,7 @@
|
|
int nsize;
|
|
|
|
if ( pf->pf_cur != pf->pf_buf ) { /* pull up */
|
|
- bcopy( pf->pf_cur, pf->pf_buf, PF_BUFSIZ( pf ));
|
|
+ memcpy( pf->pf_buf, pf->pf_cur, PF_BUFSIZ( pf ));
|
|
pf->pf_end = pf->pf_buf + PF_BUFSIZ( pf );
|
|
pf->pf_cur = pf->pf_buf;
|
|
}
|
|
@@ -95,10 +96,12 @@
|
|
pf->pf_buf = nbuf;
|
|
}
|
|
|
|
- bcopy( data, pf->pf_end, len );
|
|
+ memcpy( pf->pf_end, data, len );
|
|
pf->pf_end += len;
|
|
+ return(0);
|
|
}
|
|
|
|
+void
|
|
spoolerror( out, str )
|
|
struct papfile *out;
|
|
char *str;
|