]> arthur.barton.de Git - netatalk.git/blob - etc/papd/file.h
Warning fixes.
[netatalk.git] / etc / papd / file.h
1 /*
2  * Copyright (c) 1990,1991 Regents of The University of Michigan.
3  * All Rights Reserved.  See COPYRIGHT.
4  */
5
6 #ifndef PAPD_FILE_H
7 #define PAPD_FILE_H 1
8
9 struct papfile {
10     int                 pf_state;
11     struct state        *pf_xstate;
12     int                 pf_bufsize;
13     int                 pf_datalen;
14     char                *pf_buf;
15     char                *pf_data;
16 };
17
18 #define PF_BOT          (1<<0)
19 #define PF_EOF          (1<<1)
20 #define PF_QUERY        (1<<2)
21
22 #define CONSUME( pf, len )  {   (pf)->pf_data += (len); \
23                                 (pf)->pf_datalen -= (len); \
24                                 if ((pf)->pf_datalen <= 0) { \
25                                     (pf)->pf_data = (pf)->pf_buf; \
26                                     (pf)->pf_datalen = 0; \
27                                 } \
28                             }
29
30 #define PF_MORESPACE    1024
31
32 int markline __P(( struct papfile *, char **, int *, int * ));
33 void morespace __P(( struct papfile *, const char *, int ));
34 void append __P(( struct papfile *, const char *, int ));
35 void spoolerror __P(( struct papfile *, char * ));
36
37 #endif /* PAPD_FILE_H */