"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "bogom-1.9.2/conf.h" of archive bogom-1.9.2.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 /* $Id: conf.h,v 1.4 2007/02/08 15:35:02 reidrac Exp reidrac $ */
    2 
    3 /*
    4 * conf.h, configuration reader and parser include
    5 * Copyright (C) 2004-2007 Juan J. Martinez <jjm*at*usebox*dot*net>
    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 Version 2 as
    9 * published by the Free Software Foundation.
   10 *
   11 * This program is distributed in the hope that it will be useful,
   12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14 * GNU General Public License for more details.
   15 *
   16 * You should have received a copy of the GNU General Public License
   17 * along with this program; if not, write to the Free Software
   18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   19 *
   20 */
   21 
   22 #ifndef __BOGOM_CONF__
   23 #define __BOGOM_CONF__
   24 
   25 #define REQ_NONE	0
   26 #define REQ_BOOL	1
   27 #define REQ_STRING	2
   28 #define REQ_QSTRING	3
   29 #define REQ_LSTQSTRING	4
   30 
   31 struct string_list
   32 {
   33 	char *s;
   34 	struct string_list *n;
   35 };
   36 
   37 struct conftoken
   38 {
   39 	char *word;
   40 	int required;
   41 	char *str;
   42 	int bool;
   43 	struct string_list *sl;
   44 };
   45 
   46 int read_conf(const char *filename, struct conftoken *);
   47 
   48 #endif
   49