2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
3 * All Rights Reserved. See COPYRIGHT.
7 #define PAPD_COMMENT_H 1
23 struct papd_comment *cs_comment;
24 struct comstate *cs_prev;
28 extern struct papd_comment *commatch();
29 extern struct comstate *comstate;
30 extern struct papd_comment magics[];
31 extern struct papd_comment queries[];
32 extern struct papd_comment headers[];
35 #define compeek() (comstate==NULL?NULL:(comstate->cs_comment))
36 #define comgetflags() (comstate->cs_flags)
37 #define comsetflags(f) (comstate->cs_flags=(f))
40 * Comment flags. 0-15 reserved for "global" flags, 16-31 for specific
43 #define C_FULL (1<<0) /* or prefix */
44 #define C_CONTINUE (1<<1)
51 * Magic "number" subtypes.
53 #define CM_NOPRINT (1<<16) /* or print */
55 void compop __P(( void ));
56 void compush __P(( struct papd_comment * ));
57 int comswitch __P(( struct papd_comment *, int (*)() ));
58 int comcmp __P(( char *, char *, char *, int ));
59 struct papd_comment *commatch __P(( char *, char *, struct papd_comment * ));
60 char *comtoken __P(( char *, char *, char *, char * ));
62 #endif /* PAPD_COMMENT_H */