Platform_VMS.h
Go to the documentation of this file.
00001 //
00002 // Platform_VMS.h
00003 //
00004 // $Id: //poco/1.3/Foundation/include/Poco/Platform_VMS.h#1 $
00005 //
00006 // Library: Foundation
00007 // Package: Core
00008 // Module:  Platform
00009 //
00010 // Platform and architecture identification macros
00011 // and platform-specific definitions for OpenVMS.
00012 //
00013 // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
00014 // and Contributors.
00015 //
00016 // Permission is hereby granted, free of charge, to any person or organization
00017 // obtaining a copy of the software and accompanying documentation covered by
00018 // this license (the "Software") to use, reproduce, display, distribute,
00019 // execute, and transmit the Software, and to prepare derivative works of the
00020 // Software, and to permit third-parties to whom the Software is furnished to
00021 // do so, all subject to the following:
00022 // 
00023 // The copyright notices in the Software and this entire statement, including
00024 // the above license grant, this restriction and the following disclaimer,
00025 // must be included in all copies of the Software, in whole or in part, and
00026 // all derivative works of the Software, unless such copies or derivative
00027 // works are solely in the form of machine-executable object code generated by
00028 // a source language processor.
00029 // 
00030 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00031 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00032 // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
00033 // SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
00034 // FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
00035 // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00036 // DEALINGS IN THE SOFTWARE.
00037 //
00038 
00039 
00040 #ifndef Foundation_Platform_VMS_INCLUDED
00041 #define Foundation_Platform_VMS_INCLUDED
00042 
00043 
00044 // Define the POCO_DESCRIPTOR_STRING and POCO_DESCRIPTOR_LITERAL
00045 // macros which we use instead of $DESCRIPTOR and $DESCRIPTOR64. 
00046 // Our macros work with both 32bit and 64bit pointer sizes.
00047 #if __INITIAL_POINTER_SIZE != 64
00048         #define POCO_DESCRIPTOR_STRING(name, string) \
00049                 struct dsc$descriptor_s name =  \
00050                 {                                                               \
00051                         string.size(),                          \
00052                         DSC$K_DTYPE_T,                          \
00053                         DSC$K_CLASS_S,                          \
00054                         (char*) string.data()           \
00055                 }
00056         #define POCO_DESCRIPTOR_LITERAL(name, string) \
00057                 struct dsc$descriptor_s name =  \
00058                 {                                                               \
00059                         sizeof(string) - 1,                     \
00060                         DSC$K_DTYPE_T,                          \
00061                         DSC$K_CLASS_S,                          \
00062                         (char*) string                          \
00063                 }
00064 #else
00065         #define POCO_DESCRIPTOR_STRING(name, string) \
00066                 struct dsc64$descriptor_s name =\
00067                 {                                                               \
00068                         1,                                                      \
00069                         DSC64$K_DTYPE_T,                        \
00070                         DSC64$K_CLASS_S,                        \
00071                         -1,                                                     \
00072                         string.size(),                          \
00073                         (char*) string.data()           \
00074                 }
00075         #define POCO_DESCRIPTOR_LITERAL(name, string) \
00076                 struct dsc64$descriptor_s name =\
00077                 {                                                               \
00078                         1,                                                      \
00079                         DSC64$K_DTYPE_T,                        \
00080                         DSC64$K_CLASS_S,                        \
00081                         -1,                                                     \
00082                         sizeof(string) - 1,                     \
00083                         (char*) string                          \
00084                 }
00085 #endif
00086 
00087 
00088 // No <sys/select.h> header file
00089 #define POCO_NO_SYS_SELECT_H
00090 
00091 
00092 #endif // Foundation_Platform_VMS_INCLUDED


pluginlib
Author(s): Tully Foote and Eitan Marder-Eppstein
autogenerated on Sat Dec 28 2013 17:20:19