Added some initial documentation.
[gedcom-parse.git] / gedcom / gedcom_internal.h
index 1250340b07e166134d0e3b674f7ada88ec1a80c6..29925c4f1a0e4cd31fc7a80df8affa647d3d6db3 100644 (file)
@@ -1,25 +1,43 @@
-/*  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.                                   *
+/* General header for the Gedcom parser.
+   Copyright (C) 2001 The Genes Development Team
+   This file is part of the Gedcom parser library.
+   Contributed by Peter Verthez <Peter.Verthez@advalvas.be>, 2001.
 
- (C) 2001 by The Genes Development Team
- Original author: Peter Verthez (Peter.Verthez@advalvas.be)
-*/
+   The Gedcom parser library is free software; you can redistribute it
+   and/or modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The Gedcom parser library 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
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the Gedcom parser library; if not, write to the
+   Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
 
 /* $Id$ */
 /* $Name$ */
 
-#ifndef __GEDCOM_H
-#define __GEDCOM_H
+#ifndef __GEDCOM_INTERNAL_H
+#define __GEDCOM_INTERNAL_H
 #include <stdarg.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
-#ifdef DMALLOC
+#ifdef WITH_DMALLOC
 #include <dmalloc.h>
 #endif
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <libintl.h>
+
+#define _(string) gettext(string)
+#define N_(string) (string)
 
 #define MAXGEDCLEVEL    99
 #define MAXGEDCLINELEN  255
@@ -27,6 +45,7 @@
 #define MAXSTDTAGLEN    4
 #define MAXGEDCPTRLEN   22
 #define GEDCOMTAGOFFSET 257
+#define INTERNAL_ENCODING "UTF8"
 
 int        gedcom_error(char* s, ...);
 int        gedcom_warning(char* s, ...);
@@ -37,4 +56,4 @@ int        gedcom_parse();
 int        gedcom_lex();
 
 extern int line_no;
-#endif /* __GEDCOM_H */
+#endif /* __GEDCOM_INTERNAL_H */