mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
stdint.h and stddef.h are shipped with CLang, but they not included in Clang's module.map, which causes Clang to import libc versions instead (and Clang's stdint.h is dispatching to libc). This was causing hard-to-debug transient failures during incremental rebuilds, like this: error: module file was created by an older version of the compiler: .../Darwin.swiftmodule Swift SVN r23230
51 lines
1.7 KiB
C
51 lines
1.7 KiB
C
//===--- UnicodeShims.h - Access to Unicode data for the core stdlib ------===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See http://swift.org/LICENSE.txt for license information
|
|
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Data structures required for Unicode support in Swift that are
|
|
// statically initialized in its runtime's C++ source.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef SWIFT_STDLIB_SHIMS_UNICODESHIMS_H_
|
|
#define SWIFT_STDLIB_SHIMS_UNICODESHIMS_H_
|
|
|
|
extern const __swift_uint8_t *_swift_stdlib_GraphemeClusterBreakPropertyTrie;
|
|
|
|
struct _swift_stdlib_GraphemeClusterBreakPropertyTrieMetadataTy {
|
|
unsigned BMPFirstLevelIndexBits;
|
|
unsigned BMPDataOffsetBits;
|
|
unsigned SuppFirstLevelIndexBits;
|
|
unsigned SuppSecondLevelIndexBits;
|
|
unsigned SuppDataOffsetBits;
|
|
|
|
unsigned BMPLookupBytesPerEntry;
|
|
unsigned BMPDataBytesPerEntry;
|
|
unsigned SuppLookup1BytesPerEntry;
|
|
unsigned SuppLookup2BytesPerEntry;
|
|
unsigned SuppDataBytesPerEntry;
|
|
|
|
unsigned TrieSize;
|
|
|
|
unsigned BMPLookupBytesOffset;
|
|
unsigned BMPDataBytesOffset;
|
|
unsigned SuppLookup1BytesOffset;
|
|
unsigned SuppLookup2BytesOffset;
|
|
unsigned SuppDataBytesOffset;
|
|
};
|
|
|
|
extern const struct _swift_stdlib_GraphemeClusterBreakPropertyTrieMetadataTy
|
|
_swift_stdlib_GraphemeClusterBreakPropertyTrieMetadata;
|
|
|
|
extern const __swift_uint16_t *
|
|
_swift_stdlib_ExtendedGraphemeClusterNoBoundaryRulesMatrix;
|
|
|
|
#endif
|