mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This can be used as QoI for things like 'NSASCIIStringEncoding', which is going to canonically be `String.Encoding.ascii` if/when SE-0086 is accepted. We can't actually handle this in NS_SWIFT_NAME (that is, we can't /import/ something onto a nested type), but that's okay: we already have stricter limitations on NS_SWIFT_NAME enforced by Clang. rdar://problem/26352374
13 lines
571 B
C
13 lines
571 B
C
typedef struct ZXSpectrum { unsigned char A, B, C, D, H, L; } ZXSpectrum;
|
|
|
|
unsigned char ZXSpectrumGetAccumulator(const ZXSpectrum *self);
|
|
void ZXSpectrumSetAccumulator(ZXSpectrum *self, unsigned char newValue);
|
|
|
|
unsigned char ZXSpectrumGetRegister(const ZXSpectrum *self, int which);
|
|
void ZXSpectrumSetRegister(ZXSpectrum *self, int which, unsigned char newValue);
|
|
|
|
unsigned char ZXSpectrumGetMisnamedRegister(const ZXSpectrum *self, int which);
|
|
void ZXSpectrumSetMisnamedRegister(ZXSpectrum *self, int which, unsigned char newValue);
|
|
|
|
void ZXSpectrumHelperReset(void);
|