/usr/include/x86_64-linux-gnu/chewing/global.h is in libchewing3-dev 0.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | /*
* global.h
*
* Copyright (c) 1999, 2000, 2001
* Lu-chuan Kung and Kang-pen Chen.
* All rights reserved.
*
* Copyright (c) 2004, 2005, 2006, 2008, 2011
* libchewing Core Team. See ChangeLog for details.
*
* See the file "COPYING" for information on usage and redistribution
* of this file.
*/
/* *INDENT-OFF* */
#ifndef _CHEWING_GLOBAL_H
#define _CHEWING_GLOBAL_H
/* *INDENT-ON* */
/*! \file global.h
* \brief Chewing Global Definitions
* \author libchewing Core Team
*/
#define CHINESE_MODE 1
#define SYMBOL_MODE 0
#define FULLSHAPE_MODE 1
#define HALFSHAPE_MODE 0
/* specified to Chewing API */
#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)
# define CHEWING_DLL_IMPORT __declspec(dllimport)
# define CHEWING_DLL_EXPORT __declspec(dllexport)
# ifdef CHEWINGDLL_EXPORTS
# define CHEWING_API CHEWING_DLL_EXPORT
# define CHEWING_PRIVATE
# elif CHEWINGDLL_IMPORTS
# define CHEWING_API CHEWING_DLL_IMPORT
# define CHEWING_PRIVATE
# else
# define CHEWING_API
# define CHEWING_PRIVATE
# endif
#elif (__GNUC__ > 3) && (defined(__ELF__) || defined(__PIC__))
# define CHEWING_API __attribute__((__visibility__("default")))
# define CHEWING_PRIVATE __attribute__((__visibility__("hidden")))
#else
# define CHEWING_API
# define CHEWING_PRIVATE
#endif
#ifndef UNUSED
# if defined(__GNUC__) /* gcc specific */
# define UNUSED __attribute__((unused))
# else
# define UNUSED
# endif
#endif
#ifndef DEPRECATED
# if defined(__GNUC__) && __GNUC__ > 3 || \
(__GNUC__ == 3 && __GNUC_MINOR__ >= 1) /* gcc specific */
# define DEPRECATED __attribute__((deprecated))
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
# define DEPRECATED_FOR(f) \
__attribute__((deprecated("Use " #f " instead")))
# else
# define DEPRECATED_FOR(f) DEPRECATED
# endif
# else
# define DEPRECATED
# define DEPRECATED_FOR(f)
# endif
#endif
/* The following macros are modified from GLIB.
* from GNU cpp Manual:
* C99 introduces the _Pragma operator. This feature addresses a major problem
* with `#pragma': being a directive, it cannot be produced as the result of
* macro expansion. _Pragma is an operator, much like sizeof or defined, and
* can be embedded in a macro.
*/
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)))
# define BEGIN_IGNORE_DEPRECATIONS \
_Pragma ("GCC diagnostic push") \
_Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
# define END_IGNORE_DEPRECATIONS \
_Pragma ("GCC diagnostic pop")
#elif defined (_MSC_VER) && (_MSC_VER >= 1500)
# define BEGIN_IGNORE_DEPRECATIONS \
__pragma (warning (push)) \
__pragma (warning (disable : 4996))
# define END_IGNORE_DEPRECATIONS \
__pragma (warning (pop))
#else
# define BEGIN_IGNORE_DEPRECATIONS
# define END_IGNORE_DEPRECATIONS
#endif
#define MIN_SELKEY 1
#define MAX_SELKEY 10
#define CHEWING_LOG_VERBOSE 1
#define CHEWING_LOG_DEBUG 2
#define CHEWING_LOG_INFO 3
#define CHEWING_LOG_WARN 4
#define CHEWING_LOG_ERROR 5
/**
* @deprecated Use chewing_set_ series of functions to set parameters instead.
*/
typedef struct ChewingConfigData {
int candPerPage;
int maxChiSymbolLen;
int selKey[MAX_SELKEY];
int bAddPhraseForward;
int bSpaceAsSelection;
int bEscCleanAllBuf;
int bAutoShiftCur;
int bEasySymbolInput;
int bPhraseChoiceRearward;
int hsuSelKeyType; // Deprecated.
} ChewingConfigData;
typedef struct IntervalType {
/*@{ */
int from; /**< starting position of certain interval */
int to; /**< ending position of certain interval */
/*@} */
} IntervalType;
/** @brief context handle used for Chewing IM APIs
*/
typedef struct ChewingContext ChewingContext;
/** @brief use "asdfjkl789" as selection key
*/
#define HSU_SELKEY_TYPE1 1
/** @brief use "asdfzxcv89" as selection key
*/
#define HSU_SELKEY_TYPE2 2
/* *INDENT-OFF* */
#endif
/* *INDENT-ON* */
|