]> arthur.barton.de Git - netatalk.git/blobdiff - bin/psorder/pa.h
Remove bdb env on exit
[netatalk.git] / bin / psorder / pa.h
index d7684e2427fa1623d7e95e999a02c53cee99008a..78399705cb5add296ab1c67c6f16f648ccb22fa1 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * $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
 
@@ -58,9 +63,9 @@ typedef struct pa_buf_t {
        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))))
@@ -68,3 +73,5 @@ extern char *pa_gettok();
 #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 */