00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil -*- 00002 * 00003 * libtest2.c --- auxiliary C lib for testing purposes 00004 * 00005 * Copyright (C) 2007, Luis Oliveira <loliveira(@)common-lisp.net> 00006 * 00007 * Permission is hereby granted, free of charge, to any person 00008 * obtaining a copy of this software and associated documentation 00009 * files (the "Software"), to deal in the Software without 00010 * restriction, including without limitation the rights to use, copy, 00011 * modify, merge, publish, distribute, sublicense, and/or sell copies 00012 * of the Software, and to permit persons to whom the Software is 00013 * furnished to do so, subject to the following conditions: 00014 * 00015 * The above copyright notice and this permission notice shall be 00016 * included in all copies or substantial portions of the Software. 00017 * 00018 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00019 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00020 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00021 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00022 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00023 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00024 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 00025 * DEALINGS IN THE SOFTWARE. 00026 */ 00027 00028 #ifdef WIN32 00029 #define DLLEXPORT __declspec(dllexport) 00030 #else 00031 #define DLLEXPORT 00032 #endif 00033 00034 /* 00035 * [DEFCFUN|FOREIGN].NAMESPACE.1 00036 */ 00037 00038 DLLEXPORT int ns_function() 00039 { 00040 return 0; 00041 } 00042 00043 /* 00044 * FOREIGN-GLOBALS.NAMESPACE.* 00045 */ 00046 00047 DLLEXPORT int ns_var = 0; 00048 00049 /* vim: ts=4 et 00050 */