GnuCash 2.4.99
guile-mappings.h
00001 /********************************************************************\
00002  * guile-mappings.h - Guile version compatability mappings          *
00003  * Copyright (C) 2003, David Hampton                                *
00004  *                                                                  *
00005  * This program is free software; you can redistribute it and/or    *
00006  * modify it under the terms of the GNU General Public License as   *
00007  * published by the Free Software Foundation; either version 2 of   *
00008  * the License, or (at your option) any later version.              *
00009  *                                                                  *
00010  * This program 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    *
00013  * GNU General Public License for more details.                     *
00014  *                                                                  *
00015  * You should have received a copy of the GNU General Public License*
00016  * along with this program; if not, write to the Free Software      *
00017  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.        *
00018 \********************************************************************/
00019 
00020 #include <libguile.h> /* for SCM_MAJOR_VERSION etc */
00021 
00022 /* Give Guile 1.8 a 2.0-like interface */
00023 #if (SCM_MAJOR_VERSION == 1) && (SCM_MINOR_VERSION <= 8)
00024 # define scm_c_string_length scm_i_string_length
00025 #endif
00026 
00027 /* Convenience macros */
00028 
00029 #define scm_is_equal(obj1,obj2) scm_is_true(scm_equal_p(obj1,obj2))
00030 #define scm_is_exact(obj)       scm_is_true(scm_exact_p(obj))
00031 #define scm_is_list(obj)        scm_is_true(scm_list_p(obj))
00032 #define scm_is_procedure(obj)   scm_is_true(scm_procedure_p(obj))
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines