|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. ! 3: * ! 4: * @APPLE_LICENSE_HEADER_START@ ! 5: * ! 6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights ! 7: * Reserved. This file contains Original Code and/or Modifications of ! 8: * Original Code as defined in and that are subject to the Apple Public ! 9: * Source License Version 1.1 (the "License"). You may not use this file ! 10: * except in compliance with the License. Please obtain a copy of the ! 11: * License at http://www.apple.com/publicsource and read it before using ! 12: * this file. ! 13: * ! 14: * The Original Code and all software distributed under the License are ! 15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER ! 16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ! 17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, ! 18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the ! 19: * License for the specific language governing rights and limitations ! 20: * under the License. ! 21: * ! 22: * @APPLE_LICENSE_HEADER_END@ ! 23: */ ! 24: ! 25: /* ! 26: File: DummyUnicodeStubs.c ! 27: ! 28: Contains: Stubs to satisfy linker in absence of static-linked Unicode support. ! 29: ! 30: Version: HFS Plus 1.0 ! 31: ! 32: Copyright: � 1997 by Apple Computer, Inc., all rights reserved. ! 33: ! 34: File Ownership: ! 35: ! 36: DRI: Roger Pantos ! 37: ! 38: Other Contact: Don Brady ! 39: ! 40: Technology: Fakes'R'Us ! 41: ! 42: Writers: ! 43: ! 44: (RNP) Roger Pantos ! 45: ! 46: Change History (most recent first): ! 47: ! 48: <CS1> 9/24/97 RNP first checked in ! 49: */ ! 50: ! 51: ! 52: ! 53: #if TARGET_OS_MAC ! 54: #include <Unicode.h> ! 55: #include <TextCommon.h> ! 56: #include <Errors.h> ! 57: #else ! 58: #include "../headers/system/MacOSStubs.h" ! 59: #endif /* TARGET_OS_MAC */ ! 60: ! 61: pascal OSStatus InitializeUnicode(StringPtr TECFileName) ! 62: { ! 63: #pragma unused( TECFileName) ! 64: ! 65: return notInitErr; ! 66: } ! 67: ! 68: ! 69: pascal OSStatus CreateTextToUnicodeInfo( ConstUnicodeMappingPtr iUnicodeMapping, TextToUnicodeInfo *oTextToUnicodeInfo ) ! 70: { ! 71: #pragma unused( iUnicodeMapping) ! 72: #pragma unused( oTextToUnicodeInfo) ! 73: ! 74: return notInitErr; ! 75: } ! 76: ! 77: ! 78: pascal OSStatus CreateUnicodeToTextInfo( ConstUnicodeMappingPtr iUnicodeMapping, UnicodeToTextInfo *oUnicodeToTextInfo ) ! 79: { ! 80: #pragma unused( iUnicodeMapping) ! 81: #pragma unused( oUnicodeToTextInfo) ! 82: ! 83: return notInitErr; ! 84: } ! 85: ! 86: ! 87: pascal OSStatus ConvertFromTextToUnicode( TextToUnicodeInfo iTextToUnicodeInfo, ByteCount iSourceLen, ! 88: ConstLogicalAddress iSourceStr, OptionBits iControlFlags, ItemCount iOffsetCount, ByteOffset iOffsetArray[], ! 89: ItemCount *oOffsetCount, ByteOffset oOffsetArray[], ByteCount iOutputBufLen, ByteCount *oSourceRead, ! 90: ByteCount *oUnicodeLen, UniCharArrayPtr oUnicodeStr ) ! 91: { ! 92: #pragma unused( iTextToUnicodeInfo) ! 93: #pragma unused( iSourceLen) ! 94: #pragma unused( iSourceStr) ! 95: #pragma unused( iControlFlags) ! 96: #pragma unused( iOffsetCount) ! 97: #pragma unused( iOffsetArray) ! 98: #pragma unused( oOffsetCount) ! 99: #pragma unused( oOffsetArray) ! 100: #pragma unused( iOutputBufLen) ! 101: #pragma unused( oSourceRead) ! 102: #pragma unused( oUnicodeLen) ! 103: #pragma unused( oUnicodeStr) ! 104: ! 105: return notInitErr; ! 106: } ! 107: ! 108: ! 109: pascal OSStatus ConvertFromUnicodeToText( UnicodeToTextInfo iUnicodeToTextInfo, ByteCount iUnicodeLen, ! 110: ConstUniCharArrayPtr iUnicodeStr, OptionBits iControlFlags, ItemCount iOffsetCount, ByteOffset iOffsetArray[], ! 111: ItemCount *oOffsetCount, ByteOffset oOffsetArray[], ByteCount iOutputBufLen, ByteCount *oInputRead, ! 112: ByteCount *oOutputLen, LogicalAddress oOutputStr ) ! 113: { ! 114: #pragma unused( iUnicodeToTextInfo) ! 115: #pragma unused( iUnicodeLen) ! 116: #pragma unused( iUnicodeStr) ! 117: #pragma unused( iControlFlags) ! 118: #pragma unused( iOffsetCount) ! 119: #pragma unused( iOffsetArray) ! 120: #pragma unused( oOffsetCount) ! 121: #pragma unused( oOffsetArray) ! 122: #pragma unused( iOutputBufLen) ! 123: #pragma unused( oInputRead) ! 124: #pragma unused( oOutputLen) ! 125: #pragma unused( oOutputStr) ! 126: ! 127: return notInitErr; ! 128: } ! 129: ! 130: ! 131: pascal OSStatus UpgradeScriptInfoToTextEncoding( ScriptCode iTextScriptID, LangCode iTextLanguageID, ! 132: RegionCode iRegionID, ConstStr255Param iTextFontname, TextEncoding *oEncoding) ! 133: { ! 134: #pragma unused( iTextScriptID) ! 135: #pragma unused( iTextLanguageID) ! 136: #pragma unused( iRegionID) ! 137: #pragma unused( iTextFontname) ! 138: #pragma unused( oEncoding) ! 139: ! 140: return notInitErr; ! 141: } ! 142: ! 143: ! 144: OSStatus LockMappingTable( void) ! 145: { ! 146: return notInitErr; ! 147: } ! 148:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.