-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
#include <cstdarg> | ||
#include <cstdint> | ||
#include <cstdlib> | ||
#include <ostream> | ||
#include <new> | ||
#include <guiddef.h> | ||
|
||
extern "C" { | ||
|
||
extern const GUID SAMPLEIME_CLSID; | ||
|
||
extern const GUID SAMPLEIME_GUID_CAND_UIELEMENT; | ||
extern const GUID SAMPLEIME_GUID_PROFILE; | ||
|
||
extern const GUID SAMPLEIME_GUID_COMPARTMENT_DOUBLE_SINGLE_BYTE; | ||
extern const GUID SAMPLEIME_GUID_IME_MODE_PRESERVE_KEY; | ||
|
||
extern const GUID SAMPLEIME_GUID_COMPARTMENT_PUNCTUATION; | ||
extern const GUID SAMPLEIME_GUID_DOUBLE_SINGLE_BYTE_PRESERVE_KEY; | ||
|
||
extern const GUID SAMPLEIME_GUID_DISPLAY_ATTRIBUTE_CONVERTED; | ||
extern const GUID SAMPLEIME_GUID_PUNCTUATION_PRESERVE_KEY; | ||
|
||
extern const GUID SAMPLEIME_GUID_DISPLAY_ATTRIBUTE_INPUT; | ||
extern const GUID SAMPLEIME_GUID_COMPARTMENT_DOUBLE_SINGLE_BYTE; | ||
|
||
extern const GUID SAMPLEIME_GUID_DOUBLE_SINGLE_BYTE_PRESERVE_KEY; | ||
extern const GUID SAMPLEIME_GUID_COMPARTMENT_PUNCTUATION; | ||
|
||
extern const GUID SAMPLEIME_GUID_IME_MODE_PRESERVE_KEY; | ||
extern const GUID SAMPLEIME_GUID_DISPLAY_ATTRIBUTE_INPUT; | ||
|
||
extern const GUID SAMPLEIME_GUID_PROFILE; | ||
extern const GUID SAMPLEIME_GUID_DISPLAY_ATTRIBUTE_CONVERTED; | ||
|
||
extern const GUID SAMPLEIME_GUID_PUNCTUATION_PRESERVE_KEY; | ||
extern const GUID SAMPLEIME_GUID_CAND_UIELEMENT; | ||
|
||
} // extern "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
#include <cstdarg> | ||
#include <cstdint> | ||
#include <cstdlib> | ||
#include <ostream> | ||
#include <new> | ||
|
||
static const uint32_t IME_MODE_OFF_ICO_INDEX = 22; | ||
constexpr static const uint32_t IME_MODE_ON_ICO_INDEX = 21; | ||
|
||
static const uint32_t IME_MODE_ON_ICO_INDEX = 21; | ||
constexpr static const uint32_t IME_MODE_OFF_ICO_INDEX = 22; | ||
|
||
extern "C" { | ||
|
||
extern HFONT DEFAULT_FONT_HANDLE; | ||
|
||
extern HMODULE DLL_INSTANCE; | ||
|
||
extern HFONT DEFAULT_FONT_HANDLE; | ||
|
||
} // extern "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#include <cstdarg> | ||
#include <cstdint> | ||
#include <cstdlib> | ||
#include <ostream> | ||
#include <new> | ||
|
||
extern "C" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
#include <cstdarg> | ||
#include <cstdint> | ||
#include <cstdlib> | ||
#include <ostream> | ||
#include <new> | ||
|
||
extern "C" { | ||
|
||
void *ruststringrange_clone(const void *p); | ||
void *ruststringrange_new(const uint16_t *buffer, uintptr_t buffer_len); | ||
|
||
int8_t ruststringrange_compare(void *x_raw, void *y_raw); | ||
void *ruststringrange_new_utf8(const uint8_t *buffer, uintptr_t buffer_len); | ||
|
||
void ruststringrange_free(void *p); | ||
|
||
uintptr_t ruststringrange_len(const void *p); | ||
const uint8_t *ruststringrange_raw(void *p); | ||
|
||
void *ruststringrange_new(const uint16_t *buffer, uintptr_t buffer_len); | ||
uintptr_t ruststringrange_len(const void *p); | ||
|
||
void *ruststringrange_new_utf8(const uint8_t *buffer, uintptr_t buffer_len); | ||
int8_t ruststringrange_compare(void *x_raw, void *y_raw); | ||
|
||
const uint8_t *ruststringrange_raw(void *p); | ||
void *ruststringrange_clone(const void *p); | ||
|
||
} // extern "C" |