Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/X11
File: Xfuncproto.h
/*
[0] Fix | Delete
*
[1] Fix | Delete
Copyright 1989, 1991, 1998 The Open Group
[2] Fix | Delete
[3] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[4] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[5] Fix | Delete
the above copyright notice appear in all copies and that both that
[6] Fix | Delete
copyright notice and this permission notice appear in supporting
[7] Fix | Delete
documentation.
[8] Fix | Delete
[9] Fix | Delete
The above copyright notice and this permission notice shall be included in
[10] Fix | Delete
all copies or substantial portions of the Software.
[11] Fix | Delete
[12] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[13] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[14] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[15] Fix | Delete
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[16] Fix | Delete
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[17] Fix | Delete
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[18] Fix | Delete
[19] Fix | Delete
Except as contained in this notice, the name of The Open Group shall not be
[20] Fix | Delete
used in advertising or otherwise to promote the sale, use or other dealings
[21] Fix | Delete
in this Software without prior written authorization from The Open Group.
[22] Fix | Delete
*
[23] Fix | Delete
*/
[24] Fix | Delete
[25] Fix | Delete
/* Definitions to make function prototypes manageable */
[26] Fix | Delete
[27] Fix | Delete
#ifndef _XFUNCPROTO_H_
[28] Fix | Delete
#define _XFUNCPROTO_H_
[29] Fix | Delete
[30] Fix | Delete
#ifndef NeedFunctionPrototypes
[31] Fix | Delete
#define NeedFunctionPrototypes 1
[32] Fix | Delete
#endif /* NeedFunctionPrototypes */
[33] Fix | Delete
[34] Fix | Delete
#ifndef NeedVarargsPrototypes
[35] Fix | Delete
#define NeedVarargsPrototypes 1
[36] Fix | Delete
#endif /* NeedVarargsPrototypes */
[37] Fix | Delete
[38] Fix | Delete
#if NeedFunctionPrototypes
[39] Fix | Delete
[40] Fix | Delete
#ifndef NeedNestedPrototypes
[41] Fix | Delete
#define NeedNestedPrototypes 1
[42] Fix | Delete
#endif /* NeedNestedPrototypes */
[43] Fix | Delete
[44] Fix | Delete
#ifndef _Xconst
[45] Fix | Delete
#define _Xconst const
[46] Fix | Delete
#endif /* _Xconst */
[47] Fix | Delete
[48] Fix | Delete
/* Function prototype configuration (see configure for more info) */
[49] Fix | Delete
#if !defined(NARROWPROTO) && \
[50] Fix | Delete
(defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__))
[51] Fix | Delete
#define NARROWPROTO
[52] Fix | Delete
#endif
[53] Fix | Delete
#ifndef FUNCPROTO
[54] Fix | Delete
#define FUNCPROTO 15
[55] Fix | Delete
#endif
[56] Fix | Delete
[57] Fix | Delete
#ifndef NeedWidePrototypes
[58] Fix | Delete
#ifdef NARROWPROTO
[59] Fix | Delete
#define NeedWidePrototypes 0
[60] Fix | Delete
#else
[61] Fix | Delete
#define NeedWidePrototypes 1 /* default to make interropt. easier */
[62] Fix | Delete
#endif
[63] Fix | Delete
#endif /* NeedWidePrototypes */
[64] Fix | Delete
[65] Fix | Delete
#endif /* NeedFunctionPrototypes */
[66] Fix | Delete
[67] Fix | Delete
#ifndef _XFUNCPROTOBEGIN
[68] Fix | Delete
#if defined(__cplusplus) || defined(c_plusplus) /* for C++ V2.0 */
[69] Fix | Delete
#define _XFUNCPROTOBEGIN extern "C" { /* do not leave open across includes */
[70] Fix | Delete
#define _XFUNCPROTOEND }
[71] Fix | Delete
#else
[72] Fix | Delete
#define _XFUNCPROTOBEGIN
[73] Fix | Delete
#define _XFUNCPROTOEND
[74] Fix | Delete
#endif
[75] Fix | Delete
#endif /* _XFUNCPROTOBEGIN */
[76] Fix | Delete
[77] Fix | Delete
/* http://clang.llvm.org/docs/LanguageExtensions.html#has-attribute */
[78] Fix | Delete
#ifndef __has_attribute
[79] Fix | Delete
# define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
[80] Fix | Delete
#endif
[81] Fix | Delete
#ifndef __has_feature
[82] Fix | Delete
# define __has_feature(x) 0 /* Compatibility with non-clang compilers. */
[83] Fix | Delete
#endif
[84] Fix | Delete
#ifndef __has_extension
[85] Fix | Delete
# define __has_extension(x) 0 /* Compatibility with non-clang compilers. */
[86] Fix | Delete
#endif
[87] Fix | Delete
[88] Fix | Delete
/* Added in X11R6.9, so available in any version of modular xproto */
[89] Fix | Delete
#if __has_attribute(__sentinel__) || (defined(__GNUC__) && (__GNUC__ >= 4))
[90] Fix | Delete
# define _X_SENTINEL(x) __attribute__ ((__sentinel__(x)))
[91] Fix | Delete
#else
[92] Fix | Delete
# define _X_SENTINEL(x)
[93] Fix | Delete
#endif /* GNUC >= 4 */
[94] Fix | Delete
[95] Fix | Delete
/* Added in X11R6.9, so available in any version of modular xproto */
[96] Fix | Delete
#if (__has_attribute(visibility) || (defined(__GNUC__) && (__GNUC__ >= 4))) \
[97] Fix | Delete
&& !defined(__CYGWIN__) && !defined(__MINGW32__)
[98] Fix | Delete
# define _X_EXPORT __attribute__((visibility("default")))
[99] Fix | Delete
# define _X_HIDDEN __attribute__((visibility("hidden")))
[100] Fix | Delete
# define _X_INTERNAL __attribute__((visibility("internal")))
[101] Fix | Delete
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
[102] Fix | Delete
# define _X_EXPORT __global
[103] Fix | Delete
# define _X_HIDDEN __hidden
[104] Fix | Delete
# define _X_INTERNAL __hidden
[105] Fix | Delete
#else /* not gcc >= 4 and not Sun Studio >= 8 */
[106] Fix | Delete
# define _X_EXPORT
[107] Fix | Delete
# define _X_HIDDEN
[108] Fix | Delete
# define _X_INTERNAL
[109] Fix | Delete
#endif /* GNUC >= 4 */
[110] Fix | Delete
[111] Fix | Delete
/* Branch prediction hints for individual conditionals */
[112] Fix | Delete
/* requires xproto >= 7.0.9 */
[113] Fix | Delete
#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)
[114] Fix | Delete
# define _X_LIKELY(x) __builtin_expect(!!(x), 1)
[115] Fix | Delete
# define _X_UNLIKELY(x) __builtin_expect(!!(x), 0)
[116] Fix | Delete
#else /* not gcc >= 3.3 */
[117] Fix | Delete
# define _X_LIKELY(x) (x)
[118] Fix | Delete
# define _X_UNLIKELY(x) (x)
[119] Fix | Delete
#endif
[120] Fix | Delete
[121] Fix | Delete
/* Bulk branch prediction hints via marking error path functions as "cold" */
[122] Fix | Delete
/* requires xproto >= 7.0.25 */
[123] Fix | Delete
#if __has_attribute(__cold__) || \
[124] Fix | Delete
(defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 403)) /* 4.3+ */
[125] Fix | Delete
# define _X_COLD __attribute__((__cold__))
[126] Fix | Delete
#else
[127] Fix | Delete
# define _X_COLD /* nothing */
[128] Fix | Delete
#endif
[129] Fix | Delete
[130] Fix | Delete
/* Added in X11R6.9, so available in any version of modular xproto */
[131] Fix | Delete
#if __has_attribute(deprecated) \
[132] Fix | Delete
|| (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 301)) \
[133] Fix | Delete
|| (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5130))
[134] Fix | Delete
# define _X_DEPRECATED __attribute__((deprecated))
[135] Fix | Delete
#else /* not gcc >= 3.1 */
[136] Fix | Delete
# define _X_DEPRECATED
[137] Fix | Delete
#endif
[138] Fix | Delete
[139] Fix | Delete
/* requires xproto >= 7.0.30 */
[140] Fix | Delete
#if __has_extension(attribute_deprecated_with_message) || \
[141] Fix | Delete
(defined(__GNUC__) && ((__GNUC__ >= 5) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 5))))
[142] Fix | Delete
# define _X_DEPRECATED_MSG(_msg) __attribute__((deprecated(_msg)))
[143] Fix | Delete
#else
[144] Fix | Delete
# define _X_DEPRECATED_MSG(_msg) _X_DEPRECATED
[145] Fix | Delete
#endif
[146] Fix | Delete
[147] Fix | Delete
/* requires xproto >= 7.0.17 */
[148] Fix | Delete
#if __has_attribute(noreturn) \
[149] Fix | Delete
|| (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)) \
[150] Fix | Delete
|| (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
[151] Fix | Delete
# define _X_NORETURN __attribute((noreturn))
[152] Fix | Delete
#else
[153] Fix | Delete
# define _X_NORETURN
[154] Fix | Delete
#endif /* GNUC */
[155] Fix | Delete
[156] Fix | Delete
/* Added in X11R6.9, so available in any version of modular xproto */
[157] Fix | Delete
#if __has_attribute(__format__) \
[158] Fix | Delete
|| defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 203)
[159] Fix | Delete
# define _X_ATTRIBUTE_PRINTF(x,y) __attribute__((__format__(__printf__,x,y)))
[160] Fix | Delete
#else /* not gcc >= 2.3 */
[161] Fix | Delete
# define _X_ATTRIBUTE_PRINTF(x,y)
[162] Fix | Delete
#endif
[163] Fix | Delete
[164] Fix | Delete
/* requires xproto >= 7.0.22 - since this uses either gcc or C99 variable
[165] Fix | Delete
argument macros, must be only used inside #ifdef _X_NONNULL guards, as
[166] Fix | Delete
many legacy X clients are compiled in C89 mode still. */
[167] Fix | Delete
#if __has_attribute(nonnull) \
[168] Fix | Delete
&& defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */
[169] Fix | Delete
#define _X_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
[170] Fix | Delete
#elif __has_attribute(nonnull) \
[171] Fix | Delete
|| defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)
[172] Fix | Delete
#define _X_NONNULL(args...) __attribute__((nonnull(args)))
[173] Fix | Delete
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */
[174] Fix | Delete
#define _X_NONNULL(...) /* */
[175] Fix | Delete
#endif
[176] Fix | Delete
[177] Fix | Delete
/* requires xproto >= 7.0.22 */
[178] Fix | Delete
#if __has_attribute(__unused__) \
[179] Fix | Delete
|| defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)
[180] Fix | Delete
#define _X_UNUSED __attribute__((__unused__))
[181] Fix | Delete
#else
[182] Fix | Delete
#define _X_UNUSED /* */
[183] Fix | Delete
#endif
[184] Fix | Delete
[185] Fix | Delete
/* C99 keyword "inline" or equivalent extensions in pre-C99 compilers */
[186] Fix | Delete
/* requires xproto >= 7.0.9
[187] Fix | Delete
(introduced in 7.0.8 but didn't support all compilers until 7.0.9) */
[188] Fix | Delete
#if defined(inline) /* assume autoconf set it correctly */ || \
[189] Fix | Delete
(defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L)) /* C99 */ || \
[190] Fix | Delete
(defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550))
[191] Fix | Delete
# define _X_INLINE inline
[192] Fix | Delete
#elif defined(__GNUC__) && !defined(__STRICT_ANSI__) /* gcc w/C89+extensions */
[193] Fix | Delete
# define _X_INLINE __inline__
[194] Fix | Delete
#else
[195] Fix | Delete
# define _X_INLINE
[196] Fix | Delete
#endif
[197] Fix | Delete
[198] Fix | Delete
/* C99 keyword "restrict" or equivalent extensions in pre-C99 compilers */
[199] Fix | Delete
/* requires xproto >= 7.0.21 */
[200] Fix | Delete
#ifndef _X_RESTRICT_KYWD
[201] Fix | Delete
# if defined(restrict) /* assume autoconf set it correctly */ || \
[202] Fix | Delete
(defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */ \
[203] Fix | Delete
&& !defined(__cplusplus)) /* Workaround g++ issue on Solaris */
[204] Fix | Delete
# define _X_RESTRICT_KYWD restrict
[205] Fix | Delete
# elif defined(__GNUC__) && !defined(__STRICT_ANSI__) /* gcc w/C89+extensions */
[206] Fix | Delete
# define _X_RESTRICT_KYWD __restrict__
[207] Fix | Delete
# else
[208] Fix | Delete
# define _X_RESTRICT_KYWD
[209] Fix | Delete
# endif
[210] Fix | Delete
#endif
[211] Fix | Delete
[212] Fix | Delete
/* requires xproto >= 7.0.30 */
[213] Fix | Delete
#if __has_attribute(no_sanitize_thread)
[214] Fix | Delete
# define _X_NOTSAN __attribute__((no_sanitize_thread))
[215] Fix | Delete
#else
[216] Fix | Delete
# define _X_NOTSAN
[217] Fix | Delete
#endif
[218] Fix | Delete
[219] Fix | Delete
#endif /* _XFUNCPROTO_H_ */
[220] Fix | Delete
[221] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function