Corrected maximum line check length to avoid multiple error messages on
[gedcom-parse.git] / gedcom.h
index 5fdf0181e6b4f7d26e3e74c31eb1beaf5da6f75a..487a918ab09f16298e5b70f500f049460a2fb763 100644 (file)
--- a/gedcom.h
+++ b/gedcom.h
@@ -1,15 +1,28 @@
+/*  This program 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.                                   *
+
+ (C) 2001 by The Genes Development Team
+ Original author: Peter Verthez (Peter.Verthez@advalvas.be)
+*/
+
 /* $Id$ */
 /* $Name$ */
+
+#ifndef __GEDCOM_H
+#define __GEDCOM_H
 #include <stdarg.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
 
-#define MAXGEDCLEVEL 99
-#define MAXGEDCLINELEN 256
-#define MAXGEDCTAGLEN 31
-#define MAXSTDTAGLENGTH 4
+#define MAXGEDCLEVEL    99
+#define MAXGEDCLINELEN  255
+#define MAXGEDCTAGLEN   31
+#define MAXSTDTAGLEN    4
+#define MAXGEDCPTRLEN   22
 #define GEDCOMTAGOFFSET 257
 
 /* Error handling mechanisms */
@@ -33,3 +46,4 @@ int        gedcom_parse();
 int        gedcom_lex();
 
 extern int line_no;
+#endif /* __GEDCOM_H */