/*
+ * $Id: pa.h,v 1.3 2009-10-13 22:55:36 didg Exp $
+ *
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
*
* pa_cancel( h ) Cancel previous match start.
*/
+#ifndef _PA_H
+#define _PA_H 1
+
#ifndef FILE_H
#include <stdio.h>
-#endif
+#endif /* FILE_H */
#define PA_BUFBLK 1024
char tmp;
} pa_buf_t;
-extern pa_buf_t *pa_init();
-extern char _pa_fixbuf();
-extern char *pa_gettok();
+extern pa_buf_t *pa_init(int fd);
+extern char _pa_fixbuf(pa_buf_t *h);
+extern char *pa_gettok(pa_buf_t *h);
#define pa_getchar(h) (((h)->cur==(h)->end)?(_pa_fixbuf(h)):\
(*(++((h)->cur))))
#define pa_cont(h) (*((h)->cur)=(h)->tmp,(h)->state=PA_MATCHING)
#define pa_cancel(h) ((h)->state=PA_NORMAL)
#define pa_back(h) (--((h)->cur))
+
+#endif /* _PA_H */