Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../usr/include/fontconf...
File: fcprivate.h
/*
[0] Fix | Delete
* fontconfig/fontconfig/fcprivate.h
[1] Fix | Delete
*
[2] Fix | Delete
* Copyright © 2001 Keith Packard
[3] Fix | Delete
*
[4] Fix | Delete
* Permission to use, copy, modify, distribute, and sell this software and its
[5] Fix | Delete
* documentation for any purpose is hereby granted without fee, provided that
[6] Fix | Delete
* the above copyright notice appear in all copies and that both that
[7] Fix | Delete
* copyright notice and this permission notice appear in supporting
[8] Fix | Delete
* documentation, and that the name of the author(s) not be used in
[9] Fix | Delete
* advertising or publicity pertaining to distribution of the software without
[10] Fix | Delete
* specific, written prior permission. The authors make no
[11] Fix | Delete
* representations about the suitability of this software for any purpose. It
[12] Fix | Delete
* is provided "as is" without express or implied warranty.
[13] Fix | Delete
*
[14] Fix | Delete
* THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
[15] Fix | Delete
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
[16] Fix | Delete
* EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
[17] Fix | Delete
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
[18] Fix | Delete
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
[19] Fix | Delete
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
[20] Fix | Delete
* PERFORMANCE OF THIS SOFTWARE.
[21] Fix | Delete
*/
[22] Fix | Delete
[23] Fix | Delete
#ifndef _FCPRIVATE_H_
[24] Fix | Delete
#define _FCPRIVATE_H_
[25] Fix | Delete
[26] Fix | Delete
/*
[27] Fix | Delete
* I tried this with functions that took va_list* arguments
[28] Fix | Delete
* but portability concerns made me change these functions
[29] Fix | Delete
* into macros (sigh).
[30] Fix | Delete
*/
[31] Fix | Delete
[32] Fix | Delete
#define FcPatternVapBuild(result, orig, va) \
[33] Fix | Delete
{ \
[34] Fix | Delete
FcPattern *__p__ = (orig); \
[35] Fix | Delete
const char *__o__; \
[36] Fix | Delete
FcValue __v__; \
[37] Fix | Delete
\
[38] Fix | Delete
if (!__p__) \
[39] Fix | Delete
{ \
[40] Fix | Delete
__p__ = FcPatternCreate (); \
[41] Fix | Delete
if (!__p__) \
[42] Fix | Delete
goto _FcPatternVapBuild_bail0; \
[43] Fix | Delete
} \
[44] Fix | Delete
for (;;) \
[45] Fix | Delete
{ \
[46] Fix | Delete
__o__ = va_arg (va, const char *); \
[47] Fix | Delete
if (!__o__) \
[48] Fix | Delete
break; \
[49] Fix | Delete
__v__.type = va_arg (va, int); \
[50] Fix | Delete
switch (__v__.type) { \
[51] Fix | Delete
case FcTypeUnknown: \
[52] Fix | Delete
case FcTypeVoid: \
[53] Fix | Delete
goto _FcPatternVapBuild_bail1; \
[54] Fix | Delete
case FcTypeInteger: \
[55] Fix | Delete
__v__.u.i = va_arg (va, int); \
[56] Fix | Delete
break; \
[57] Fix | Delete
case FcTypeDouble: \
[58] Fix | Delete
__v__.u.d = va_arg (va, double); \
[59] Fix | Delete
break; \
[60] Fix | Delete
case FcTypeString: \
[61] Fix | Delete
__v__.u.s = va_arg (va, const FcChar8 *); \
[62] Fix | Delete
break; \
[63] Fix | Delete
case FcTypeBool: \
[64] Fix | Delete
__v__.u.b = va_arg (va, FcBool); \
[65] Fix | Delete
break; \
[66] Fix | Delete
case FcTypeMatrix: \
[67] Fix | Delete
__v__.u.m = va_arg (va, const FcMatrix *); \
[68] Fix | Delete
break; \
[69] Fix | Delete
case FcTypeCharSet: \
[70] Fix | Delete
__v__.u.c = va_arg (va, const FcCharSet *); \
[71] Fix | Delete
break; \
[72] Fix | Delete
case FcTypeFTFace: \
[73] Fix | Delete
__v__.u.f = va_arg (va, FT_Face); \
[74] Fix | Delete
break; \
[75] Fix | Delete
case FcTypeLangSet: \
[76] Fix | Delete
__v__.u.l = va_arg (va, const FcLangSet *); \
[77] Fix | Delete
break; \
[78] Fix | Delete
case FcTypeRange: \
[79] Fix | Delete
__v__.u.r = va_arg (va, const FcRange *); \
[80] Fix | Delete
break; \
[81] Fix | Delete
} \
[82] Fix | Delete
if (!FcPatternAdd (__p__, __o__, __v__, FcTrue)) \
[83] Fix | Delete
goto _FcPatternVapBuild_bail1; \
[84] Fix | Delete
} \
[85] Fix | Delete
result = __p__; \
[86] Fix | Delete
goto _FcPatternVapBuild_return; \
[87] Fix | Delete
\
[88] Fix | Delete
_FcPatternVapBuild_bail1: \
[89] Fix | Delete
if (!orig) \
[90] Fix | Delete
FcPatternDestroy (__p__); \
[91] Fix | Delete
_FcPatternVapBuild_bail0: \
[92] Fix | Delete
result = (void*)0; \
[93] Fix | Delete
\
[94] Fix | Delete
_FcPatternVapBuild_return: \
[95] Fix | Delete
; \
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
[99] Fix | Delete
#define FcObjectSetVapBuild(__ret__, __first__, __va__) \
[100] Fix | Delete
{ \
[101] Fix | Delete
FcObjectSet *__os__; \
[102] Fix | Delete
const char *__ob__; \
[103] Fix | Delete
\
[104] Fix | Delete
__ret__ = 0; \
[105] Fix | Delete
__os__ = FcObjectSetCreate (); \
[106] Fix | Delete
if (!__os__) \
[107] Fix | Delete
goto _FcObjectSetVapBuild_bail0; \
[108] Fix | Delete
__ob__ = __first__; \
[109] Fix | Delete
while (__ob__) \
[110] Fix | Delete
{ \
[111] Fix | Delete
if (!FcObjectSetAdd (__os__, __ob__)) \
[112] Fix | Delete
goto _FcObjectSetVapBuild_bail1; \
[113] Fix | Delete
__ob__ = va_arg (__va__, const char *); \
[114] Fix | Delete
} \
[115] Fix | Delete
__ret__ = __os__; \
[116] Fix | Delete
\
[117] Fix | Delete
_FcObjectSetVapBuild_bail1: \
[118] Fix | Delete
if (!__ret__ && __os__) \
[119] Fix | Delete
FcObjectSetDestroy (__os__); \
[120] Fix | Delete
_FcObjectSetVapBuild_bail0: \
[121] Fix | Delete
; \
[122] Fix | Delete
}
[123] Fix | Delete
[124] Fix | Delete
#ifndef FC_ATTRIBUTE_VISIBILITY_HIDDEN
[125] Fix | Delete
#define FC_ATTRIBUTE_VISIBILITY_HIDDEN __attribute((visibility("hidden")))
[126] Fix | Delete
#endif
[127] Fix | Delete
[128] Fix | Delete
#ifndef FC_ATTRIBUTE_VISIBILITY_EXPORT
[129] Fix | Delete
#define FC_ATTRIBUTE_VISIBILITY_EXPORT __attribute((visibility("default")))
[130] Fix | Delete
#endif
[131] Fix | Delete
[132] Fix | Delete
#endif /* _FCPRIVATE_H_ */
[133] Fix | Delete
[134] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function