00001 /********************************************************************** 00002 * 00003 * Verball Model Storage Library, Common Information Model Library 00004 * for integration of Intelligent Services. 00005 * Copyright (C) 2005 Nikita Vinokurov, Orgway LLC. 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; 00010 * version 2.1 of the License. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 * Boston, MA 02110-1301 USA 00021 * 00022 * $Id: cmn.h,v 1.9 2006/09/18 21:38:30 sbreg Exp $ 00023 **********************************************************************/ 00024 00025 #ifndef _ols_common_functions_header_ 00026 #define _ols_common_functions_header_ 00027 00028 00029 #if defined(_WIN32) && !defined(__MINGW32__) 00030 #define _CRTDBG_MAP_ALLOC 00031 #include <stdlib.h> 00032 #include <crtdbg.h> 00033 #endif //_WIN32 00034 00035 #include <stdio.h> 00036 00037 #include "assert.h" 00038 00039 #ifdef __linux__ 00040 # define _P __P 00041 #endif 00042 00043 00044 #ifndef FALSE 00045 #define FALSE 0 00046 #endif //FALSE 00047 00048 #ifndef TRUE 00049 #define TRUE 1 00050 #endif //TRUE 00051 00052 #ifndef NULL 00053 #define NULL (void*)0 00054 #endif //NULL 00055 00056 #ifdef __cplusplus 00057 extern "C" 00058 { 00059 #endif/* __cplusplus */ 00060 00062 void print_message(const char *msg); 00064 void error_message(int error); 00065 00066 00067 #ifdef __cplusplus 00068 } 00069 #endif/* __cplusplus */ 00070 00071 00072 00073 #endif //_ols_common_functions_header_