blob: 9c2dced75c22ec75236a642d6ea9e0476658bce3 (
plain) (
tree)
|
|
<!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.17 -->
<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="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> </center>
<hr><h1>defs.h</h1><div class="fragment"><pre>00001 <span class="comment">// ----------------------------------------------------------------------------</span>
00002 <span class="comment">// Making or using sword as a Windows DLL</span>
00003 <span class="comment">// ----------------------------------------------------------------------------</span>
00004 <span class="preprocessor">#ifndef SWORDDEFS_H</span>
00005 <span class="preprocessor"></span><span class="preprocessor">#define SWORDDEFS_H</span>
00006 <span class="preprocessor"></span>
00007 <span class="preprocessor">#ifdef NO_SWORD_NAMESPACE</span>
00008 <span class="preprocessor"></span><span class="preprocessor"> #define SWORD_NAMESPACE_START</span>
00009 <span class="preprocessor"></span><span class="preprocessor"> #define SWORD_NAMESPACE_END</span>
00010 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00011 <span class="preprocessor"></span><span class="preprocessor"> #define SWORD_NAMESPACE_START namespace sword {</span>
00012 <span class="preprocessor"></span><span class="preprocessor"> #define SWORD_NAMESPACE_END }</span>
00013 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00014 <span class="preprocessor"></span>
00015
00016 SWORD_NAMESPACE_START
00017
00018 <span class="preprocessor">#define FILTERPAD 16</span>
00019 <span class="preprocessor"></span>
00020 <span class="comment">// _declspec works in BC++ 5 and later, as well as VC++</span>
00021 <span class="preprocessor">#if defined(_MSC_VER)</span>
00022 <span class="preprocessor"></span>
00023 <span class="preprocessor"># ifdef SWMAKINGDLL</span>
00024 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT _declspec( dllexport )</span>
00025 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) _declspec( dllexport ) type</span>
00026 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00027 <span class="preprocessor"></span><span class="preprocessor"># elif defined(SWUSINGDLL)</span>
00028 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT _declspec( dllimport )</span>
00029 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) _declspec( dllimport ) type</span>
00030 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00031 <span class="preprocessor"></span><span class="preprocessor"># else</span>
00032 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT</span>
00033 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) type</span>
00034 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00035 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
00036 <span class="preprocessor"></span>
00037 <span class="preprocessor">#elif defined(__SWPM__)</span>
00038 <span class="preprocessor"></span>
00039 <span class="preprocessor"># ifdef SWMAKINGDLL</span>
00040 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT _Export</span>
00041 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) _Export type</span>
00042 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00043 <span class="preprocessor"></span><span class="preprocessor"># elif defined(SWUSINGDLL)</span>
00044 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT _Export</span>
00045 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) _Export type</span>
00046 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00047 <span class="preprocessor"></span><span class="preprocessor"># else</span>
00048 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT</span>
00049 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) type</span>
00050 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00051 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
00052 <span class="preprocessor"></span>
00053 <span class="preprocessor">#elif defined(__GNUWIN32__)</span>
00054 <span class="preprocessor"></span>
00055 <span class="preprocessor"># ifdef SWMAKINGDLL</span>
00056 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT __declspec( dllexport )</span>
00057 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) __declspec( dllexport ) type</span>
00058 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00059 <span class="preprocessor"></span><span class="preprocessor"># elif defined(SWUSINGDLL)</span>
00060 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT __declspec( dllimport )</span>
00061 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) __declspec( dllimport ) type</span>
00062 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00063 <span class="preprocessor"></span><span class="preprocessor"># else</span>
00064 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT</span>
00065 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) type</span>
00066 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00067 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
00068 <span class="preprocessor"></span>
00069 <span class="preprocessor">#elif defined(__BORLANDC__)</span>
00070 <span class="preprocessor"></span><span class="preprocessor"># ifdef SWMAKINGDLL</span>
00071 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT _export</span>
00072 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) __declspec( dllexport ) type</span>
00073 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00074 <span class="preprocessor"></span><span class="preprocessor"># elif defined(SWUSINGDLL)</span>
00075 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT __declspec( dllimport )</span>
00076 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) __declspec( dllimport ) type</span>
00077 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00078 <span class="preprocessor"></span><span class="preprocessor"># else</span>
00079 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT</span>
00080 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) type</span>
00081 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00082 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
00083 <span class="preprocessor"></span>
00084 <span class="preprocessor">#else</span>
00085 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT</span>
00086 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_DATA(type) type</span>
00087 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLEXPORT_CTORFN</span>
00088 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00089 <span class="preprocessor"></span>
00090 <span class="comment">// For ostream, istream ofstream</span>
00091 <span class="preprocessor">#if defined(__BORLANDC__) && defined( _RTLDLL )</span>
00092 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLIMPORT __import</span>
00093 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00094 <span class="preprocessor"></span><span class="preprocessor"># define SWDLLIMPORT</span>
00095 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00096 <span class="preprocessor"></span>
00097 SWORD_NAMESPACE_END
00098 <span class="preprocessor">#endif //SWORDDEFS_H</span>
</pre></div><hr><address style="align: right;"><small>Generated on Thu Oct 31 12:11:28 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.17 </small></address>
</body>
</html>
|