Made the use of sprintf safer.
[gedcom-parse.git] / gedcom.h
1 /*  This program is free software; you can redistribute it and/or modify  *
2  *  it under the terms of the GNU General Public License as published by  *
3  *  the Free Software Foundation; either version 2 of the License, or     *
4  *  (at your option) any later version.                                   *
5
6  (C) 2001 by The Genes Development Team
7  Original author: Peter Verthez (Peter.Verthez@advalvas.be)
8 */
9
10 /* $Id$ */
11 /* $Name$ */
12
13 #ifndef __GEDCOM_H
14 #define __GEDCOM_H
15 #include <stdarg.h>
16 #include <stdlib.h>
17 #include <stdio.h>
18 #include <string.h>
19 #include <errno.h>
20 #ifdef DMALLOC
21 #include <dmalloc.h>
22 #endif
23
24 #define MAXGEDCLEVEL    99
25 #define MAXGEDCLINELEN  255
26 #define MAXGEDCTAGLEN   31
27 #define MAXSTDTAGLEN    4
28 #define MAXGEDCPTRLEN   22
29 #define GEDCOMTAGOFFSET 257
30
31 int        gedcom_error(char* s, ...);
32 int        gedcom_warning(char* s, ...);
33 int        gedcom_message(char* s, ...);
34 int        gedcom_debug_print(char* s, ...);
35
36 int        gedcom_parse();
37 int        gedcom_lex();
38
39 extern int line_no;
40 #endif /* __GEDCOM_H */