blob: 5cd9a9b0cf6d44dc194b722431d514d8dbdc7e1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>defs.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.15 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </center>
<hr><h1>defs.h</h1><div class="fragment"><pre>00001 <font class="comment">// ----------------------------------------------------------------------------</font>
00002 <font class="comment">// Making or using sword as a Windows DLL</font>
00003 <font class="comment">// ----------------------------------------------------------------------------</font>
00004
00005 <font class="preprocessor">#if defined(__SWMSW__)</font>
00006 <font class="preprocessor"></font>
00007 <font class="comment">// _declspec works in BC++ 5 and later, as well as VC++</font>
00008 <font class="preprocessor">#if defined(_MSC_VER)</font>
00009 <font class="preprocessor"></font>
00010 <font class="preprocessor"># ifdef SWMAKINGDLL</font>
00011 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT _declspec( dllexport )</font>
00012 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) _declspec( dllexport ) type</font>
00013 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00014 <font class="preprocessor"></font><font class="preprocessor"># elif defined(SWUSINGDLL)</font>
00015 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT _declspec( dllimport )</font>
00016 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) _declspec( dllimport ) type</font>
00017 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00018 <font class="preprocessor"></font><font class="preprocessor"># else</font>
00019 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT</font>
00020 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) type</font>
00021 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00022 <font class="preprocessor"></font><font class="preprocessor"># endif</font>
00023 <font class="preprocessor"></font>
00024 <font class="preprocessor">#elif defined(__SWPM__)</font>
00025 <font class="preprocessor"></font>
00026 <font class="preprocessor"># ifdef SWMAKINGDLL</font>
00027 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT _Export</font>
00028 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) _Export type</font>
00029 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00030 <font class="preprocessor"></font><font class="preprocessor"># elif defined(SWUSINGDLL)</font>
00031 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT _Export</font>
00032 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) _Export type</font>
00033 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00034 <font class="preprocessor"></font><font class="preprocessor"># else</font>
00035 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT</font>
00036 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) type</font>
00037 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00038 <font class="preprocessor"></font><font class="preprocessor"># endif</font>
00039 <font class="preprocessor"></font>
00040 <font class="preprocessor">#elif defined(__GNUWIN32__) || defined(__BORLANDC__)</font>
00041 <font class="preprocessor"></font>
00042 <font class="preprocessor"># ifdef SWMAKINGDLL</font>
00043 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT __declspec( dllexport )</font>
00044 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) __declspec( dllexport ) type</font>
00045 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00046 <font class="preprocessor"></font><font class="preprocessor"># elif defined(SWUSINGDLL)</font>
00047 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT __declspec( dllimport )</font>
00048 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) __declspec( dllimport ) type</font>
00049 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00050 <font class="preprocessor"></font><font class="preprocessor"># else</font>
00051 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT</font>
00052 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) type</font>
00053 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00054 <font class="preprocessor"></font><font class="preprocessor"># endif</font>
00055 <font class="preprocessor"></font>
00056
00057 <font class="preprocessor">#else</font>
00058 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT</font>
00059 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) type</font>
00060 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00061 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
00062 <font class="preprocessor"></font>
00063 <font class="preprocessor">#else // !Windows</font>
00064 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT</font>
00065 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_DATA(type) type</font>
00066 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLEXPORT_CTORFN</font>
00067 <font class="preprocessor"></font><font class="preprocessor">#endif // Win/!Win</font>
00068 <font class="preprocessor"></font>
00069 <font class="comment">// For ostream, istream ofstream</font>
00070 <font class="preprocessor">#if defined(__BORLANDC__) && defined( _RTLDLL )</font>
00071 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLIMPORT __import</font>
00072 <font class="preprocessor"></font><font class="preprocessor">#else</font>
00073 <font class="preprocessor"></font><font class="preprocessor"># define SWDLLIMPORT</font>
00074 <font class="preprocessor"></font><font class="preprocessor">#endif</font>
</pre></div><hr><address align="right"><small>Generated on Thu Jun 20 22:12:58 2002 for The Sword Project by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.2.15 </small></address>
</body>
</html>
|