Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/X11
File: Xresource.h
[0] Fix | Delete
/***********************************************************
[1] Fix | Delete
[2] Fix | Delete
Copyright 1987, 1988, 1998 The Open Group
[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.
[9] Fix | Delete
[10] Fix | Delete
The above copyright notice and this permission notice shall be included in
[11] Fix | Delete
all copies or substantial portions of the Software.
[12] Fix | Delete
[13] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
[14] Fix | Delete
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
[15] Fix | Delete
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
[16] Fix | Delete
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
[17] Fix | Delete
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
[18] Fix | Delete
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
[19] Fix | Delete
[20] Fix | Delete
Except as contained in this notice, the name of The Open Group shall not be
[21] Fix | Delete
used in advertising or otherwise to promote the sale, use or other dealings
[22] Fix | Delete
in this Software without prior written authorization from The Open Group.
[23] Fix | Delete
[24] Fix | Delete
[25] Fix | Delete
Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
[26] Fix | Delete
[27] Fix | Delete
All Rights Reserved
[28] Fix | Delete
[29] Fix | Delete
Permission to use, copy, modify, and distribute this software and its
[30] Fix | Delete
documentation for any purpose and without fee is hereby granted,
[31] Fix | Delete
provided that the above copyright notice appear in all copies and that
[32] Fix | Delete
both that copyright notice and this permission notice appear in
[33] Fix | Delete
supporting documentation, and that the name of Digital not be
[34] Fix | Delete
used in advertising or publicity pertaining to distribution of the
[35] Fix | Delete
software without specific, written prior permission.
[36] Fix | Delete
[37] Fix | Delete
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
[38] Fix | Delete
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
[39] Fix | Delete
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
[40] Fix | Delete
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
[41] Fix | Delete
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
[42] Fix | Delete
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
[43] Fix | Delete
SOFTWARE.
[44] Fix | Delete
[45] Fix | Delete
******************************************************************/
[46] Fix | Delete
[47] Fix | Delete
#ifndef _X11_XRESOURCE_H_
[48] Fix | Delete
#define _X11_XRESOURCE_H_
[49] Fix | Delete
[50] Fix | Delete
#ifndef _XP_PRINT_SERVER_
[51] Fix | Delete
#include <X11/Xlib.h>
[52] Fix | Delete
#endif
[53] Fix | Delete
[54] Fix | Delete
/****************************************************************
[55] Fix | Delete
****************************************************************
[56] Fix | Delete
*** ***
[57] Fix | Delete
*** ***
[58] Fix | Delete
*** X Resource Manager Intrinsics ***
[59] Fix | Delete
*** ***
[60] Fix | Delete
*** ***
[61] Fix | Delete
****************************************************************
[62] Fix | Delete
****************************************************************/
[63] Fix | Delete
[64] Fix | Delete
_XFUNCPROTOBEGIN
[65] Fix | Delete
[66] Fix | Delete
/****************************************************************
[67] Fix | Delete
*
[68] Fix | Delete
* Memory Management
[69] Fix | Delete
*
[70] Fix | Delete
****************************************************************/
[71] Fix | Delete
[72] Fix | Delete
extern char *Xpermalloc(
[73] Fix | Delete
unsigned int /* size */
[74] Fix | Delete
);
[75] Fix | Delete
[76] Fix | Delete
/****************************************************************
[77] Fix | Delete
*
[78] Fix | Delete
* Quark Management
[79] Fix | Delete
*
[80] Fix | Delete
****************************************************************/
[81] Fix | Delete
[82] Fix | Delete
typedef int XrmQuark, *XrmQuarkList;
[83] Fix | Delete
#define NULLQUARK ((XrmQuark) 0)
[84] Fix | Delete
[85] Fix | Delete
typedef char *XrmString;
[86] Fix | Delete
#define NULLSTRING ((XrmString) 0)
[87] Fix | Delete
[88] Fix | Delete
/* find quark for string, create new quark if none already exists */
[89] Fix | Delete
extern XrmQuark XrmStringToQuark(
[90] Fix | Delete
_Xconst char* /* string */
[91] Fix | Delete
);
[92] Fix | Delete
[93] Fix | Delete
extern XrmQuark XrmPermStringToQuark(
[94] Fix | Delete
_Xconst char* /* string */
[95] Fix | Delete
);
[96] Fix | Delete
[97] Fix | Delete
/* find string for quark */
[98] Fix | Delete
extern XrmString XrmQuarkToString(
[99] Fix | Delete
XrmQuark /* quark */
[100] Fix | Delete
);
[101] Fix | Delete
[102] Fix | Delete
extern XrmQuark XrmUniqueQuark(
[103] Fix | Delete
void
[104] Fix | Delete
);
[105] Fix | Delete
[106] Fix | Delete
#define XrmStringsEqual(a1, a2) (strcmp(a1, a2) == 0)
[107] Fix | Delete
[108] Fix | Delete
[109] Fix | Delete
/****************************************************************
[110] Fix | Delete
*
[111] Fix | Delete
* Conversion of Strings to Lists
[112] Fix | Delete
*
[113] Fix | Delete
****************************************************************/
[114] Fix | Delete
[115] Fix | Delete
typedef enum {XrmBindTightly, XrmBindLoosely} XrmBinding, *XrmBindingList;
[116] Fix | Delete
[117] Fix | Delete
extern void XrmStringToQuarkList(
[118] Fix | Delete
_Xconst char* /* string */,
[119] Fix | Delete
XrmQuarkList /* quarks_return */
[120] Fix | Delete
);
[121] Fix | Delete
[122] Fix | Delete
extern void XrmStringToBindingQuarkList(
[123] Fix | Delete
_Xconst char* /* string */,
[124] Fix | Delete
XrmBindingList /* bindings_return */,
[125] Fix | Delete
XrmQuarkList /* quarks_return */
[126] Fix | Delete
);
[127] Fix | Delete
[128] Fix | Delete
/****************************************************************
[129] Fix | Delete
*
[130] Fix | Delete
* Name and Class lists.
[131] Fix | Delete
*
[132] Fix | Delete
****************************************************************/
[133] Fix | Delete
[134] Fix | Delete
typedef XrmQuark XrmName;
[135] Fix | Delete
typedef XrmQuarkList XrmNameList;
[136] Fix | Delete
#define XrmNameToString(name) XrmQuarkToString(name)
[137] Fix | Delete
#define XrmStringToName(string) XrmStringToQuark(string)
[138] Fix | Delete
#define XrmStringToNameList(str, name) XrmStringToQuarkList(str, name)
[139] Fix | Delete
[140] Fix | Delete
typedef XrmQuark XrmClass;
[141] Fix | Delete
typedef XrmQuarkList XrmClassList;
[142] Fix | Delete
#define XrmClassToString(c_class) XrmQuarkToString(c_class)
[143] Fix | Delete
#define XrmStringToClass(c_class) XrmStringToQuark(c_class)
[144] Fix | Delete
#define XrmStringToClassList(str,c_class) XrmStringToQuarkList(str, c_class)
[145] Fix | Delete
[146] Fix | Delete
[147] Fix | Delete
[148] Fix | Delete
/****************************************************************
[149] Fix | Delete
*
[150] Fix | Delete
* Resource Representation Types and Values
[151] Fix | Delete
*
[152] Fix | Delete
****************************************************************/
[153] Fix | Delete
[154] Fix | Delete
typedef XrmQuark XrmRepresentation;
[155] Fix | Delete
#define XrmStringToRepresentation(string) XrmStringToQuark(string)
[156] Fix | Delete
#define XrmRepresentationToString(type) XrmQuarkToString(type)
[157] Fix | Delete
[158] Fix | Delete
typedef struct {
[159] Fix | Delete
unsigned int size;
[160] Fix | Delete
XPointer addr;
[161] Fix | Delete
} XrmValue, *XrmValuePtr;
[162] Fix | Delete
[163] Fix | Delete
[164] Fix | Delete
/****************************************************************
[165] Fix | Delete
*
[166] Fix | Delete
* Resource Manager Functions
[167] Fix | Delete
*
[168] Fix | Delete
****************************************************************/
[169] Fix | Delete
[170] Fix | Delete
typedef struct _XrmHashBucketRec *XrmHashBucket;
[171] Fix | Delete
typedef XrmHashBucket *XrmHashTable;
[172] Fix | Delete
typedef XrmHashTable XrmSearchList[];
[173] Fix | Delete
typedef struct _XrmHashBucketRec *XrmDatabase;
[174] Fix | Delete
[175] Fix | Delete
[176] Fix | Delete
extern void XrmDestroyDatabase(
[177] Fix | Delete
XrmDatabase /* database */
[178] Fix | Delete
);
[179] Fix | Delete
[180] Fix | Delete
extern void XrmQPutResource(
[181] Fix | Delete
XrmDatabase* /* database */,
[182] Fix | Delete
XrmBindingList /* bindings */,
[183] Fix | Delete
XrmQuarkList /* quarks */,
[184] Fix | Delete
XrmRepresentation /* type */,
[185] Fix | Delete
XrmValue* /* value */
[186] Fix | Delete
);
[187] Fix | Delete
[188] Fix | Delete
extern void XrmPutResource(
[189] Fix | Delete
XrmDatabase* /* database */,
[190] Fix | Delete
_Xconst char* /* specifier */,
[191] Fix | Delete
_Xconst char* /* type */,
[192] Fix | Delete
XrmValue* /* value */
[193] Fix | Delete
);
[194] Fix | Delete
[195] Fix | Delete
extern void XrmQPutStringResource(
[196] Fix | Delete
XrmDatabase* /* database */,
[197] Fix | Delete
XrmBindingList /* bindings */,
[198] Fix | Delete
XrmQuarkList /* quarks */,
[199] Fix | Delete
_Xconst char* /* value */
[200] Fix | Delete
);
[201] Fix | Delete
[202] Fix | Delete
extern void XrmPutStringResource(
[203] Fix | Delete
XrmDatabase* /* database */,
[204] Fix | Delete
_Xconst char* /* specifier */,
[205] Fix | Delete
_Xconst char* /* value */
[206] Fix | Delete
);
[207] Fix | Delete
[208] Fix | Delete
extern void XrmPutLineResource(
[209] Fix | Delete
XrmDatabase* /* database */,
[210] Fix | Delete
_Xconst char* /* line */
[211] Fix | Delete
);
[212] Fix | Delete
[213] Fix | Delete
extern Bool XrmQGetResource(
[214] Fix | Delete
XrmDatabase /* database */,
[215] Fix | Delete
XrmNameList /* quark_name */,
[216] Fix | Delete
XrmClassList /* quark_class */,
[217] Fix | Delete
XrmRepresentation* /* quark_type_return */,
[218] Fix | Delete
XrmValue* /* value_return */
[219] Fix | Delete
);
[220] Fix | Delete
[221] Fix | Delete
extern Bool XrmGetResource(
[222] Fix | Delete
XrmDatabase /* database */,
[223] Fix | Delete
_Xconst char* /* str_name */,
[224] Fix | Delete
_Xconst char* /* str_class */,
[225] Fix | Delete
char** /* str_type_return */,
[226] Fix | Delete
XrmValue* /* value_return */
[227] Fix | Delete
);
[228] Fix | Delete
[229] Fix | Delete
extern Bool XrmQGetSearchList(
[230] Fix | Delete
XrmDatabase /* database */,
[231] Fix | Delete
XrmNameList /* names */,
[232] Fix | Delete
XrmClassList /* classes */,
[233] Fix | Delete
XrmSearchList /* list_return */,
[234] Fix | Delete
int /* list_length */
[235] Fix | Delete
);
[236] Fix | Delete
[237] Fix | Delete
extern Bool XrmQGetSearchResource(
[238] Fix | Delete
XrmSearchList /* list */,
[239] Fix | Delete
XrmName /* name */,
[240] Fix | Delete
XrmClass /* class */,
[241] Fix | Delete
XrmRepresentation* /* type_return */,
[242] Fix | Delete
XrmValue* /* value_return */
[243] Fix | Delete
);
[244] Fix | Delete
[245] Fix | Delete
/****************************************************************
[246] Fix | Delete
*
[247] Fix | Delete
* Resource Database Management
[248] Fix | Delete
*
[249] Fix | Delete
****************************************************************/
[250] Fix | Delete
[251] Fix | Delete
#ifndef _XP_PRINT_SERVER_
[252] Fix | Delete
[253] Fix | Delete
extern void XrmSetDatabase(
[254] Fix | Delete
Display* /* display */,
[255] Fix | Delete
XrmDatabase /* database */
[256] Fix | Delete
);
[257] Fix | Delete
[258] Fix | Delete
extern XrmDatabase XrmGetDatabase(
[259] Fix | Delete
Display* /* display */
[260] Fix | Delete
);
[261] Fix | Delete
[262] Fix | Delete
#endif /* !_XP_PRINT_SERVER_ */
[263] Fix | Delete
[264] Fix | Delete
extern XrmDatabase XrmGetFileDatabase(
[265] Fix | Delete
_Xconst char* /* filename */
[266] Fix | Delete
);
[267] Fix | Delete
[268] Fix | Delete
extern Status XrmCombineFileDatabase(
[269] Fix | Delete
_Xconst char* /* filename */,
[270] Fix | Delete
XrmDatabase* /* target */,
[271] Fix | Delete
Bool /* override */
[272] Fix | Delete
);
[273] Fix | Delete
[274] Fix | Delete
extern XrmDatabase XrmGetStringDatabase(
[275] Fix | Delete
_Xconst char* /* data */ /* null terminated string */
[276] Fix | Delete
);
[277] Fix | Delete
[278] Fix | Delete
extern void XrmPutFileDatabase(
[279] Fix | Delete
XrmDatabase /* database */,
[280] Fix | Delete
_Xconst char* /* filename */
[281] Fix | Delete
);
[282] Fix | Delete
[283] Fix | Delete
extern void XrmMergeDatabases(
[284] Fix | Delete
XrmDatabase /* source_db */,
[285] Fix | Delete
XrmDatabase* /* target_db */
[286] Fix | Delete
);
[287] Fix | Delete
[288] Fix | Delete
extern void XrmCombineDatabase(
[289] Fix | Delete
XrmDatabase /* source_db */,
[290] Fix | Delete
XrmDatabase* /* target_db */,
[291] Fix | Delete
Bool /* override */
[292] Fix | Delete
);
[293] Fix | Delete
[294] Fix | Delete
#define XrmEnumAllLevels 0
[295] Fix | Delete
#define XrmEnumOneLevel 1
[296] Fix | Delete
[297] Fix | Delete
extern Bool XrmEnumerateDatabase(
[298] Fix | Delete
XrmDatabase /* db */,
[299] Fix | Delete
XrmNameList /* name_prefix */,
[300] Fix | Delete
XrmClassList /* class_prefix */,
[301] Fix | Delete
int /* mode */,
[302] Fix | Delete
Bool (*)(
[303] Fix | Delete
XrmDatabase* /* db */,
[304] Fix | Delete
XrmBindingList /* bindings */,
[305] Fix | Delete
XrmQuarkList /* quarks */,
[306] Fix | Delete
XrmRepresentation* /* type */,
[307] Fix | Delete
XrmValue* /* value */,
[308] Fix | Delete
XPointer /* closure */
[309] Fix | Delete
) /* proc */,
[310] Fix | Delete
XPointer /* closure */
[311] Fix | Delete
);
[312] Fix | Delete
[313] Fix | Delete
extern const char *XrmLocaleOfDatabase(
[314] Fix | Delete
XrmDatabase /* database */
[315] Fix | Delete
);
[316] Fix | Delete
[317] Fix | Delete
[318] Fix | Delete
/****************************************************************
[319] Fix | Delete
*
[320] Fix | Delete
* Command line option mapping to resource entries
[321] Fix | Delete
*
[322] Fix | Delete
****************************************************************/
[323] Fix | Delete
[324] Fix | Delete
typedef enum {
[325] Fix | Delete
XrmoptionNoArg, /* Value is specified in OptionDescRec.value */
[326] Fix | Delete
XrmoptionIsArg, /* Value is the option string itself */
[327] Fix | Delete
XrmoptionStickyArg, /* Value is characters immediately following option */
[328] Fix | Delete
XrmoptionSepArg, /* Value is next argument in argv */
[329] Fix | Delete
XrmoptionResArg, /* Resource and value in next argument in argv */
[330] Fix | Delete
XrmoptionSkipArg, /* Ignore this option and the next argument in argv */
[331] Fix | Delete
XrmoptionSkipLine, /* Ignore this option and the rest of argv */
[332] Fix | Delete
XrmoptionSkipNArgs /* Ignore this option and the next
[333] Fix | Delete
OptionDescRes.value arguments in argv */
[334] Fix | Delete
} XrmOptionKind;
[335] Fix | Delete
[336] Fix | Delete
typedef struct {
[337] Fix | Delete
char *option; /* Option abbreviation in argv */
[338] Fix | Delete
char *specifier; /* Resource specifier */
[339] Fix | Delete
XrmOptionKind argKind; /* Which style of option it is */
[340] Fix | Delete
XPointer value; /* Value to provide if XrmoptionNoArg */
[341] Fix | Delete
} XrmOptionDescRec, *XrmOptionDescList;
[342] Fix | Delete
[343] Fix | Delete
[344] Fix | Delete
extern void XrmParseCommand(
[345] Fix | Delete
XrmDatabase* /* database */,
[346] Fix | Delete
XrmOptionDescList /* table */,
[347] Fix | Delete
int /* table_count */,
[348] Fix | Delete
_Xconst char* /* name */,
[349] Fix | Delete
int* /* argc_in_out */,
[350] Fix | Delete
char** /* argv_in_out */
[351] Fix | Delete
);
[352] Fix | Delete
[353] Fix | Delete
_XFUNCPROTOEND
[354] Fix | Delete
[355] Fix | Delete
#endif /* _X11_XRESOURCE_H_ */
[356] Fix | Delete
/* DON'T ADD STUFF AFTER THIS #endif */
[357] Fix | Delete
[358] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function