Support for g++-4.1.
[gf1.git] / configfile.h
blobdd65f530d1062b2fb0d9fa2297387426fe5f3975
1 /*
2 ** $Id$
3 */
4 /*
5 ** Copyright (C) 1998 Kurt Van den Branden
6 **
7 ** This program is free software; you can redistribute it and/or modify
8 ** it under the terms of the GNU General Public License as published by
9 ** the Free Software Foundation; either version 2 of the License, or
10 ** (at your option) any later version.
11 **
12 ** This program is distributed in the hope that it will be useful,
13 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ** GNU General Public License for more details.
16 **
17 ** You should have received a copy of the GNU General Public License
18 ** along with this program; if not, write to the Free Software
19 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef _CONFIGFILE_H_
23 #define _CONFIGFILE_H_ 1
25 #include "linklist.h"
26 #include <malloc.h>
28 #ifndef __cplusplus
29 listheader * readconfigfile (char * fname);
30 int writeconfigfile (char * fname, listheader * configlist);
31 int findconfigvalue (listheader * clist, char * name, char colour, int defval);
32 void clearconfiglist (listheader * configlist);
33 void changeconfigvalue (listheader * clist, char * name, int newval);
34 #else
35 extern "C" listheader * readconfigfile (char * fname);
36 extern "C" int writeconfigfile (char * fname, listheader * configlist);
37 extern "C" int findconfigvalue (listheader * clist, char * name,
38 char colour, int defval);
39 extern "C" void clearconfiglist (listheader * configlist);
40 extern "C"void changeconfigvalue (listheader * clist, char * name, int newval);
41 #endif
43 #endif