/* -*-c-*-
*
- * $Id: anag.h,v 1.4 2003/11/29 23:38:37 mdw Exp $
+ * $Id$
*
* External definitions for Anag
*
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: anag.h,v $
- * Revision 1.4 2003/11/29 23:38:37 mdw
- * Debianization.
- *
- * Revision 1.3 2003/09/15 02:48:55 mdw
- * Monoalphabetic match filter.
- *
- * Revision 1.2 2002/08/11 12:58:09 mdw
- * Added support for regular expression matching, if supported by the C
- * library.
- *
- * Revision 1.1 2001/02/04 17:14:42 mdw
- * Initial checkin
- *
- */
-
#ifndef ANAG_H
#define ANAG_H
extern node *mono(const char *const */*av*/);
extern node *regexp(const char *const */*av*/);
extern node *pcrenode(const char *const */*av*/);
+extern node *longest(const char *const */*av*/);
+extern node *shortest(const char *const */*av*/);
+
+/*----- Exit codes --------------------------------------------------------*/
+
+#define EX_OK 0
+#define EX_NONE 1
+#define EX_FAIL 127
/*----- Error reporting ---------------------------------------------------*/
extern int dstr_putline(dstr */*d*/, FILE */*fp*/);
+/*----- Infrastructure ----------------------------------------------------*/
+
+/* --- @atend_register@ --- *
+ *
+ * Arguments: @int (*func)(void *)@ = function to call
+ * @void *p@ = handle to pass to it
+ *
+ * Returns: ---
+ *
+ * Use: Adds a function to the list of things to do at the end of the
+ * program. The function should return nonzero if it produced
+ * any output.
+ */
+
+extern void atend_register(int (*/*func*/)(void */*p*/), void */*p*/);
+
/*----- That's all, folks -------------------------------------------------*/
#ifdef __cplusplus