| 1 | /* $Id: tst.h 2965 2007-02-13 21:04:40Z bird $ */ | 
|---|
| 2 | /** @file | 
|---|
| 3 | * | 
|---|
| 4 | * kLdr testcase. | 
|---|
| 5 | * | 
|---|
| 6 | * Copyright (c) 2006 knut st. osmundsen <bird-kbuild-src@anduin.net> | 
|---|
| 7 | * | 
|---|
| 8 | * | 
|---|
| 9 | * This file is part of kLdr. | 
|---|
| 10 | * | 
|---|
| 11 | * kLdr is free software; you can redistribute it and/or modify | 
|---|
| 12 | * it under the terms of the GNU General Public License as published by | 
|---|
| 13 | * the Free Software Foundation; either version 2 of the License, or | 
|---|
| 14 | * (at your option) any later version. | 
|---|
| 15 | * | 
|---|
| 16 | * kLdr is distributed in the hope that it will be useful, | 
|---|
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 19 | * GNU General Public License for more details. | 
|---|
| 20 | * | 
|---|
| 21 | * You should have received a copy of the GNU General Public License | 
|---|
| 22 | * along with kLdr; if not, write to the Free Software | 
|---|
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA | 
|---|
| 24 | * | 
|---|
| 25 | */ | 
|---|
| 26 |  | 
|---|
| 27 |  | 
|---|
| 28 | #ifndef __tst_h__ | 
|---|
| 29 | #define __tst_h__ | 
|---|
| 30 |  | 
|---|
| 31 | #include "../kLdr.h" | 
|---|
| 32 | #include "../kLdrHlp.h" | 
|---|
| 33 |  | 
|---|
| 34 |  | 
|---|
| 35 | #if defined(__OS2__) || defined(__WIN__) || defined(__NT__) | 
|---|
| 36 | # define MY_EXPORT(type) __declspec(dllexport) type | 
|---|
| 37 | /*# define MY_IMPORT(type) extern __declspec(dllimport) type*/ | 
|---|
| 38 | # define MY_IMPORT(type) extern type | 
|---|
| 39 | #else | 
|---|
| 40 | # define MY_EXPORT(type) type | 
|---|
| 41 | # define MY_IMPORT(type) extern type | 
|---|
| 42 | #endif | 
|---|
| 43 |  | 
|---|
| 44 | #if defined(__OS2__) || defined(__DARWIN__) | 
|---|
| 45 | # define MY_NAME(a) "_" a | 
|---|
| 46 | #else | 
|---|
| 47 | # define MY_NAME(a) a | 
|---|
| 48 | #endif | 
|---|
| 49 |  | 
|---|
| 50 | extern const char *g_pszName; | 
|---|
| 51 |  | 
|---|
| 52 | #endif | 
|---|
| 53 |  | 
|---|