diff options
-rw-r--r-- | ChangeLog-99b | 6 | ||||
-rw-r--r-- | ace/Codeset_IBM1047.cpp | 9 | ||||
-rw-r--r-- | ace/Codeset_IBM1047.h | 12 |
3 files changed, 20 insertions, 7 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b index dd3b8ea3c87..e7cd151952e 100644 --- a/ChangeLog-99b +++ b/ChangeLog-99b @@ -1,3 +1,9 @@ +Thu Jul 22 15:12:18 1999 David L. Levine <levine@cs.wustl.edu> + + * ace/Codeset_IBM1047.{h,cpp}: wrapped with #ifdef ACE_MVS + so that the code doesn't occupy any space on platforms + other than MVS. + Thu Jul 22 14:22:41 1999 David L. Levine <levine@cs.wustl.edu> * examples/Shared_Malloc/Malloc.cpp: fixed explicit diff --git a/ace/Codeset_IBM1047.cpp b/ace/Codeset_IBM1047.cpp index 2f80af10b8b..b5ea060f37c 100644 --- a/ace/Codeset_IBM1047.cpp +++ b/ace/Codeset_IBM1047.cpp @@ -17,6 +17,8 @@ // // ============================================================================ +#if defined(ACE_MVS) + #include "ace/Codeset_IBM1047.h" ACE_RCSID(ace, Codeset_IBM1047, "$Id$") @@ -235,7 +237,7 @@ ACE_ISO8859_IBM1047::write_char_array (ACE_OutputCDR &out, // **************************************************************** -char ACE_to_IBM1047[257] = +char ACE_to_IBM1047[257] = { "\x00\x01\x02\x03\x37\x2D\x2E\x2F\x16\x05\x25\x0B\x0C\x0D\x0E\x0F" // 00-0F "\x10\x11\x12\x13\x3C\x3D\x32\x26\x18\x19\x3F\x27\x22\x1D\x35\x1F" // 10-1F @@ -255,8 +257,8 @@ char ACE_to_IBM1047[257] = "\xFC\x9E\xAE\x8C\xDD\xDC\x39\xFB\x80\xAF\xFD\x78\x76\xB2\x9F\xFF" // F0-FF }; -char ACE_from_IBM1047[257] = -{ +char ACE_from_IBM1047[257] = +{ "\x00\x01\x02\x03\xCF\x09\xD3\x7F\xD4\xD5\xC3\x0B\x0C\x0D\x0E\x0F" // 00-0F "\x10\x11\x12\x13\xC7\xB4\x08\xC9\x18\x19\xCC\xCD\x83\x1D\xD2\x1F" // 10-1F "\x81\x82\x1C\x84\x86\x0A\x17\x1B\x89\x91\x92\x95\xA2\x05\x06\x07" // 20-2F @@ -275,3 +277,4 @@ char ACE_from_IBM1047[257] = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\xB3\xF7\xF0\xFA\xA7\xFF" // F0-FF }; +#endif /* ACE_CODESET_IMB1047_H */ diff --git a/ace/Codeset_IBM1047.h b/ace/Codeset_IBM1047.h index 5e4aa0151bc..1f9d19292b4 100644 --- a/ace/Codeset_IBM1047.h +++ b/ace/Codeset_IBM1047.h @@ -20,6 +20,8 @@ #ifndef ACE_CODESET_IMB1047_H #define ACE_CODESET_IMB1047_H +#if defined(ACE_MVS) + #include "ace/CDR_Stream.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) @@ -39,8 +41,8 @@ class ACE_Export ACE_IBM1047_ISO8859 : public ACE_Char_Codeset_Translator // = DESCRIPTION // This class performs the codeset translation: // - // Native: IBM_1047 (i.e. EBCDIC) - // Stream: ISO-8859 (i.e. Latin/1) + // Native: IBM_1047 (i.e. EBCDIC) + // Stream: ISO-8859 (i.e. Latin/1) // public: ACE_IBM1047_ISO8859 (void); @@ -75,8 +77,8 @@ class ACE_Export ACE_ISO8859_IBM1047 : public ACE_Char_Codeset_Translator // = DESCRIPTION // This class performs the codeset translation: // - // Native: ISO-8859 (i.e. Latin/1) - // Stream: IBM-1047 (i.e. EBCDIC) + // Native: ISO-8859 (i.e. Latin/1) + // Stream: IBM-1047 (i.e. EBCDIC) // public: ACE_ISO8859_IBM1047 (void); @@ -103,4 +105,6 @@ public: ACE_CDR::ULong); }; +#endif /* ACE_MVS */ + #endif /* ACE_CODESET_IMB1047_H */ |