chiark / gitweb /
This file used to be `parser.h'. It's been renamed because Automake
authormdw <mdw>
Tue, 4 May 1999 16:30:57 +0000 (16:30 +0000)
committermdw <mdw>
Tue, 4 May 1999 16:30:57 +0000 (16:30 +0000)
wants to use `parser.h' as the Yacc-generated header file.  Look at
`parser.h' if you want to see how old versions looked (they're not very
interesting.)

src/parse.h [new file with mode: 0644]

diff --git a/src/parse.h b/src/parse.h
new file mode 100644 (file)
index 0000000..5bac77e
--- /dev/null
@@ -0,0 +1,99 @@
+/* -*-c-*-
+ *
+ * $Id: parse.h,v 1.1 1999/05/04 16:30:57 mdw Exp $
+ *
+ * Parser for `become.conf' files
+ *
+ * (c) 1998 EBI
+ */
+
+/*----- Licensing notice --------------------------------------------------*
+ *
+ * This file is part of `become'
+ *
+ * `Become' is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * `Become' is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with `become'; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+/*----- Revision history --------------------------------------------------*
+ *
+ * $Log: parse.h,v $
+ * Revision 1.1  1999/05/04 16:30:57  mdw
+ * This file used to be `parser.h'.  It's been renamed because Automake
+ * wants to use `parser.h' as the Yacc-generated header file.  Look at
+ * `parser.h' if you want to see how old versions looked (they're not very
+ * interesting.)
+ *
+ *
+ * --- Previous lives ---
+ *
+ * %Log: parser.h,v %
+ * Revision 1.4  1998/04/23  13:26:11  mdw
+ * New `parse' interface to configuration file parser; informs caller
+ * whether parsing encountered any errors.
+ *
+ * Revision 1.3  1998/01/12 16:46:21  mdw
+ * Fix copyright date.
+ *
+ * Revision 1.2  1997/08/04 10:24:24  mdw
+ * Sources placed under CVS control.
+ *
+ * Revision 1.1  1997/07/21  13:47:46  mdw
+ * Initial revision
+ *
+ */
+
+#ifndef PARSER_H
+#define PARSER_H
+
+#ifdef __cplusplus
+  extern "C" {
+#endif
+
+/*----- Required headers --------------------------------------------------*/
+
+#ifndef CLASS_H
+#  include "class.h"
+#endif
+
+#ifndef NAME_H
+#  include "name.h"
+#endif
+
+#include "parser.h"                    /* Token definitions and things */
+
+/*----- Global variables --------------------------------------------------*/
+
+extern int yydebug;                    /* Debugging flag for parser */
+
+/*----- Functions provided ------------------------------------------------*/
+
+/* --- @parse@ --- *
+ *
+ * Arguments:  ---
+ *
+ * Returns:    Zero if it worked, nonzero if it didn't.
+ *
+ * Use:                Parses configuration files.
+ */
+
+extern int parse(void);
+
+/*----- That's all, folks -------------------------------------------------*/
+
+#ifdef __cplusplus
+  }
+#endif
+
+#endif