diff lisp/oobr/tree-x/input.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lisp/oobr/tree-x/input.h	Mon Aug 13 08:45:50 2007 +0200
@@ -0,0 +1,37 @@
+/* ----------------------------------------------------------------------------
+ * File    : input.h
+ * Purpose : header file for input.c
+ * ----------------------------------------------------------------------------
+ */
+
+#define TOKEN_MAXSIZ          1023             /* maximum size of token      */
+#define INPUT_BUFSIZ          TOKEN_MAXSIZ + 1 /* allow for terminating null */
+/*
+ *  #define DELIMITER_BEGIN_LIST '{'
+ *  #define DELIMITER_END_LIST   '}'
+ */ 
+
+/* Possible token types in file */
+
+enum { TOKEN_LABEL,
+/*
+ *     TOKEN_BEGIN_LIST,
+ *     TOKEN_END_LIST,
+ */
+       TOKEN_EOF };
+
+
+typedef enum { 
+   ERR_OPENFAIL,
+   ERR_EMPTYFILE,
+   ERR_MEMALLOC,
+   ERR_NOBEGIN,
+   ERR_NOEND,
+   ERR_NOROOT,
+   ERR_MANYROOT,
+   ERR_NONE,
+} ErrCode;
+
+#define NUM_ERRS             7	/* don't count ERR_NONE */
+
+