00001 /* 00002 * finflect - Algorithms and tools for inflecting Finnish nouns 00003 * Copyright (C) 2004, 2005 The FinFlect Team 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2.1 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 * 00019 * 00020 * For the complete legal text of the GNU Lesser General Public License, 00021 * see the file LICENSE. For a complete list of authors and copyright 00022 * holders, see the file AUTHORS. 00023 */ 00024 00025 /** 00026 * @file ffconfig.h Defines configurational stuff like current version number 00027 */ 00028 00029 #ifndef __FFCONFIG_H 00030 #define __FFCONFIG_H 00031 00032 #ifdef __cplusplus 00033 extern "C" { 00034 #endif 00035 00036 #include <stdio.h> 00037 00038 /** 00039 *@brief current version of FF 00040 * 00041 *Current version of FinFlect.<br> 00042 *<b> remember to update when version number changes!</b> 00043 */ 00044 #define FF_VERSION "0.1.3" 00045 00046 /** 00047 *@brief ON / OFF 00048 * 00049 *Turn warning messages ON and OFF 00050 */ 00051 #define WARNINGS 1 00052 00053 /** 00054 *@brief ON / OFF 00055 * 00056 *Turn error messages ON and OFF 00057 */ 00058 #define ERRORS 1 00059 00060 /** 00061 *@brief print a warning 00062 * 00063 *Print a warning message. Note that this macro adds the 00064 *trailing newline (@\n) 00065 * 00066 *message character array to be printed. 00067 */ 00068 #define FF_PRINTWARNING(message) do{ if(WARNINGS) fprintf(stderr, "<libfinflect " FF_VERSION "> WARNING@file: '" __FILE__ "':%d[" message"]\n", __LINE__); } while(0) 00069 00070 /** 00071 *@brief print an error 00072 * 00073 *Print an error message. Note that this macro adds the 00074 *trailing newline (@\n) 00075 * 00076 *message character array to be printed. 00077 */ 00078 #define FF_PRINTERROR(message) do{ if(ERRORS) fprintf(stderr, "<libfinflect " FF_VERSION "> ERROR@file: '" __FILE__ "':%d[" message"]\n", __LINE__); } while(0) 00079 00080 00081 #endif