/*
+ * $Id: comment.h,v 1.6 2009-10-13 22:55:37 didg Exp $
+ *
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
*/
-struct comment {
+#ifndef PAPD_COMMENT_H
+#define PAPD_COMMENT_H 1
+
+#include <sys/cdefs.h>
+
+struct papd_comment {
char *c_begin;
char *c_end;
int (*c_handler)();
#define CH_ERROR -1
struct comstate {
- struct comment *cs_comment;
+ struct papd_comment *cs_comment;
struct comstate *cs_prev;
int cs_flags;
};
-extern struct comment *commatch();
-extern struct comstate *comstate;
-extern struct comment magics[];
-extern struct comment queries[];
-extern struct comment headers[];
-extern char *comcont;
+extern struct papd_comment *commatch();
+extern struct comstate *comstate;
+extern struct papd_comment magics[];
+extern struct papd_comment queries[];
+extern struct papd_comment headers[];
+extern char *comcont;
#define compeek() (comstate==NULL?NULL:(comstate->cs_comment))
#define comgetflags() (comstate->cs_flags)
* Magic "number" subtypes.
*/
#define CM_NOPRINT (1<<16) /* or print */
+
+void compop ( void );
+void compush ( struct papd_comment * );
+int comswitch ( struct papd_comment *, int (*)() );
+int comcmp ( char *, char *, char *, int );
+struct papd_comment *commatch ( char *, char *, struct papd_comment * );
+char *comtoken ( char *, char *, char *, char * );
+
+#endif /* PAPD_COMMENT_H */