2 * $Id: comment.h,v 1.6 2009-10-13 22:55:37 didg Exp $
4 * Copyright (c) 1990,1991 Regents of The University of Michigan.
5 * All Rights Reserved. See COPYRIGHT.
9 #define PAPD_COMMENT_H 1
11 #include <sys/cdefs.h>
25 struct papd_comment *cs_comment;
26 struct comstate *cs_prev;
30 extern struct papd_comment *commatch();
31 extern struct comstate *comstate;
32 extern struct papd_comment magics[];
33 extern struct papd_comment queries[];
34 extern struct papd_comment headers[];
37 #define compeek() (comstate==NULL?NULL:(comstate->cs_comment))
38 #define comgetflags() (comstate->cs_flags)
39 #define comsetflags(f) (comstate->cs_flags=(f))
42 * Comment flags. 0-15 reserved for "global" flags, 16-31 for specific
45 #define C_FULL (1<<0) /* or prefix */
46 #define C_CONTINUE (1<<1)
53 * Magic "number" subtypes.
55 #define CM_NOPRINT (1<<16) /* or print */
58 void compush ( struct papd_comment * );
59 int comswitch ( struct papd_comment *, int (*)() );
60 int comcmp ( char *, char *, char *, int );
61 struct papd_comment *commatch ( char *, char *, struct papd_comment * );
62 char *comtoken ( char *, char *, char *, char * );
64 #endif /* PAPD_COMMENT_H */