diff options
author | Egbert Eich <eich@freedesktop.org> | 2004-04-15 10:13:24 +0000 |
---|---|---|
committer | Egbert Eich <eich@freedesktop.org> | 2004-04-15 10:13:24 +0000 |
commit | 08f8e56701977d8d3c5a67b22047019633ba6375 (patch) | |
tree | c18cbf09d48aaafcf00c3c86bc95148bd40d56e9 | |
parent | 90b6f32bbe219045cebe7927b55261d63583fa06 (diff) |
Merged changes from RELEASE-1 branchXORG-CURRENT-CLOSED
56 files changed, 500 insertions, 556 deletions
diff --git a/include/X11/Xlib.h b/include/X11/Xlib.h index ea24c38..f03c65c 100644 --- a/include/X11/Xlib.h +++ b/include/X11/Xlib.h @@ -1,4 +1,4 @@ -/* $XdotOrg: lib/X11/include/X11/Xlib.h,v 1.1.4.8 2004-03-05 13:39:08 eich Exp $ */ +/* $XdotOrg: lib/X11/include/X11/Xlib.h,v 1.1.4.9 2004-04-15 10:14:54 eich Exp $ */ /* $Xorg: Xlib.h,v 1.6 2001/02/09 02:03:38 xorgcvs Exp $ */ /* @@ -379,6 +379,16 @@ typedef struct { } XHostAddress; /* + * Data structure for ServerFamilyInterpreted addresses in host routines + */ +typedef struct { + int typelength; /* length of type string, in bytes */ + int valuelength; /* length of value string, in bytes */ + char *type; /* pointer to where to find the type string */ + char *value; /* pointer to where to find the address */ +} XServerInterpretedAddress; + +/* * Data structure for "image" data, used by image manipulation routines. */ typedef struct _XImage { @@ -3654,14 +3664,11 @@ extern int XwcTextEscapement( int /* num_wchars */ ); -extern int XFree86utf8TextEscapement( +extern int Xutf8TextEscapement( XFontSet /* font_set */, _Xconst char* /* text */, int /* bytes_text */ ); -#ifndef NOXFREE86COMPAT -#define Xutf8TextEscapement XFree86utf8TextEscapement -#endif extern int XmbTextExtents( XFontSet /* font_set */, @@ -3679,16 +3686,13 @@ extern int XwcTextExtents( XRectangle* /* overall_logical_return */ ); -extern int XFree86utf8TextExtents( +extern int Xutf8TextExtents( XFontSet /* font_set */, _Xconst char* /* text */, int /* bytes_text */, XRectangle* /* overall_ink_return */, XRectangle* /* overall_logical_return */ ); -#ifndef NOXFREE86COMPAT -#define Xutf8TextExtents XFree86utf8TextExtents -#endif extern Status XmbTextPerCharExtents( XFontSet /* font_set */, @@ -3714,7 +3718,7 @@ extern Status XwcTextPerCharExtents( XRectangle* /* overall_logical_return */ ); -extern Status XFree86utf8TextPerCharExtents( +extern Status Xutf8TextPerCharExtents( XFontSet /* font_set */, _Xconst char* /* text */, int /* bytes_text */, @@ -3725,9 +3729,6 @@ extern Status XFree86utf8TextPerCharExtents( XRectangle* /* overall_ink_return */, XRectangle* /* overall_logical_return */ ); -#ifndef NOXFREE86COMPAT -#define Xutf8TextPerCharExtents XFree86utf8TextPerCharExtents -#endif extern void XmbDrawText( Display* /* display */, @@ -3749,7 +3750,7 @@ extern void XwcDrawText( int /* nitems */ ); -extern void XFree86utf8DrawText( +extern void Xutf8DrawText( Display* /* display */, Drawable /* d */, GC /* gc */, @@ -3758,9 +3759,6 @@ extern void XFree86utf8DrawText( XmbTextItem* /* text_items */, int /* nitems */ ); -#ifndef NOXFREE86COMPAT -#define Xutf8DrawText XFree86utf8DrawText -#endif extern void XmbDrawString( Display* /* display */, @@ -3784,7 +3782,7 @@ extern void XwcDrawString( int /* num_wchars */ ); -extern void XFree86utf8DrawString( +extern void Xutf8DrawString( Display* /* display */, Drawable /* d */, XFontSet /* font_set */, @@ -3794,9 +3792,6 @@ extern void XFree86utf8DrawString( _Xconst char* /* text */, int /* bytes_text */ ); -#ifndef NOXFREE86COMPAT -#define Xutf8DrawString XFree86utf8DrawString -#endif extern void XmbDrawImageString( Display* /* display */, @@ -3820,7 +3815,7 @@ extern void XwcDrawImageString( int /* num_wchars */ ); -extern void XFree86utf8DrawImageString( +extern void Xutf8DrawImageString( Display* /* display */, Drawable /* d */, XFontSet /* font_set */, @@ -3830,9 +3825,6 @@ extern void XFree86utf8DrawImageString( _Xconst char* /* text */, int /* bytes_text */ ); -#ifndef NOXFREE86COMPAT -#define Xutf8DrawImageString XFree86utf8DrawImageString -#endif extern XIM XOpenIM( Display* /* dpy */, @@ -3885,12 +3877,9 @@ extern char *XmbResetIC( XIC /* ic */ ); -extern char *XFree86utf8ResetIC( +extern char *Xutf8ResetIC( XIC /* ic */ ); -#ifndef NOXFREE86COMPAT -#define Xutf8ResetIC XFree86utf8ResetIC -#endif extern char *XSetICValues( XIC /* ic */, ... @@ -3927,7 +3916,7 @@ extern int XwcLookupString( Status* /* status_return */ ); -extern int XFree86utf8LookupString( +extern int Xutf8LookupString( XIC /* ic */, XKeyPressedEvent* /* event */, char* /* buffer_return */, @@ -3935,9 +3924,6 @@ extern int XFree86utf8LookupString( KeySym* /* keysym_return */, Status* /* status_return */ ); -#ifndef NOXFREE86COMPAT -#define Xutf8LookupString XFree86utf8LookupString -#endif extern XVaNestedList XVaCreateNestedList( int /*unused*/, ... diff --git a/include/X11/Xutil.h b/include/X11/Xutil.h index 7aad4f9..931cfd0 100644 --- a/include/X11/Xutil.h +++ b/include/X11/Xutil.h @@ -170,7 +170,7 @@ typedef enum { XTextStyle, /* text in owner's encoding (current locale)*/ XStdICCTextStyle, /* STRING, else COMPOUND_TEXT */ /* The following is an XFree86 extension, introduced in November 2000 */ - XFree86Utf8StringStyle /* UTF8_STRING */ + XUTF8StringStyle /* UTF8_STRING */ } XICCEncodingStyle; typedef struct { @@ -672,7 +672,7 @@ extern void XmbSetWMProperties( XClassHint* /* class_hints */ ); -extern void XFree86utf8SetWMProperties( +extern void Xutf8SetWMProperties( Display* /* display */, Window /* w */, _Xconst char* /* window_name */, @@ -683,9 +683,6 @@ extern void XFree86utf8SetWMProperties( XWMHints* /* wm_hints */, XClassHint* /* class_hints */ ); -#ifndef NOXFREE86COMPAT -#define Xutf8SetWMProperties XFree86utf8SetWMProperties -#endif extern void XSetWMSizeHints( Display* /* display */, @@ -747,16 +744,13 @@ extern int XwcTextListToTextProperty( XTextProperty* text_prop_return ); -extern int XFree86utf8TextListToTextProperty( +extern int Xutf8TextListToTextProperty( Display* display, char** list, int count, XICCEncodingStyle style, XTextProperty* text_prop_return ); -#ifndef NOXFREE86COMPAT -#define Xutf8TextListToTextProperty XFree86utf8TextListToTextProperty -#endif extern void XwcFreeStringList( wchar_t** list @@ -782,15 +776,12 @@ extern int XwcTextPropertyToTextList( int* count_return ); -extern int XFree86utf8TextPropertyToTextList( +extern int Xutf8TextPropertyToTextList( Display* display, const XTextProperty* text_prop, char*** list_return, int* count_return ); -#ifndef NOXFREE86COMPAT -#define Xutf8TextPropertyToTextList XFree86utf8TextPropertyToTextList -#endif extern int XUnionRectWithRegion( XRectangle* /* rectangle */, diff --git a/man/IsCursorKey.man b/man/IsCursorKey.man index 4d36bbe..b556652 100644 --- a/man/IsCursorKey.man +++ b/man/IsCursorKey.man @@ -1,3 +1,4 @@ +.\" $XdotOrg: lib/X11/man/IsCursorKey.man,v 1.1.4.4 2004-04-15 10:13:24 eich Exp $ .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium .\" .\" Permission is hereby granted, free of charge, to any person obtaining @@ -142,7 +143,7 @@ .ny0 .TH IsCursorKey 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -IsCursorKey, IsFunctionKey, IsKeypadKey, IsMiscFunctionKey, IsModiferKey, IsPFKey, IsPrivateKeypadKey \- keysym classification macros +IsCursorKey, IsFunctionKey, IsKeypadKey, IsMiscFunctionKey, IsModifierKey, IsPFKey, IsPrivateKeypadKey \- keysym classification macros .SH SYNTAX int IsCursorKey\^(\^KeySym \fIkeysym\fP\^); .LP @@ -187,7 +188,7 @@ macro returns if the specified KeySym is a miscellaneous function key. .LP The -.ZN IsModiferKey +.ZN IsModifierKey macro returns .ZN True if the specified KeySym is a modifier key. diff --git a/man/XAddHost.man b/man/XAddHost.man index 00e68b3..8436103 100644 --- a/man/XAddHost.man +++ b/man/XAddHost.man @@ -1,28 +1,34 @@ .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium +.\" Copyright \(co 2004 Sun Microsystems, Inc. .\" -.\" Permission is hereby granted, free of charge, to any person obtaining -.\" a copy of this software and associated documentation files (the +.\" All rights reserved. +.\" +.\" Permission is hereby granted, free of charge, to any person obtaining a +.\" copy of this software and associated documentation files (the .\" "Software"), to deal in the Software without restriction, including .\" without limitation the rights to use, copy, modify, merge, publish, -.\" distribute, sublicense, and/or sell copies of the Software, and to -.\" permit persons to whom the Software is furnished to do so, subject to -.\" the following conditions: -.\" -.\" The above copyright notice and this permission notice shall be included -.\" in all copies or substantial portions of the Software. -.\" +.\" distribute, and/or sell copies of the Software, and to permit persons +.\" to whom the Software is furnished to do so, provided that the above +.\" copyright notice(s) and this permission notice appear in all copies of +.\" the Software and that both the above copyright notice(s) and this +.\" permission notice appear in supporting documentation. +.\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR -.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -.\" OTHER DEALINGS IN THE SOFTWARE. -.\" -.\" Except as contained in this notice, the name of the X Consortium shall -.\" not be used in advertising or otherwise to promote the sale, use or -.\" other dealings in this Software without prior written authorization -.\" from the X Consortium. +.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +.\" OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +.\" HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL +.\" INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING +.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION +.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.\" Except as contained in this notice, the name of a copyright holder +.\" shall not be used in advertising or otherwise to promote the sale, use +.\" or other dealings in this Software without prior written authorization +.\" of the copyright holder. +.\" +.\" X Window System is a trademark of The Open Group. .\" .\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by .\" Digital Equipment Corporation @@ -41,7 +47,7 @@ .\" It is provided ``as is'' without express or implied warranty. .\" .\" $XFree86: xc/doc/man/X11/XAddHost.man,v 1.3 2003/04/28 22:17:54 herrb Exp $ -.\" $XdotOrg: lib/X11/man/XAddHost.man,v 1.1.4.4 2004-03-05 13:38:15 eich Exp $ +.\" $XdotOrg: lib/X11/man/XAddHost.man,v 1.1.4.5 2004-04-15 10:13:24 eich Exp $ .\" .ds xT X Toolkit Intrinsics \- C Language Interface .ds xW Athena X Widgets \- C Language X Toolkit Interface @@ -143,7 +149,7 @@ .ny0 .TH XAddHost 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XAddHost, XAddHosts, XListHosts, XRemoveHost, XRemoveHosts, XSetAccessControl, XEnableAccessControl, XDisableAccessControl, XHostAddress \- control host access and host control structure +XAddHost, XAddHosts, XListHosts, XRemoveHost, XRemoveHosts, XSetAccessControl, XEnableAccessControl, XDisableAccessControl, XHostAddress, XServerInterpretedAddress \- control host access and host control structure .SH SYNTAX .HP int XAddHost\^(\^Display *\fIdisplay\fP, XHostAddress *\fIhost\fP\^); @@ -308,11 +314,34 @@ typedef struct { The family member specifies which protocol address family to use (for example, TCP/IP or DECnet) and can be .ZN FamilyInternet , +.ZN FamilyInternet6 , +.ZN FamilyServerInterpreted , .ZN FamilyDECnet , or .ZN FamilyChaos . The length member specifies the length of the address in bytes. The address member specifies a pointer to the address. +.LP +For the ServerInterpreted family, the length is ignored and the address +member is a pointer to a +.ZN XServerInterpretedAddress +structure which contains: +.LP +.Ds 0 +.TA .5i 3i +.ta .5i 3i +typedef struct { + int typelength; /\(** length of type string, in bytes */ + int valuelength; /\(** length of value string, in bytes */ + char *type; /\(** pointer to where to find the type string */ + char *value; /\(** pointer to where to find the address */ +} XServerInterpretedAddress; +.De +.LP +The type and value members point to strings representing the type and value of +the server interpreted entry. These strings may not be NULL-terminated so care +should be used when accessing them. The typelength and valuelength members +specify the length in byte of the type and value strings. .SH DIAGNOSTICS .TP 1i .ZN BadAccess diff --git a/man/XSetWMProperties.man b/man/XSetWMProperties.man index df59ad5..2398fbc 100644 --- a/man/XSetWMProperties.man +++ b/man/XSetWMProperties.man @@ -143,7 +143,7 @@ .ny0 .TH XSetWMProperties 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XSetWMProperties, XmbSetWMProperties, XFree86utf8SetWMProperties \- set standard window properties +XSetWMProperties, XmbSetWMProperties, Xutf8SetWMProperties \- set standard window properties .SH SYNTAX .HP void XSetWMProperties\^(\^Display *\fIdisplay\fP\^, Window \fIw\fP\^, @@ -156,7 +156,7 @@ void XmbSetWMProperties\^(\^Display *\fIdisplay\fP\^, Window \fIw\fP\^, char \fIargc\fP\^, XSizeHints *\fInormal_hints\fP\^, XWMHints *\fIwm_hints\fP\^, XClassHint *\fIclass_hints\fP\^); .HP -void XFree86utf8SetWMProperties\^(\^Display *\fIdisplay\fP\^, Window \fIw\fP\^, char +void Xutf8SetWMProperties\^(\^Display *\fIdisplay\fP\^, Window \fIw\fP\^, char *\fIwindow_name\fP\^, char *\fIicon_name\fP\^, char *\fIargv\fP\^[], int \fIargc\fP\^, XSizeHints *\fInormal_hints\fP\^, XWMHints *\fIwm_hints\fP\^, XClassHint *\fIclass_hints\fP\^); @@ -243,7 +243,7 @@ any directory prefixes, is substituted for res_name. The .ZN XmbSetWMProperties and -.ZN XFree86utf8SetWMProperties +.ZN Xutf8SetWMProperties convenience functions provide a simple programming interface for setting those essential window properties that are used for communicating with other clients @@ -256,7 +256,7 @@ they set the WM_ICON_NAME property. The window_name and icon_name arguments are null-terminated strings, for .ZN XmbSetWMProperties in the encoding of the current locale, for -.ZN XFree86utf8SetWMProperties +.ZN Xutf8SetWMProperties in UTF-8 encoding. If the arguments can be fully converted to the STRING encoding, the properties are created with type ``STRING''; @@ -266,14 +266,14 @@ and the properties are created with type ``COMPOUND_TEXT''. If the normal_hints argument is non-NULL, .ZN XmbSetWMProperties and -.ZN XFree86utf8SetWMProperties +.ZN Xutf8SetWMProperties call .ZN XSetWMNormalHints , which sets the WM_NORMAL_HINTS property (see section 14.1.7). If the wm_hints argument is non-NULL, .ZN XmbSetWMProperties and -.ZN XFree86utf8SetWMProperties +.ZN Xutf8SetWMProperties call .ZN XSetWMHints , which sets the WM_HINTS property (see section 14.1.6). @@ -281,7 +281,7 @@ which sets the WM_HINTS property (see section 14.1.6). If the argv argument is non-NULL, .ZN XmbSetWMProperties and -.ZN XFree86utf8SetWMProperties +.ZN Xutf8SetWMProperties set the WM_COMMAND property from argv and argc. An argc of zero indicates a zero-length command. .LP @@ -292,7 +292,7 @@ The hostname of the machine is stored using If the class_hints argument is non-NULL, .ZN XmbSetWMProperties and -.ZN XFree86utf8SetWMProperties +.ZN Xutf8SetWMProperties set the WM_CLASS property. If the res_name member in the .ZN XClassHint @@ -315,7 +315,7 @@ in the properties. For clients that need to process the property text in a locale, .ZN XmbSetWMProperties and -.ZN XFree86utf8SetWMProperties +.ZN Xutf8SetWMProperties set the WM_LOCALE_NAME property to be the name of the current locale. The name is assumed to be in the Host Portable Character Encoding and is converted to STRING for storage in the property. @@ -323,7 +323,7 @@ and is converted to STRING for storage in the property. .ZN XSetWMProperties , .ZN XmbSetWMProperties and -.ZN XFree86utf8SetWMProperties +.ZN Xutf8SetWMProperties can generate .ZN BadAlloc and @@ -331,8 +331,9 @@ and errors. .LP The function -.ZN XFree86utf8SetWMProperties -is an XFree86 extension introduced in XFree86 4.0.2. Its presence is +.ZN Xutf8SetWMProperties +is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH PROPERTIES diff --git a/man/XStringListToTextProperty.man b/man/XStringListToTextProperty.man index 0eb4d9b..e835b38 100644 --- a/man/XStringListToTextProperty.man +++ b/man/XStringListToTextProperty.man @@ -42,7 +42,7 @@ .\" It is provided ``as is'' without express or implied warranty. .\" .\" $XFree86: xc/doc/man/X11/XSLTTProp.man,v 1.5 2003/04/28 22:17:56 herrb Exp $ -.\" $XdotOrg: lib/X11/man/XStringListToTextProperty.man,v 1.1.4.5 2004-03-05 13:38:16 eich Exp $ +.\" $XdotOrg: lib/X11/man/XStringListToTextProperty.man,v 1.1.4.6 2004-04-15 10:13:25 eich Exp $ .\" .ds xT X Toolkit Intrinsics \- C Language Interface .ds xW Athena X Widgets \- C Language X Toolkit Interface @@ -216,7 +216,7 @@ The .ZN XFreeStringList function releases memory allocated by .ZN XmbTextPropertyToTextList , -.ZN XFree86utf8TextPropertyToTextList +.ZN Xutf8TextPropertyToTextList and .ZN XTextPropertyToStringList and the missing charset list allocated by diff --git a/man/XmbDrawImageString.man b/man/XmbDrawImageString.man index 32f30c1..e47c033 100644 --- a/man/XmbDrawImageString.man +++ b/man/XmbDrawImageString.man @@ -143,7 +143,7 @@ .ny0 .TH XmbDrawImageString 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XmbDrawImageString, XwcDrawImageString, XFree86utf8DrawImageString \- draw image text using a single font set +XmbDrawImageString, XwcDrawImageString, Xutf8DrawImageString \- draw image text using a single font set .SH SYNTAX .HP void XmbDrawImageString\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, @@ -154,7 +154,7 @@ void XwcDrawImageString\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, XFontSet \fIfont_set\fP\^, GC \fIgc\fP\^, int \fIx\fP\^, int \fIy\fP\^, wchar_t *\fIstring\fP\^, int \fInum_wchars\fP\^); .HP -void XFree86utf8DrawImageString\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, +void Xutf8DrawImageString\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, XFontSet \fIfont_set\fP\^, GC \fIgc\fP\^, int \fIx\fP\^, int \fIy\fP\^, char *\fIstring\fP\^, int \fInum_bytes\fP\^); .SH ARGUMENTS @@ -183,14 +183,14 @@ The .ZN XmbDrawImageString , .ZN XwcDrawImageString and -.ZN XFree86utf8DrawImageString +.ZN Xutf8DrawImageString functions fill a destination rectangle with the background pixel defined in the GC and then paint the text with the foreground pixel. The filled rectangle is the rectangle returned to overall_logical_return by .ZN XmbTextExtents , .ZN XwcTextExtents or -.ZN XFree86utf8TextExtents +.ZN Xutf8TextExtents for the same text and .ZN XFontSet . .LP @@ -202,8 +202,9 @@ with the default string returned by The behavior for an invalid codepoint is undefined. .LP The function -.ZN XFree86utf8TextExtents -is an XFree86 extension introduced in XFree86 4.0.2. Its presence is +.ZN Xutf8TextExtents +is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH "SEE ALSO" diff --git a/man/XmbDrawString.man b/man/XmbDrawString.man index 28b17cd..8af12ed 100644 --- a/man/XmbDrawString.man +++ b/man/XmbDrawString.man @@ -143,7 +143,7 @@ .ny0 .TH XmbDrawString 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XmbDrawString, XwcDrawString, XFree86utf8DrawString \- draw text using a single font set +XmbDrawString, XwcDrawString, Xutf8DrawString \- draw text using a single font set .SH SYNTAX .HP void XmbDrawString\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, XFontSet @@ -154,7 +154,7 @@ void XwcDrawString\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, XFontSet \fIfont_set\fP\^, GC \fIgc\fP\^, int \fIx\fP\^, int \fIy\fP\^, wchar_t *\fIstring\fP\^, int \fInum_wchars\fP\^); .HP -void XFree86utf8DrawString\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, +void Xutf8DrawString\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, XFontSet \fIfont_set\fP\^, GC \fIgc\fP\^, int \fIx\fP\^, int \fIy\fP\^, char *\fIstring\fP\^, int \fInum_bytes\fP\^); .SH ARGUMENTS @@ -183,7 +183,7 @@ The .ZN XmbDrawString , .ZN XwcDrawString and -.ZN XFree86utf8DrawString +.ZN Xutf8DrawString functions draw the specified text with the foreground pixel. When the .ZN XFontSet @@ -193,8 +193,9 @@ with the default string returned by The behavior for an invalid codepoint is undefined. .LP The function -.ZN XFree86utf8DrawString -is an XFree86 extension introduced in XFree86 4.0.2. Its presence is +.ZN Xutf8DrawString +is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH "SEE ALSO" diff --git a/man/XmbDrawText.man b/man/XmbDrawText.man index 3100568..6682d5a 100644 --- a/man/XmbDrawText.man +++ b/man/XmbDrawText.man @@ -42,7 +42,7 @@ .\" It is provided ``as is'' without express or implied warranty. .\" .\" $XFree86: xc/doc/man/X11/XmbDTxt.man,v 1.4 2003/04/28 22:17:58 herrb Exp $ -.\" $XdotOrg: lib/X11/man/XmbDrawText.man,v 1.1.4.5 2004-03-05 13:38:16 eich Exp $ +.\" $XdotOrg: lib/X11/man/XmbDrawText.man,v 1.1.4.6 2004-04-15 10:13:25 eich Exp $ .\" .ds xT X Toolkit Intrinsics \- C Language Interface .ds xW Athena X Widgets \- C Language X Toolkit Interface @@ -144,7 +144,7 @@ .ny0 .TH XmbDrawText 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XmbDrawText, XwcDrawText, XFree86utf8DrawText \- draw text using multiple font sets +XmbDrawText, XwcDrawText, Xutf8DrawText \- draw text using multiple font sets .SH SYNTAX .HP void XmbDrawText\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, GC @@ -155,7 +155,7 @@ void XwcDrawText\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, GC \fIgc\fP\^, int \fIx\fP\^, int \fIy\fP\^, XwcTextItem *\fIitems\fP\^, int \fInitems\fP\^); .HP -void XFree86utf8DrawText\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, GC +void Xutf8DrawText\^(\^Display *\fIdisplay\fP\^, Drawable \fId\fP\^, GC \fIgc\fP\^, int \fIx\fP\^, int \fIy\fP\^, XmbTextItem *\fIitems\fP\^, int \fInitems\fP\^); .SH ARGUMENTS .IP \fId\fP 1i @@ -179,7 +179,7 @@ The .ZN XmbDrawText , .ZN XwcDrawText and -.ZN XFree86utf8DrawText +.ZN Xutf8DrawText functions allow complex spacing and font set shifts between text strings. Each text item is processed in turn, with the origin of a text element advanced in the primary draw direction by the escapement of the @@ -197,16 +197,16 @@ will not be drawn. .ZN XmbDrawText , .ZN XwcDrawText and -.ZN XFree86utf8DrawText +.ZN Xutf8DrawText do not perform any context-dependent rendering between text segments. Clients may compute the drawing metrics by passing each text segment to .ZN XmbTextExtents , .ZN XwcTextExtents , -.ZN XFree86utf8TextExtents +.ZN Xutf8TextExtents or .ZN XmbTextPerCharExtents , .ZN XwcTextPerCharExtents . -.ZN XFree86utf8TextPerCharExtents . +.ZN Xutf8TextPerCharExtents . When the .ZN XFontSet has missing charsets, each unavailable character is drawn @@ -215,8 +215,9 @@ with the default string returned by The behavior for an invalid codepoint is undefined. .LP The function -.ZN XFree86utf8DrawText -is an XFree86 extension introduced in XFree86 4.0.2. Its presence is +.ZN Xutf8DrawText +is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH STRUCTURES diff --git a/man/XmbLookupString.man b/man/XmbLookupString.man index d8341ba..fc30f4a 100644 --- a/man/XmbLookupString.man +++ b/man/XmbLookupString.man @@ -145,7 +145,7 @@ '\" t .TH XmbLookupString 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XmbLookupString, XwcLookupString, XFree86utf8LookupString \- obtain composed input from an input method +XmbLookupString, XwcLookupString, Xutf8LookupString \- obtain composed input from an input method .SH SYNTAX .HP int XmbLookupString\^(\^XIC \fIic\fP\^, XKeyPressedEvent *\fIevent\fP, char @@ -156,7 +156,7 @@ int XwcLookupString\^(\^XIC \fIic\fP\^, XKeyPressedEvent *\fIevent\fP\^, wchar_t *\fIbuffer_return\fP\^, int \fIwchars_buffer\fP\^, KeySym *\fIkeysym_return\fP\^, Status *\fIstatus_return\fP\^); .HP -int XFree86utf8LookupString\^(\^XIC \fIic\fP\^, XKeyPressedEvent *\fIevent\fP, char +int Xutf8LookupString\^(\^XIC \fIic\fP\^, XKeyPressedEvent *\fIevent\fP, char *\fIbuffer_return\fP\^, int \fIbytes_buffer\fP\^, KeySym *\fIkeysym_return\fP\^, Status *\fIstatus_return\fP\^); .SH ARGUMENTS @@ -182,7 +182,7 @@ The .ZN XmbLookupString , .ZN XwcLookupString and -.ZN XFree86utf8LookupString +.ZN Xutf8LookupString functions return the string from the input method specified in the buffer_return argument. If no string is returned, @@ -196,7 +196,7 @@ the KeySym value does not necessarily correspond to the string returned. .LP .ZN XmbLookupString and -.ZN XFree86utf8LookupString +.ZN Xutf8LookupString return the length of the string in bytes, and .ZN XwcLookupString returns the length of the string in characters. @@ -206,7 +206,7 @@ and .ZN XwcLookupString return text in the encoding of the locale bound to the input method of the specified input context, and -.ZN XFree86utf8LookupString +.ZN Xutf8LookupString returns text in UTF-8 encoding. .LP Each string returned by @@ -223,7 +223,7 @@ events to .ZN XmbLookupString , .ZN XwcLookupString and -.ZN XFree86utf8LookupString . +.ZN Xutf8LookupString . Their behavior when a client passes a .ZN KeyRelease event is undefined. @@ -242,7 +242,7 @@ T} T{ The input string to be returned is too large for the supplied buffer_return. The required size (for .ZN XmbLookupString , -.ZN XFree86utf8LookupString +.ZN Xutf8LookupString in bytes; for .ZN XwcLookupString in characters) is returned as the value of the function, @@ -289,19 +289,20 @@ It does not make any difference if the input context passed as an argument to .ZN XmbLookupString , .ZN XwcLookupString and -.ZN XFree86utf8LookupString +.ZN Xutf8LookupString is the one currently in possession of the focus or not. Input may have been composed within an input context before it lost the focus, and that input may be returned on subsequent calls to .ZN XmbLookupString , .ZN XwcLookupString or -.ZN XFree86utf8LookupString +.ZN Xutf8LookupString even though it does not have any more keyboard focus. .LP The function -.ZN XFree86utf8LookupString -is an XFree86 extension introduced in XFree86 4.0.2. Its presence is +.ZN Xutf8LookupString +is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH "SEE ALSO" diff --git a/man/XmbResetIC.man b/man/XmbResetIC.man index a1c685d..e71465b 100644 --- a/man/XmbResetIC.man +++ b/man/XmbResetIC.man @@ -143,14 +143,14 @@ .ny0 .TH XmbResetIC 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XmbResetIC, XwcResetIC, XFree86utf8ResetIC \- reset the state of an input context +XmbResetIC, XwcResetIC, Xutf8ResetIC \- reset the state of an input context .SH SYNTAX .HP char *XmbResetIC\^(\^XIC \fIic\fP\^); .HP wchar_t *XwcResetIC\^(\^XIC \fIic\fP\^); .HP -char *XFree86utf8ResetIC\^(\^XIC \fIic\fP\^); +char *Xutf8ResetIC\^(\^XIC \fIic\fP\^); .SH ARGUMENTS .IP \fIic\fP 1i Specifies the input context. @@ -162,7 +162,7 @@ is set to .ZN XmbResetIC , .ZN XwcResetIC and -.ZN XFree86utf8ResetIC +.ZN Xutf8ResetIC reset an input context to its initial state; when .ZN XNResetState @@ -176,7 +176,7 @@ Calling .ZN XmbResetIC , .ZN XwcResetIC or -.ZN XFree86utf8ResetIC +.ZN Xutf8ResetIC does not change the focus. .LP The return value of @@ -186,7 +186,7 @@ The return value of .ZN XwcResetIC is its current preedit string as a wide character string. The return value of -.ZN XFree86utf8ResetIC +.ZN Xutf8ResetIC is its current preedit string as an UTF-8 string. If there is any preedit text drawn or visible to the user, then these procedures must return a non-NULL string. @@ -198,8 +198,9 @@ The client should free the returned string by calling .ZN XFree . .LP The function -.ZN XFree86utf8ResetIC -is an XFree86 extension introduced in XFree86 4.0.2. Its presence is +.ZN Xutf8ResetIC +is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH "SEE ALSO" diff --git a/man/XmbTextEscapement.man b/man/XmbTextEscapement.man index 922c74e..8aeb0b0 100644 --- a/man/XmbTextEscapement.man +++ b/man/XmbTextEscapement.man @@ -143,7 +143,7 @@ .ny0 .TH XmbTextEscapement 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XmbTextEscapement, XwcTextEscapement, XFree86utf8TextEscapement \- obtain the escapement of text +XmbTextEscapement, XwcTextEscapement, Xutf8TextEscapement \- obtain the escapement of text .SH SYNTAX .HP int XmbTextEscapement\^(\^XFontSet \fIfont_set\fP\^, char *\fIstring\fP\^, int @@ -152,7 +152,7 @@ int XmbTextEscapement\^(\^XFontSet \fIfont_set\fP\^, char *\fIstring\fP\^, int int XwcTextEscapement\^(\^XFontSet \fIfont_set\fP\^, wchar_t *\fIstring\fP\^, int \fInum_wchars\fP\^); .HP -int XFree86utf8TextEscapement\^(\^XFontSet \fIfont_set\fP\^, char *\fIstring\fP\^, +int Xutf8TextEscapement\^(\^XFontSet \fIfont_set\fP\^, char *\fIstring\fP\^, int \fInum_bytes\fP\^); .SH ARGUMENTS .IP \fIfont_set\fP 1i @@ -168,7 +168,7 @@ The .ZN XmbTextEscapement , .ZN XwcTextEscapement and -.ZN XFree86utf8TextEscapement +.ZN Xutf8TextEscapement functions return the escapement in pixels of the specified string as a value, using the fonts loaded for the specified font set. The escapement is the distance in pixels in the primary draw @@ -180,8 +180,9 @@ Regardless of the character rendering order, the escapement is always positive. .LP The function -.ZN XFree86utf8TextEscapement -is an XFree86 extension introduced in XFree86 4.0.2. Its presence is +.ZN Xutf8TextEscapement +is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH "SEE ALSO" diff --git a/man/XmbTextExtents.man b/man/XmbTextExtents.man index ad88c98..4c9ad9d 100644 --- a/man/XmbTextExtents.man +++ b/man/XmbTextExtents.man @@ -143,7 +143,7 @@ .ny0 .TH XmbTextExtents 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XmbTextExtents, XwcTextExtents, XFree86utf8TextExtents \- compute text extents +XmbTextExtents, XwcTextExtents, Xutf8TextExtents \- compute text extents .SH SYNTAX .HP int XmbTextExtents\^(\^XFontSet \fIfont_set\fP\^, char *\fIstring\fP\^, int @@ -154,7 +154,7 @@ int XwcTextExtents\^(\^XFontSet \fIfont_set\fP\^, wchar_t *\fIstring\fP\^, int \fInum_wchars\fP\^, XRectangle *\fIoverall_ink_return\fP\^, XRectangle *\fIoverall_logical_return\fP\^); .HP -int XFree86utf8TextExtents\^(\^XFontSet \fIfont_set\fP\^, char *\fIstring\fP\^, int +int Xutf8TextExtents\^(\^XFontSet \fIfont_set\fP\^, char *\fIstring\fP\^, int \fInum_bytes\fP\^, XRectangle *\fIoverall_ink_return\fP\^, XRectangle *\fIoverall_logical_return\fP\^); .SH ARGUMENTS @@ -176,7 +176,7 @@ The .ZN XmbTextExtents , .ZN XwcTextExtents and -.ZN XFree86utf8TextExtents +.ZN Xutf8TextExtents functions set the components of the specified overall_ink_return and overall_logical_return arguments to the overall bounding box of the string's image @@ -185,7 +185,7 @@ They return the value returned by .ZN XmbTextEscapement , .ZN XwcTextEscapement or -.ZN XFree86utf8TextEscapement . +.ZN Xutf8TextEscapement . These metrics are relative to the drawing origin of the string, using the fonts loaded for the specified font set. .LP @@ -216,8 +216,9 @@ so that the metrics represent the text as it will actually be drawn. The behavior for an invalid codepoint is undefined. .LP The function -.ZN XFree86utf8TextExtents -is an XFree86 extension introduced in XFree86 4.0.2. Its presence is +.ZN Xutf8TextExtents +is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH "SEE ALSO" diff --git a/man/XmbTextListToTextProperty.man b/man/XmbTextListToTextProperty.man index 28fce25..e6ef1a9 100644 --- a/man/XmbTextListToTextProperty.man +++ b/man/XmbTextListToTextProperty.man @@ -43,7 +43,7 @@ .\" It is provided ``as is'' without express or implied warranty. .\" .\" $XFree86: xc/doc/man/X11/XTLTTProp.man,v 1.6 2003/04/28 22:17:57 herrb Exp $ -.\" $XdotOrg: lib/X11/man/XmbTextListToTextProperty.man,v 1.1.4.5 2004-03-05 13:38:16 eich Exp $ +.\" $XdotOrg: lib/X11/man/XmbTextListToTextProperty.man,v 1.1.4.6 2004-04-15 10:13:25 eich Exp $ .\" .ds xT X Toolkit Intrinsics \- C Language Interface .ds xW Athena X Widgets \- C Language X Toolkit Interface @@ -146,7 +146,7 @@ '\" t .TH XmbTextListToTextProperty 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XmbTextListToTextProperty, XwcTextListToTextProperty, XFree86utf8TextListToTextProperty, XmbTextPropertyToTextList, XwcTextPropertyToTextList, XFree86utf8TextPropertyToTextList, XwcFreeStringList, XDefaultString \- convert text lists and text property structures +XmbTextListToTextProperty, XwcTextListToTextProperty, Xutf8TextListToTextProperty, XmbTextPropertyToTextList, XwcTextPropertyToTextList, Xutf8TextPropertyToTextList, XwcFreeStringList, XDefaultString \- convert text lists and text property structures .SH SYNTAX .HP int XmbTextListToTextProperty\^(\^Display *\fIdisplay\fP\^, char @@ -157,7 +157,7 @@ int XwcTextListToTextProperty\^(\^Display *\fIdisplay\fP\^, wchar_t **\fIlist\fP\^, int \fIcount\fP\^, XICCEncodingStyle \fIstyle\fP\^, XTextProperty *\fItext_prop_return\fP\^); .HP -int XFree86utf8TextListToTextProperty\^(\^Display *\fIdisplay\fP\^, char +int Xutf8TextListToTextProperty\^(\^Display *\fIdisplay\fP\^, char **\fIlist\fP\^, int \fIcount\fP\^, XICCEncodingStyle \fIstyle\fP\^, XTextProperty *\fItext_prop_return\fP\^); .HP @@ -168,7 +168,7 @@ int XwcTextPropertyToTextList\^(\^Display *\fIdisplay\fP\^, XTextProperty *\fItext_prop\fP\^, wchar_t ***\fIlist_return\fP\^, int *\fIcount_return\fP\^); .HP -int XFree86utf8TextPropertyToTextList\^(\^Display *\fIdisplay\fP\^, XTextProperty +int Xutf8TextPropertyToTextList\^(\^Display *\fIdisplay\fP\^, XTextProperty *\fItext_prop\fP\^, char ***\fIlist_return\fP\^, int *\fIcount_return\fP\^); .HP void XwcFreeStringList\^(\^wchar_t **\fIlist\fP\^); @@ -203,7 +203,7 @@ The .ZN XmbTextListToTextProperty , .ZN XwcTextListToTextProperty and -.ZN XFree86utf8TextListToTextProperty +.ZN Xutf8TextListToTextProperty functions set the specified .ZN XTextProperty value to a set of null-separated elements representing the concatenation @@ -213,7 +213,7 @@ strings must be given in the current locale encoding (for and .ZN XwcTextListToTextProperty ), or in UTF-8 encoding (for -.ZN XFree86utf8TextListToTextProperty ). +.ZN Xutf8TextListToTextProperty ). .LP The functions set the encoding field of text_prop_return to an .ZN Atom @@ -228,10 +228,11 @@ or is specified, this encoding is ``STRING'' or ``COMPOUND_TEXT'', respectively. If the style -.ZN XFree86Utf8StringStyle +.ZN XUTF8StringStyle is specified, -this encoding is ``UTF8_STRING''. (This is an XFree86 extension introduced in -XFree86 4.0.2. Its presence is indicated by the macro +this encoding is ``UTF8_STRING''. +(This is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING .) If the style .ZN XTextStyle @@ -276,7 +277,7 @@ The .ZN XmbTextPropertyToTextList , .ZN XwcTextPropertyToTextList and -.ZN XFree86utf8TextPropertyToTextList +.ZN Xutf8TextPropertyToTextList functions return a list of text strings representing the null-separated elements of the specified .ZN XTextProperty @@ -286,7 +287,7 @@ structure. The returned strings are encoded using the current locale encoding and .ZN XwcTextPropertyToTextList ) or in UTF-8 (for -.ZN XFree86utf8TextPropertyToTextList ). +.ZN Xutf8TextPropertyToTextList ). The data in text_prop must be format 8. .LP Multiple elements of the property (for example, the strings in a disjoint @@ -298,7 +299,7 @@ If insufficient memory is available for the list and its elements, .ZN XmbTextPropertyToTextList , .ZN XwcTextPropertyToTextList and -.ZN XFree86utf8TextPropertyToTextList +.ZN Xutf8TextPropertyToTextList return .ZN XNoMemory . If the current locale is not supported, @@ -324,7 +325,7 @@ Otherwise, .ZN XmbTextPropertyToTextList , .ZN XwcTextPropertyToTextList and -.ZN XFree86utf8TextPropertyToTextList +.ZN Xutf8TextPropertyToTextList return the list of null-terminated text strings to list_return and the number of text strings to count_return. .LP @@ -340,14 +341,14 @@ Otherwise, .ZN XmbTextPropertyToTextList , .ZN XwcTextPropertyToTextList and -.ZN XFree86utf8TextPropertyToTextList +.ZN Xutf8TextPropertyToTextList return .ZN Success . .LP To free the storage for the list and its contents returned by .ZN XmbTextPropertyToTextList or -.ZN XFree86utf8TextPropertyToTextList , +.ZN Xutf8TextPropertyToTextList , use .ZN XFreeStringList . To free the storage for the list and its contents returned by @@ -391,10 +392,11 @@ It may be freed after the current locale is changed. Until freed, it will not be modified by Xlib. .LP The functions -.ZN XFree86utf8TextListToTextProperty +.ZN Xutf8TextListToTextProperty and -.ZN XFree86utf8TextPropertyToTextList -are an XFree86 extension introduced in XFree86 4.0.2. Their presence is +.ZN Xutf8TextPropertyToTextList +are extensions introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Their presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH STRUCTURES @@ -449,7 +451,7 @@ typedef enum { XCompoundTextStyle, /\(** COMPOUND_TEXT */ XTextStyle, /\(** text in owner's encoding (current locale) */ XStdICCTextStyle, /\(** STRING, else COMPOUND_TEXT */ - XFree86Utf8StringStyle /\(** UTF8_STRING */ + XUTF8StringStyle /\(** UTF8_STRING */ } XICCEncodingStyle; .De .SH "SEE ALSO" diff --git a/man/XmbTextPerCharExtents.man b/man/XmbTextPerCharExtents.man index 09ede69..ba1d2e3 100644 --- a/man/XmbTextPerCharExtents.man +++ b/man/XmbTextPerCharExtents.man @@ -143,7 +143,7 @@ .ny0 .TH XmbTextPerCharExtents 3X11 __xorgversion__ "XLIB FUNCTIONS" .SH NAME -XmbTextPerCharExtents, XwcTextPerCharExtents, XFree86utf8TextPerCharExtents \- obtain per-character information for a text string +XmbTextPerCharExtents, XwcTextPerCharExtents, Xutf8TextPerCharExtents \- obtain per-character information for a text string .SH SYNTAX .HP Status XmbTextPerCharExtents\^(\^XFontSet \fIfont_set\fP\^, char @@ -158,7 +158,7 @@ Status XwcTextPerCharExtents\^(\^XFontSet \fIfont_set\fP\^, wchar_t \fIarray_size\fP\^, int *\fInum_chars_return\fP\^, XRectangle *\fIoverall_ink_return\fP\^, XRectangle *\fIoverall_logical_return\fP\^); .HP -Status XFree86utf8TextPerCharExtents\^(\^XFontSet \fIfont_set\fP\^, char +Status Xutf8TextPerCharExtents\^(\^XFontSet \fIfont_set\fP\^, char *\fIstring\fP\^, int \fInum_bytes\fP\^, XRectangle *\fIink_array_return\fP\^, XRectangle *\fIlogical_array_return\fP\^, int \fIarray_size\fP\^, int *\fInum_chars_return\fP\^, XRectangle *\fIoverall_ink_return\fP\^, XRectangle @@ -191,7 +191,7 @@ The .ZN XmbTextPerCharExtents , .ZN XwcTextPerCharExtents and -.ZN XFree86utf8TextPerCharExtents +.ZN Xutf8TextPerCharExtents functions return the text dimensions of each character of the specified text, using the fonts loaded for the specified font set. Each successive element of ink_array_return and logical_array_return @@ -237,17 +237,18 @@ If the overall_ink_return or overall_logical_return argument is non-NULL, .ZN XmbTextPerCharExtents , .ZN XwcTextPerCharExtents and -.ZN XFree86utf8TextPerCharExtents +.ZN Xutf8TextPerCharExtents return the maximum extent of the string's metrics to overall_ink_return or overall_logical_return, as returned by .ZN XmbTextExtents , .ZN XwcTextExtents or -.ZN XFree86utf8TextExtents . +.ZN Xutf8TextExtents . .LP The function -.ZN XFree86utf8TextPerCharExtents -is an XFree86 extension introduced in XFree86 4.0.2. Its presence is +.ZN Xutf8TextPerCharExtents +is an extension introduced by The XFree86 Project, Inc. in their 4.0.2 +release. Its presence is indicated by the macro .ZN X_HAVE_UTF8_STRING . .SH "SEE ALSO" diff --git a/modules/im/ximcp/imDefIc.c b/modules/im/ximcp/imDefIc.c index 63cd63e..8f3257e 100644 --- a/modules/im/ximcp/imDefIc.c +++ b/modules/im/ximcp/imDefIc.c @@ -1212,7 +1212,7 @@ _XimProtoWcReset( } Private char * -_XFree86imCommitedUtf8String( +_XimCommitedUtf8String( Xim im, Xic ic, XPointer buf) @@ -1262,10 +1262,10 @@ Error_On_Reset: } Private char * -_XFree86imProtoUtf8Reset( +_XimProtoUtf8Reset( XIC xic) { - return _XimProtoReset(xic, _XFree86imCommitedUtf8String); + return _XimProtoReset(xic, _XimCommitedUtf8String); } Private XICMethodsRec ic_methods = { @@ -1276,10 +1276,10 @@ Private XICMethodsRec ic_methods = { _XimProtoGetICValues, /* get_values */ _XimProtoMbReset, /* mb_reset */ _XimProtoWcReset, /* wc_reset */ - _XFree86imProtoUtf8Reset, /* utf8_reset */ + _XimProtoUtf8Reset, /* utf8_reset */ _XimProtoMbLookupString, /* mb_lookup_string */ _XimProtoWcLookupString, /* wc_lookup_string */ - _XFree86imProtoUtf8LookupString /* utf8_lookup_string */ + _XimProtoUtf8LookupString /* utf8_lookup_string */ }; Private Bool diff --git a/modules/im/ximcp/imDefIm.c b/modules/im/ximcp/imDefIm.c index 30ab028..9e63102 100644 --- a/modules/im/ximcp/imDefIm.c +++ b/modules/im/ximcp/imDefIm.c @@ -1587,7 +1587,7 @@ _XimGetEncoding( XlcNCompoundText, lcd, XlcNWideChar))) return False; if (!(ctoutf8_conv = _XlcOpenConverter(lcd, - XlcNCompoundText, lcd, XFree86lcNUtf8String))) + XlcNCompoundText, lcd, XlcNUtf8String))) return False; } @@ -1602,7 +1602,7 @@ _XimGetEncoding( XlcNCompoundText, lcd, XlcNWideChar))) return False; if (!(ctoutf8_conv = _XlcOpenConverter(lcd, - XlcNCompoundText, lcd, XFree86lcNUtf8String))) + XlcNCompoundText, lcd, XlcNUtf8String))) return False; break; } else { @@ -1634,7 +1634,7 @@ _XimGetEncoding( return False; private->cstowc_conv = conv; - if (!(conv = _XlcOpenConverter(lcd, XlcNCharSet, lcd, XFree86lcNUtf8String))) + if (!(conv = _XlcOpenConverter(lcd, XlcNCharSet, lcd, XlcNUtf8String))) return False; private->cstoutf8_conv = conv; @@ -1642,7 +1642,7 @@ _XimGetEncoding( return False; private->ucstoc_conv = conv; - if (!(conv = _XlcOpenConverter(lcd, XlcNUcsChar, lcd, XFree86lcNUtf8String))) + if (!(conv = _XlcOpenConverter(lcd, XlcNUcsChar, lcd, XlcNUtf8String))) return False; private->ucstoutf8_conv = conv; diff --git a/modules/im/ximcp/imDefLkup.c b/modules/im/ximcp/imDefLkup.c index 59cc383..21ddedf 100644 --- a/modules/im/ximcp/imDefLkup.c +++ b/modules/im/ximcp/imDefLkup.c @@ -1105,7 +1105,7 @@ _XimProtoWcLookupString( } Public int -_XFree86imProtoUtf8LookupString( +_XimProtoUtf8LookupString( XIC xic, XKeyEvent *ev, char *buffer, @@ -1145,7 +1145,7 @@ _XFree86imProtoUtf8LookupString( _XimUnregCommitInfo(ic); } else if (ev->type == KeyPress) { - ret = _XFree86imLookupUtf8Text(ic, ev, buffer, bytes, keysym, NULL); + ret = _XimLookupUTF8Text(ic, ev, buffer, bytes, keysym, NULL); if (ret > 0) { if (ret > bytes) *state = XBufferOverflow; diff --git a/modules/im/ximcp/imLcIc.c b/modules/im/ximcp/imLcIc.c index 00b4184..1fbb694 100644 --- a/modules/im/ximcp/imLcIc.c +++ b/modules/im/ximcp/imLcIc.c @@ -125,7 +125,7 @@ Private XICMethodsRec Local_ic_methods = { _XimLocalMbReset, /* utf8_reset */ _XimLocalMbLookupString, /* mb_lookup_string */ _XimLocalWcLookupString, /* wc_lookup_string */ - _XFree86imLocalUtf8LookupString /* utf8_lookup_string */ + _XimLocalUtf8LookupString /* utf8_lookup_string */ }; Public XIC diff --git a/modules/im/ximcp/imLcIm.c b/modules/im/ximcp/imLcIm.c index e1b6c75..e10ed91 100644 --- a/modules/im/ximcp/imLcIm.c +++ b/modules/im/ximcp/imLcIm.c @@ -300,7 +300,7 @@ _XimLocalOpenIM( goto Open_Error; private->ctow_conv = conv; - if (!(conv = _XlcOpenConverter(lcd, XlcNCompoundText, lcd, XFree86lcNUtf8String))) + if (!(conv = _XlcOpenConverter(lcd, XlcNCompoundText, lcd, XlcNUtf8String))) goto Open_Error; private->ctoutf8_conv = conv; @@ -312,7 +312,7 @@ _XimLocalOpenIM( goto Open_Error; private->cstowc_conv = conv; - if (!(conv = _XlcOpenConverter(lcd, XlcNCharSet, lcd, XFree86lcNUtf8String))) + if (!(conv = _XlcOpenConverter(lcd, XlcNCharSet, lcd, XlcNUtf8String))) goto Open_Error; private->cstoutf8_conv = conv; @@ -320,7 +320,7 @@ _XimLocalOpenIM( goto Open_Error; private->ucstoc_conv = conv; - if (!(conv = _XlcOpenConverter(lcd, XlcNUcsChar, lcd, XFree86lcNUtf8String))) + if (!(conv = _XlcOpenConverter(lcd, XlcNUcsChar, lcd, XlcNUtf8String))) goto Open_Error; private->ucstoutf8_conv = conv; diff --git a/modules/im/ximcp/imLcLkup.c b/modules/im/ximcp/imLcLkup.c index b3d819b..f21e5c5 100644 --- a/modules/im/ximcp/imLcLkup.c +++ b/modules/im/ximcp/imLcLkup.c @@ -161,7 +161,7 @@ _XimLocalWcLookupString(xic, ev, buffer, wlen, keysym, status) } Public int -_XFree86imLocalUtf8LookupString(xic, ev, buffer, bytes, keysym, status) +_XimLocalUtf8LookupString(xic, ev, buffer, bytes, keysym, status) XIC xic; XKeyEvent *ev; char *buffer; @@ -199,7 +199,7 @@ _XFree86imLocalUtf8LookupString(xic, ev, buffer, bytes, keysym, status) } return (ret); } else { /* Throughed Event */ - ret = _XFree86imLookupUtf8Text(ic, ev, buffer, bytes, keysym, NULL); + ret = _XimLookupUTF8Text(ic, ev, buffer, bytes, keysym, NULL); if(ret > 0) { if (ret > bytes) { if (status) *status = XBufferOverflow; diff --git a/modules/im/ximcp/imLcPrs.c b/modules/im/ximcp/imLcPrs.c index 5122820..ee2c4b8 100644 --- a/modules/im/ximcp/imLcPrs.c +++ b/modules/im/ximcp/imLcPrs.c @@ -47,7 +47,7 @@ extern int _Xmbstowcs( int len ); -extern int _XFree86mbstoutf8( +extern int _Xmbstoutf8( char *ustr, const char *str, int len @@ -584,7 +584,7 @@ parseline( } memcpy((char *)rhs_string_wc, (char *)local_wc_buf, (l + 1) * sizeof(wchar_t) ); - l = _XFree86mbstoutf8(local_utf8_buf, rhs_string_mb, LOCAL_UTF8_BUFSIZE - 1); + l = _Xmbstoutf8(local_utf8_buf, rhs_string_mb, LOCAL_UTF8_BUFSIZE - 1); if (l == LOCAL_UTF8_BUFSIZE - 1) { local_wc_buf[l] = '\0'; } diff --git a/modules/im/ximcp/imThaiFlt.c b/modules/im/ximcp/imThaiFlt.c index a42aa07..ae54617 100644 --- a/modules/im/ximcp/imThaiFlt.c +++ b/modules/im/ximcp/imThaiFlt.c @@ -1358,7 +1358,7 @@ XPointer client_data; _Xlcwcstombs(ic->core.im->core.lcd, ic->private.local.composed->mb, ic->private.local.composed->wc, 10); - _XFree86lcmbstoutf8(ic->core.im->core.lcd, ic->private.local.composed->utf8, + _Xlcmbstoutf8(ic->core.im->core.lcd, ic->private.local.composed->utf8, ic->private.local.composed->mb, 10); /* Remember the last character inputted diff --git a/modules/im/ximcp/imThaiIc.c b/modules/im/ximcp/imThaiIc.c index c42ea57..997ee8b 100644 --- a/modules/im/ximcp/imThaiIc.c +++ b/modules/im/ximcp/imThaiIc.c @@ -138,7 +138,7 @@ Private XICMethodsRec Thai_ic_methods = { _XimThaiMbReset, /* utf8_reset */ _XimLocalMbLookupString, /* mb_lookup_string */ _XimLocalWcLookupString, /* wc_lookup_string */ - _XFree86imLocalUtf8LookupString /* utf8_lookup_string */ + _XimLocalUtf8LookupString /* utf8_lookup_string */ }; XIC diff --git a/modules/im/ximcp/imThaiIm.c b/modules/im/ximcp/imThaiIm.c index b8f29fa..5a3c0fa 100644 --- a/modules/im/ximcp/imThaiIm.c +++ b/modules/im/ximcp/imThaiIm.c @@ -106,7 +106,7 @@ _XimThaiOpenIM(im) goto Open_Error; private->ctow_conv = conv; - if (!(conv = _XlcOpenConverter(lcd, XlcNCompoundText, lcd, XFree86lcNUtf8String))) + if (!(conv = _XlcOpenConverter(lcd, XlcNCompoundText, lcd, XlcNUtf8String))) goto Open_Error; private->ctoutf8_conv = conv; @@ -118,7 +118,7 @@ _XimThaiOpenIM(im) goto Open_Error; private->cstowc_conv = conv; - if (!(conv = _XlcOpenConverter(lcd, XlcNCharSet, lcd, XFree86lcNUtf8String))) + if (!(conv = _XlcOpenConverter(lcd, XlcNCharSet, lcd, XlcNUtf8String))) goto Open_Error; private->cstoutf8_conv = conv; @@ -126,7 +126,7 @@ _XimThaiOpenIM(im) goto Open_Error; private->ucstoc_conv = conv; - if (!(conv = _XlcOpenConverter(lcd, XlcNUcsChar, lcd, XFree86lcNUtf8String))) + if (!(conv = _XlcOpenConverter(lcd, XlcNUcsChar, lcd, XlcNUtf8String))) goto Open_Error; private->ucstoutf8_conv = conv; diff --git a/modules/lc/Utf8/lcUTF8Load.c b/modules/lc/Utf8/lcUTF8Load.c index b4d0953..30e48dd 100644 --- a/modules/lc/Utf8/lcUTF8Load.c +++ b/modules/lc/Utf8/lcUTF8Load.c @@ -54,8 +54,8 @@ _XlcUtf8Loader( return (XLCd) NULL; } - _XFree86lcAddUtf8LocaleConverters(lcd); - _XFree86lcAddUtf8Converters(lcd); + _XlcAddUtf8LocaleConverters(lcd); + _XlcAddUtf8Converters(lcd); return lcd; } diff --git a/modules/lc/def/lcDefConv.c b/modules/lc/def/lcDefConv.c index 9788313..4bcbe6b 100644 --- a/modules/lc/def/lcDefConv.c +++ b/modules/lc/def/lcDefConv.c @@ -784,7 +784,7 @@ _XlcDefaultLoader( _XlcSetConverter(lcd, XlcNCharSet, lcd, XlcNMultiByte, open_cstombs); _XlcSetConverter(lcd, XlcNCharSet, lcd, XlcNWideChar, open_cstowcs); - _XFree86lcAddUtf8Converters(lcd); + _XlcAddUtf8Converters(lcd); return lcd; } diff --git a/modules/lc/gen/lcGenConv.c b/modules/lc/gen/lcGenConv.c index 2139c5e..1720a8f 100644 --- a/modules/lc/gen/lcGenConv.c +++ b/modules/lc/gen/lcGenConv.c @@ -3142,7 +3142,7 @@ _XlcGenericLoader( } #endif - _XFree86lcAddUtf8Converters(lcd); + _XlcAddUtf8Converters(lcd); return lcd; } diff --git a/modules/lc/xlocale/lcEuc.c b/modules/lc/xlocale/lcEuc.c index 816db8b..023db40 100644 --- a/modules/lc/xlocale/lcEuc.c +++ b/modules/lc/xlocale/lcEuc.c @@ -1488,7 +1488,7 @@ _XlcEucLoader( _XlcSetConverter(lcd, XlcNWideChar, lcd, XlcNMultiByte, open_wcstombs); #endif - _XFree86lcAddUtf8Converters(lcd); + _XlcAddUtf8Converters(lcd); return lcd; } diff --git a/modules/lc/xlocale/lcJis.c b/modules/lc/xlocale/lcJis.c index 819812e..9f93773 100644 --- a/modules/lc/xlocale/lcJis.c +++ b/modules/lc/xlocale/lcJis.c @@ -934,7 +934,7 @@ _XlcJisLoader( } #endif - _XFree86lcAddUtf8Converters(lcd); + _XlcAddUtf8Converters(lcd); return lcd; } diff --git a/modules/lc/xlocale/lcSjis.c b/modules/lc/xlocale/lcSjis.c index e17bc7a..1bbed86 100644 --- a/modules/lc/xlocale/lcSjis.c +++ b/modules/lc/xlocale/lcSjis.c @@ -1556,7 +1556,7 @@ _XlcSjisLoader( _XlcSetConverter(lcd, XlcNWideChar, lcd, XlcNMultiByte, open_wcstombs); #endif - _XFree86lcAddUtf8Converters(lcd); + _XlcAddUtf8Converters(lcd); return lcd; } diff --git a/modules/om/generic/omDefault.c b/modules/om/generic/omDefault.c index 3555fa6..a4765b5 100644 --- a/modules/om/generic/omDefault.c +++ b/modules/om/generic/omDefault.c @@ -73,7 +73,7 @@ utf8_to_mbs( XlcConv conv; int to_left, ret; - conv = _XomInitConverter(oc, XFree86OMUtf8String); + conv = _XomInitConverter(oc, XOMUtf8String); if (conv == NULL) return False; @@ -116,7 +116,7 @@ err: } int -_XFree86utf8DefaultTextEscapement(XOC oc, _Xconst char *text, int length) +_Xutf8DefaultTextEscapement(XOC oc, _Xconst char *text, int length) { DefineLocalBuf; char *buf = AllocLocalBuf(length); @@ -190,9 +190,8 @@ err: } int -_XFree86utf8DefaultTextExtents(XOC oc, _Xconst char *text, int length, - XRectangle *overall_ink, - XRectangle *overall_logical) +_Xutf8DefaultTextExtents(XOC oc, _Xconst char *text, int length, + XRectangle *overall_ink, XRectangle *overall_logical) { DefineLocalBuf; char *buf = AllocLocalBuf(length); @@ -314,12 +313,11 @@ err: } Status -_XFree86utf8DefaultTextPerCharExtents(XOC oc, _Xconst char *text, int length, - XRectangle *ink_buf, - XRectangle *logical_buf, - int buf_size, int *num_chars, - XRectangle *overall_ink, - XRectangle *overall_logical) +_Xutf8DefaultTextPerCharExtents(XOC oc, _Xconst char *text, int length, + XRectangle *ink_buf, XRectangle *logical_buf, + int buf_size, int *num_chars, + XRectangle *overall_ink, + XRectangle *overall_logical) { DefineLocalBuf; char *buf = AllocLocalBuf(length); @@ -380,8 +378,8 @@ err: } int -_XFree86utf8DefaultDrawString(Display *dpy, Drawable d, XOC oc, GC gc, - int x, int y, _Xconst char *text, int length) +_Xutf8DefaultDrawString(Display *dpy, Drawable d, XOC oc, GC gc, int x, int y, + _Xconst char *text, int length) { DefineLocalBuf; char *buf = AllocLocalBuf(length); @@ -431,8 +429,8 @@ err: } void -_XFree86utf8DefaultDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, - int x, int y, _Xconst char *text, int length) +_Xutf8DefaultDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, int x, + int y, _Xconst char *text, int length) { DefineLocalBuf; char *buf = AllocLocalBuf(length); diff --git a/modules/om/generic/omGeneric.c b/modules/om/generic/omGeneric.c index e2e859b..452f0ef 100644 --- a/modules/om/generic/omGeneric.c +++ b/modules/om/generic/omGeneric.c @@ -66,26 +66,26 @@ #if 0 extern int _XmbDefaultTextEscapement(), _XwcDefaultTextEscapement(), - _XFree86utf8DefaultTextEscapement(); + _Xutf8DefaultTextEscapement(); extern int _XmbDefaultTextExtents(), _XwcDefaultTextExtents(), - _XFree86utf8DefaultTextExtents(); + _Xutf8DefaultTextExtents(); extern Status _XmbDefaultTextPerCharExtents(), _XwcDefaultTextPerCharExtents(), - _XFree86utf8DefaultTextPerCharExtents(); + _Xutf8DefaultTextPerCharExtents(); extern int _XmbDefaultDrawString(), _XwcDefaultDrawString(), - _XFree86utf8DefaultDrawString(); + _Xutf8DefaultDrawString(); extern void _XmbDefaultDrawImageString(), _XwcDefaultDrawImageString(), - _XFree86utf8DefaultDrawImageString(); + _Xutf8DefaultDrawImageString(); extern int _XmbGenericTextEscapement(), _XwcGenericTextEscapement(), - _XFree86utf8GenericTextEscapement(); + _Xutf8GenericTextEscapement(); extern int _XmbGenericTextExtents(), _XwcGenericTextExtents(), - _XFree86utf8GenericTextExtents(); + _Xutf8GenericTextExtents(); extern Status _XmbGenericTextPerCharExtents(), _XwcGenericTextPerCharExtents(), - _XFree86utf8GenericTextPerCharExtents(); + _Xutf8GenericTextPerCharExtents(); extern int _XmbGenericDrawString(), _XwcGenericDrawString(), - _XFree86utf8GenericDrawString(); + _Xutf8GenericDrawString(); extern void _XmbGenericDrawImageString(), _XwcGenericDrawImageString(), - _XFree86utf8GenericDrawImageString(); + _Xutf8GenericDrawImageString(); extern void _XlcDbg_printValue (const char *str, char **value, int num); #endif @@ -1583,11 +1583,11 @@ static XOCMethodsRec oc_default_methods = { _XwcDefaultTextPerCharExtents, _XwcDefaultDrawString, _XwcDefaultDrawImageString, - _XFree86utf8DefaultTextEscapement, - _XFree86utf8DefaultTextExtents, - _XFree86utf8DefaultTextPerCharExtents, - _XFree86utf8DefaultDrawString, - _XFree86utf8DefaultDrawImageString + _Xutf8DefaultTextEscapement, + _Xutf8DefaultTextExtents, + _Xutf8DefaultTextPerCharExtents, + _Xutf8DefaultDrawString, + _Xutf8DefaultDrawImageString }; static XOCMethodsRec oc_generic_methods = { @@ -1604,11 +1604,11 @@ static XOCMethodsRec oc_generic_methods = { _XwcGenericTextPerCharExtents, _XwcGenericDrawString, _XwcGenericDrawImageString, - _XFree86utf8GenericTextEscapement, - _XFree86utf8GenericTextExtents, - _XFree86utf8GenericTextPerCharExtents, - _XFree86utf8GenericDrawString, - _XFree86utf8GenericDrawImageString + _Xutf8GenericTextEscapement, + _Xutf8GenericTextExtents, + _Xutf8GenericTextPerCharExtents, + _Xutf8GenericDrawString, + _Xutf8GenericDrawImageString }; typedef struct _XOCMethodsListRec { diff --git a/modules/om/generic/omImText.c b/modules/om/generic/omImText.c index 8e0a583..25ee615 100644 --- a/modules/om/generic/omImText.c +++ b/modules/om/generic/omImText.c @@ -81,9 +81,9 @@ _XwcGenericDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, int x, } void -_XFree86utf8GenericDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, - int x, int y, _Xconst char *text, int length) +_Xutf8GenericDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, int x, + int y, _Xconst char *text, int length) { - _XomGenericDrawImageString(dpy, d, oc, gc, x, y, XFree86OMUtf8String, + _XomGenericDrawImageString(dpy, d, oc, gc, x, y, XOMUtf8String, (XPointer) text, length); } diff --git a/modules/om/generic/omText.c b/modules/om/generic/omText.c index 2b7dd4d..28c49b7 100644 --- a/modules/om/generic/omText.c +++ b/modules/om/generic/omText.c @@ -361,9 +361,9 @@ _XwcGenericDrawString(Display *dpy, Drawable d, XOC oc, GC gc, int x, int y, } int -_XFree86utf8GenericDrawString(Display *dpy, Drawable d, XOC oc, GC gc, - int x, int y, _Xconst char *text, int length) +_Xutf8GenericDrawString(Display *dpy, Drawable d, XOC oc, GC gc, int x, int y, + _Xconst char *text, int length) { - return _XomGenericDrawString(dpy, d, oc, gc, x, y, XFree86OMUtf8String, + return _XomGenericDrawString(dpy, d, oc, gc, x, y, XOMUtf8String, (XPointer) text, length); } diff --git a/modules/om/generic/omTextEsc.c b/modules/om/generic/omTextEsc.c index 682b547..f9b9ebd 100644 --- a/modules/om/generic/omTextEsc.c +++ b/modules/om/generic/omTextEsc.c @@ -292,8 +292,8 @@ _XwcGenericTextEscapement(XOC oc, _Xconst wchar_t *text, int length) } int -_XFree86utf8GenericTextEscapement(XOC oc, _Xconst char *text, int length) +_Xutf8GenericTextEscapement(XOC oc, _Xconst char *text, int length) { - return _XomGenericTextEscapement(oc, XFree86OMUtf8String, (XPointer) text, + return _XomGenericTextEscapement(oc, XOMUtf8String, (XPointer) text, length); } diff --git a/modules/om/generic/omTextExt.c b/modules/om/generic/omTextExt.c index 650a5ca..8186f96 100644 --- a/modules/om/generic/omTextExt.c +++ b/modules/om/generic/omTextExt.c @@ -126,9 +126,9 @@ _XwcGenericTextExtents(XOC oc, _Xconst wchar_t *text, int length, } int -_XFree86utf8GenericTextExtents(XOC oc, _Xconst char *text, int length, +_Xutf8GenericTextExtents(XOC oc, _Xconst char *text, int length, XRectangle *overall_ink, XRectangle *overall_logical) { - return _XomGenericTextExtents(oc, XFree86OMUtf8String, (XPointer) text, - length, overall_ink, overall_logical); + return _XomGenericTextExtents(oc, XOMUtf8String, (XPointer) text, length, + overall_ink, overall_logical); } diff --git a/modules/om/generic/omTextPer.c b/modules/om/generic/omTextPer.c index 3181a14..816c9f5 100644 --- a/modules/om/generic/omTextPer.c +++ b/modules/om/generic/omTextPer.c @@ -188,15 +188,14 @@ _XwcGenericTextPerCharExtents(XOC oc, _Xconst wchar_t *text, int length, } Status -_XFree86utf8GenericTextPerCharExtents(XOC oc, _Xconst char *text, int length, - XRectangle *ink_buf, - XRectangle *logical_buf, - int buf_size, int *num_chars, - XRectangle *overall_ink, - XRectangle *overall_logical) +_Xutf8GenericTextPerCharExtents(XOC oc, _Xconst char *text, int length, + XRectangle *ink_buf, XRectangle *logical_buf, + int buf_size, int *num_chars, + XRectangle *overall_ink, + XRectangle *overall_logical) { - return _XomGenericTextPerCharExtents(oc, XFree86OMUtf8String, - (XPointer) text, length, ink_buf, - logical_buf, buf_size, num_chars, - overall_ink, overall_logical); + return _XomGenericTextPerCharExtents(oc, XOMUtf8String, (XPointer) text, + length, ink_buf, logical_buf, buf_size, + num_chars, overall_ink, + overall_logical); } diff --git a/modules/om/generic/omXChar.c b/modules/om/generic/omXChar.c index ef3bb4c..73b7708 100644 --- a/modules/om/generic/omXChar.c +++ b/modules/om/generic/omXChar.c @@ -448,9 +448,9 @@ _XomInitConverter( convp = &gen->mbs_to_cs; conv_type = XlcNMultiByte; break; - case XFree86OMUtf8String: + case XOMUtf8String: convp = &gen->utf8_to_cs; - conv_type = XFree86lcNUtf8String; + conv_type = XlcNUtf8String; break; default: return (XlcConv) NULL; @@ -1,78 +1,125 @@ /* $Xorg: Host.c,v 1.4 2001/02/09 02:03:33 xorgcvs Exp $ */ +/* $XdotOrg: lib/X11/src/Host.c,v 1.1.4.3 2004-04-15 10:14:54 eich Exp $ */ /* Copyright 1986, 1998 The Open Group +Copyright 2004 Sun Microsystems, Inc. -Permission to use, copy, modify, distribute, and sell this software and its -documentation for any purpose is hereby granted without fee, provided that -the above copyright notice appear in all copies and that both that -copyright notice and this permission notice appear in supporting -documentation. +All rights reserved. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, and/or sell copies of the Software, and to permit persons +to whom the Software is furnished to do so, provided that the above +copyright notice(s) and this permission notice appear in all copies of +the Software and that both the above copyright notice(s) and this +permission notice appear in supporting documentation. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL +INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING +FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION +WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -Except as contained in this notice, the name of The Open Group shall not be -used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization from The Open Group. +Except as contained in this notice, the name of a copyright holder +shall not be used in advertising or otherwise to promote the sale, use +or other dealings in this Software without prior written authorization +of the copyright holder. + +X Window System is a trademark of The Open Group. */ /* $XFree86: xc/lib/X11/Host.c,v 1.3 2001/01/17 19:41:37 dawes Exp $ */ -/* this might be rightly reguarded an os dependent file */ +/* this might be rightly regarded an os dependent file */ #include "Xlibint.h" int -XAddHost (dpy, host) - register Display *dpy; - XHostAddress *host; - { +XAddHost ( + register Display *dpy, + XHostAddress *host) +{ register xChangeHostsReq *req; - register int length = (host->length + 3) & ~0x3; /* round up */ + register int length; + XServerInterpretedAddress *siAddr; + int addrlen; + + if (host->family == FamilyServerInterpreted) { + siAddr = (XServerInterpretedAddress *) host->address; + addrlen = siAddr->typelength + siAddr->valuelength + 1; + } else { + addrlen = host->length; + } + + length = (addrlen + 3) & ~0x3; /* round up */ LockDisplay(dpy); GetReqExtra (ChangeHosts, length, req); req->mode = HostInsert; req->hostFamily = host->family; - req->hostLength = host->length; - memcpy((char *) NEXTPTR(req,xChangeHostsReq), host->address, host->length); + req->hostLength = addrlen; + if (host->family == FamilyServerInterpreted) { + char *dest = (char *) NEXTPTR(req,xChangeHostsReq); + memcpy(dest, siAddr->type, siAddr->typelength); + dest[siAddr->typelength] = '\0'; + memcpy(dest + siAddr->typelength + 1,siAddr->value,siAddr->valuelength); + } else { + memcpy((char *) NEXTPTR(req,xChangeHostsReq), host->address, addrlen); + } UnlockDisplay(dpy); SyncHandle(); return 1; - } +} int -XRemoveHost (dpy, host) - register Display *dpy; - XHostAddress *host; - { +XRemoveHost ( + register Display *dpy, + XHostAddress *host) +{ register xChangeHostsReq *req; - register int length = (host->length + 3) & ~0x3; /* round up */ + register int length; + XServerInterpretedAddress *siAddr; + int addrlen; + + if (host->family == FamilyServerInterpreted) { + siAddr = (XServerInterpretedAddress *) host->address; + addrlen = siAddr->typelength + siAddr->valuelength + 1; + } else { + addrlen = host->length; + } + + length = (addrlen + 3) & ~0x3; /* round up */ LockDisplay(dpy); GetReqExtra (ChangeHosts, length, req); req->mode = HostDelete; req->hostFamily = host->family; - req->hostLength = host->length; - memcpy((char *) NEXTPTR(req,xChangeHostsReq), host->address, host->length); + req->hostLength = addrlen; + if (host->family == FamilyServerInterpreted) { + char *dest = (char *) NEXTPTR(req,xChangeHostsReq); + memcpy(dest, siAddr->type, siAddr->typelength); + dest[siAddr->typelength] = '\0'; + memcpy(dest + siAddr->typelength + 1,siAddr->value,siAddr->valuelength); + } else { + memcpy((char *) NEXTPTR(req,xChangeHostsReq), host->address, addrlen); + } UnlockDisplay(dpy); SyncHandle(); return 1; - } +} int -XAddHosts (dpy, hosts, n) - register Display *dpy; - XHostAddress *hosts; - int n; +XAddHosts ( + register Display *dpy, + XHostAddress *hosts, + int n) { register int i; for (i = 0; i < n; i++) { @@ -82,10 +129,10 @@ XAddHosts (dpy, hosts, n) } int -XRemoveHosts (dpy, hosts, n) - register Display *dpy; - XHostAddress *hosts; - int n; +XRemoveHosts ( + register Display *dpy, + XHostAddress *hosts, + int n) { register int i; for (i = 0; i < n; i++) { diff --git a/src/LiHosts.c b/src/LiHosts.c index 2f22d71..31d72d0 100644 --- a/src/LiHosts.c +++ b/src/LiHosts.c @@ -1,27 +1,38 @@ /* $Xorg: LiHosts.c,v 1.4 2001/02/09 02:03:34 xorgcvs Exp $ */ +/* $XdotOrg: lib/X11/src/LiHosts.c,v 1.1.4.1 2004-04-15 10:14:54 eich Exp $ */ /* Copyright 1986, 1998 The Open Group - -Permission to use, copy, modify, distribute, and sell this software and its -documentation for any purpose is hereby granted without fee, provided that -the above copyright notice appear in all copies and that both that -copyright notice and this permission notice appear in supporting -documentation. - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of The Open Group shall not be -used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization from The Open Group. +Copyright 2004 Sun Microsystems, Inc. + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, and/or sell copies of the Software, and to permit persons +to whom the Software is furnished to do so, provided that the above +copyright notice(s) and this permission notice appear in all copies of +the Software and that both the above copyright notice(s) and this +permission notice appear in supporting documentation. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL +INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING +FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION +WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Except as contained in this notice, the name of a copyright holder +shall not be used in advertising or otherwise to promote the sale, use +or other dealings in this Software without prior written authorization +of the copyright holder. + +X Window System is a trademark of The Open Group. */ @@ -33,17 +44,18 @@ in this Software without prior written authorization from The Open Group. * can be freed using XFree. */ -XHostAddress *XListHosts (dpy, nhosts, enabled) - register Display *dpy; - int *nhosts; /* RETURN */ - Bool *enabled; /* RETURN */ - { +XHostAddress *XListHosts ( + register Display *dpy, + int *nhosts, /* RETURN */ + Bool *enabled) /* RETURN */ +{ register XHostAddress *outbuf = 0, *op; xListHostsReply reply; long nbytes; unsigned char *buf, *bp; register unsigned i; register xListHostsReq *req; + XServerInterpretedAddress *sip; *nhosts = 0; LockDisplay(dpy); @@ -56,9 +68,15 @@ XHostAddress *XListHosts (dpy, nhosts, enabled) } if (reply.nHosts) { + unsigned int l; nbytes = reply.length << 2; /* compute number of bytes in reply */ + l = (unsigned) (nbytes + + (reply.nHosts * sizeof(XHostAddress)) + + (reply.nHosts * sizeof(XServerInterpretedAddress))); op = outbuf = (XHostAddress *) - Xmalloc((unsigned) (nbytes + reply.nHosts * sizeof(XHostAddress))); + Xmalloc((unsigned) (nbytes + + (reply.nHosts * sizeof(XHostAddress)) + + (reply.nHosts * sizeof(XServerInterpretedAddress)))); if (! outbuf) { _XEatData(dpy, (unsigned long) nbytes); @@ -66,8 +84,10 @@ XHostAddress *XListHosts (dpy, nhosts, enabled) SyncHandle(); return (XHostAddress *) NULL; } - bp = buf = - ((unsigned char *) outbuf) + reply.nHosts * sizeof(XHostAddress); + sip = (XServerInterpretedAddress *) + (((unsigned char *) outbuf) + (reply.nHosts * sizeof(XHostAddress))); + bp = buf = ((unsigned char *) sip) + + (reply.nHosts * sizeof(XServerInterpretedAddress)); _XRead (dpy, (char *) buf, nbytes); @@ -81,7 +101,24 @@ XHostAddress *XListHosts (dpy, nhosts, enabled) op->family = ((xHostEntry *) bp)->family; op->length =((xHostEntry *) bp)->length; #endif - op->address = (char *) (bp + SIZEOF(xHostEntry)); + if (op->family == FamilyServerInterpreted) { + char *tp = (char *) (bp + SIZEOF(xHostEntry)); + char *vp = memchr(tp, 0, op->length); + + if (vp != NULL) { + sip->type = tp; + sip->typelength = vp - tp; + sip->value = vp + 1; + sip->valuelength = op->length - (sip->typelength + 1); + } else { + sip->type = sip->value = NULL; + sip->typelength = sip->valuelength = 0; + } + op->address = (char *) sip; + sip++; + } else { + op->address = (char *) (bp + SIZEOF(xHostEntry)); + } bp += SIZEOF(xHostEntry) + (((op->length + 3) >> 2) << 2); op++; } diff --git a/src/XomGeneric.h b/src/XomGeneric.h index 6f0e7cd..ce61eca 100644 --- a/src/XomGeneric.h +++ b/src/XomGeneric.h @@ -61,7 +61,7 @@ typedef struct _VRotateRec { typedef enum { XOMMultiByte, XOMWideChar, - XFree86OMUtf8String + XOMUtf8String } XOMTextType; typedef struct _FontDataRec { @@ -178,7 +178,7 @@ _XmbDefaultTextEscapement(XOC oc, _Xconst char *text, int length); extern int _XwcDefaultTextEscapement(XOC oc, _Xconst wchar_t *text, int length); extern int -_XFree86utf8DefaultTextEscapement(XOC oc, _Xconst char *text, int length); +_Xutf8DefaultTextEscapement(XOC oc, _Xconst char *text, int length); extern int _XmbDefaultTextExtents(XOC oc, _Xconst char *text, int length, XRectangle *overall_ink, XRectangle *overall_logical); @@ -186,7 +186,7 @@ extern int _XwcDefaultTextExtents(XOC oc, _Xconst wchar_t *text, int length, XRectangle *overall_ink, XRectangle *overall_logical); extern int -_XFree86utf8DefaultTextExtents(XOC oc, _Xconst char *text, int length, +_Xutf8DefaultTextExtents(XOC oc, _Xconst char *text, int length, XRectangle *overall_ink, XRectangle *overall_logical); extern Status _XmbDefaultTextPerCharExtents( @@ -203,7 +203,7 @@ _XwcDefaultTextPerCharExtents( XRectangle *overall_ink, XRectangle *overall_logical); extern Status -_XFree86utf8DefaultTextPerCharExtents( +_Xutf8DefaultTextPerCharExtents( XOC oc, _Xconst char *text, int length, XRectangle *ink_buf, XRectangle *logical_buf, int buf_size, int *num_chars, @@ -216,8 +216,8 @@ extern int _XwcDefaultDrawString(Display *dpy, Drawable d, XOC oc, GC gc, int x, int y, _Xconst wchar_t *text, int length); extern int -_XFree86utf8DefaultDrawString(Display *dpy, Drawable d, XOC oc, GC gc, - int x, int y, _Xconst char *text, int length); +_Xutf8DefaultDrawString(Display *dpy, Drawable d, XOC oc, GC gc, int x, int y, + _Xconst char *text, int length); extern void _XmbDefaultDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, int x, int y, _Xconst char *text, int length); @@ -225,8 +225,8 @@ extern void _XwcDefaultDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, int x, int y, _Xconst wchar_t *text, int length); extern void -_XFree86utf8DefaultDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, - int x, int y, _Xconst char *text, int length); +_Xutf8DefaultDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, int x, + int y, _Xconst char *text, int length); extern int _XmbGenericTextEscapement(XOC oc, _Xconst char *text, int length); @@ -234,23 +234,23 @@ extern int _XmbGenericTextExtents(XOC oc, _Xconst char *text, int length, XRectangle *overall_ink, XRectangle *overall_logical); extern int -_XFree86utf8GenericDrawString(Display *dpy, Drawable d, XOC oc, GC gc, - int x, int y, _Xconst char *text, int length); +_Xutf8GenericDrawString(Display *dpy, Drawable d, XOC oc, GC gc, int x, int y, + _Xconst char *text, int length); extern void -_XFree86utf8GenericDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, - int x, int y, _Xconst char *text, int length); +_Xutf8GenericDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, int x, + int y, _Xconst char *text, int length); extern Status -_XFree86utf8GenericTextPerCharExtents( +_Xutf8GenericTextPerCharExtents( XOC oc, _Xconst char *text, int length, XRectangle *ink_buf, XRectangle *logical_buf, int buf_size, int *num_chars, XRectangle *overall_ink, XRectangle *overall_logical); extern int -_XFree86utf8GenericTextExtents(XOC oc, _Xconst char *text, int length, +_Xutf8GenericTextExtents(XOC oc, _Xconst char *text, int length, XRectangle *overall_ink, XRectangle *overall_logical); extern int -_XFree86utf8GenericTextEscapement(XOC oc, _Xconst char *text, int length); +_Xutf8GenericTextEscapement(XOC oc, _Xconst char *text, int length); extern void _XwcGenericDrawImageString(Display *dpy, Drawable d, XOC oc, GC gc, int x, int y, _Xconst wchar_t *text, int length); diff --git a/src/imConv.c b/src/imConv.c index c1922a7..e001571 100644 --- a/src/imConv.c +++ b/src/imConv.c @@ -84,12 +84,12 @@ XPointer _XimGetLocaleCode ( _Xconst char* encoding_name) { - XPointer cvt = _XFree86utf8GetConvByName(encoding_name); + XPointer cvt = _Utf8GetConvByName(encoding_name); if (!cvt && encoding_name) { int i; for (i = 0; i < num_substitute; i++) if (!strcmp(encoding_name, SubstTable[i].encoding_name)) - return _XFree86utf8GetConvByName(SubstTable[i].charset_name); + return _Utf8GetConvByName(SubstTable[i].charset_name); } return cvt; } @@ -298,7 +298,7 @@ _XimLookupWCText(ic, event, buffer, nbytes, keysym, status) } int -_XFree86imLookupUtf8Text(ic, event, buffer, nbytes, keysym, status) +_XimLookupUTF8Text(ic, event, buffer, nbytes, keysym, status) Xic ic; XKeyEvent* event; char* buffer; diff --git a/src/xlibi18n/ICWrap.c b/src/xlibi18n/ICWrap.c index 4581405..73b1603 100644 --- a/src/xlibi18n/ICWrap.c +++ b/src/xlibi18n/ICWrap.c @@ -391,7 +391,8 @@ XwcResetIC(ic) } char * -XFree86utf8ResetIC(XIC ic) +Xutf8ResetIC(ic) + XIC ic; { if (ic->core.im) { if (ic->methods->utf8_reset) @@ -402,15 +403,6 @@ XFree86utf8ResetIC(XIC ic) return (char *)NULL; } -#ifndef NOXFREE86COMPAT -#undef Xutf8ResetIC -char * -Xutf8ResetIC(XIC ic) -{ - return XFree86utf8ResetIC(ic); -} -#endif - int XmbLookupString(ic, ev, buffer, nbytes, keysym, status) XIC ic; @@ -442,13 +434,13 @@ XwcLookupString(ic, ev, buffer, nchars, keysym, status) } int -XFree86utf8LookupString( - XIC ic, - register XKeyEvent *ev, - char *buffer, - int nbytes, - KeySym *keysym, - Status *status) +Xutf8LookupString(ic, ev, buffer, nbytes, keysym, status) + XIC ic; + register XKeyEvent *ev; + char *buffer; + int nbytes; + KeySym *keysym; + Status *status; { if (ic->core.im) { if (ic->methods->utf8_lookup_string) @@ -460,18 +452,3 @@ XFree86utf8LookupString( } return XLookupNone; } - -#ifndef NOXFREE86COMPAT -#undef Xutf8LookupString -int -Xutf8LookupString( - XIC ic, - register XKeyEvent *ev, - char *buffer, - int nbytes, - KeySym *keysym, - Status *status) -{ - return XFree86utf8LookupString(ic, ev, buffer, nbytes, keysym, status); -} -#endif diff --git a/src/xlibi18n/Ximint.h b/src/xlibi18n/Ximint.h index 8200003..e9bdda2 100644 --- a/src/xlibi18n/Ximint.h +++ b/src/xlibi18n/Ximint.h @@ -705,7 +705,7 @@ extern int _XimProtoWcLookupString( Status *state ); -extern int _XFree86imProtoUtf8LookupString( +extern int _XimProtoUtf8LookupString( XIC xic, XKeyEvent *ev, char *buffer, @@ -764,7 +764,7 @@ extern int _XimLookupWCText( XComposeStatus *status ); -extern int _XFree86imLookupUtf8Text( +extern int _XimLookupUTF8Text( Xic ic, XKeyEvent *event, char *buffer, @@ -915,7 +915,7 @@ extern int _XimLocalWcLookupString( Status *status ); -extern int _XFree86imLocalUtf8LookupString( +extern int _XimLocalUtf8LookupString( XIC ic, XKeyEvent *ev, char *buffer, diff --git a/src/xlibi18n/XlcPubI.h b/src/xlibi18n/XlcPubI.h index 4c65246..8441d7f 100644 --- a/src/xlibi18n/XlcPubI.h +++ b/src/xlibi18n/XlcPubI.h @@ -156,7 +156,7 @@ extern int _XwcTextPropertyToTextList( int* count_ret ); -extern int _XFree86utf8TextPropertyToTextList( +extern int _Xutf8TextPropertyToTextList( XLCd lcd, Display* dpy, const XTextProperty* text_prop, @@ -182,7 +182,7 @@ extern int _XwcTextListToTextProperty( XTextProperty* /* text_prop */ ); -extern int _XFree86utf8TextListToTextProperty( +extern int _Xutf8TextListToTextProperty( XLCd /* lcd */, Display* /* dpy */, char** /* list */, @@ -246,12 +246,12 @@ extern char *_XlcMapOSLocaleName( #endif extern int -_XFree86mbstoutf8( +_Xmbstoutf8( char *ustr, const char *str, int len); extern int -_XFree86lcmbstoutf8( +_Xlcmbstoutf8( XLCd lcd, char *ustr, const char *str, @@ -293,7 +293,7 @@ _Xlcwctomb( extern XPointer -_XFree86utf8GetConvByName( +_Utf8GetConvByName( const char *name); _XFUNCPROTOEND diff --git a/src/xlibi18n/XlcPublic.h b/src/xlibi18n/XlcPublic.h index 444ffdc..27595d8 100644 --- a/src/xlibi18n/XlcPublic.h +++ b/src/xlibi18n/XlcPublic.h @@ -206,7 +206,7 @@ typedef struct _XlcConvMethodsRec{ #define XlcNWideChar "wideChar" #define XlcNCompoundText "compoundText" #define XlcNString "string" -#define XFree86lcNUtf8String "utf8String" +#define XlcNUtf8String "utf8String" #define XlcNCharSet "charSet" #define XlcNCTCharSet "CTcharSet" #define XlcNFontCharSet "FontCharSet" diff --git a/src/xlibi18n/Xlcint.h b/src/xlibi18n/Xlcint.h index 4fb20d8..fcc3a65 100644 --- a/src/xlibi18n/Xlcint.h +++ b/src/xlibi18n/Xlcint.h @@ -903,12 +903,12 @@ extern void _XlcRemoveLoader( ); /* Registers UTF-8 converters for a non-UTF-8 locale. */ -extern void _XFree86lcAddUtf8Converters( +extern void _XlcAddUtf8Converters( XLCd lcd ); /* Registers UTF-8 converters for a UTF-8 locale. */ -extern void _XFree86lcAddUtf8LocaleConverters( +extern void _XlcAddUtf8LocaleConverters( XLCd lcd ); diff --git a/src/xlibi18n/lcPrTxt.c b/src/xlibi18n/lcPrTxt.c index b1433cd..3670340 100644 --- a/src/xlibi18n/lcPrTxt.c +++ b/src/xlibi18n/lcPrTxt.c @@ -139,7 +139,7 @@ _XTextPropertyToTextList( if (encoding == XA_STRING) from_type = XlcNString; else if (encoding == XInternAtom(dpy, "UTF8_STRING", False)) - from_type = XFree86lcNUtf8String; + from_type = XlcNUtf8String; else if (encoding == XInternAtom(dpy, "COMPOUND_TEXT", False)) from_type = XlcNCompoundText; else if (encoding == XInternAtom(dpy, XLC_PUBLIC(lcd, encoding_name), False)) @@ -150,7 +150,7 @@ _XTextPropertyToTextList( if (is_wide_char) { buf_len = (text_prop->nitems + 1) * sizeof(wchar_t);; } else { - if (strcmp(to_type, XFree86lcNUtf8String) == 0) + if (strcmp(to_type, XlcNUtf8String) == 0) buf_len = text_prop->nitems * 6 + 1; else buf_len = text_prop->nitems * XLC_PUBLIC(lcd, mb_cur_max) + 1; @@ -162,7 +162,7 @@ _XTextPropertyToTextList( to_left = buf_len; /* can be XlcNMultiByte to XlcNMultiByte, - or XFree86lcNUtf8String to XFree86lcNUtf8String */ + or XlcNUtf8String to XlcNUtf8String */ if (!strcmp(from_type, to_type)) { do_strcpy = True; } else { @@ -265,14 +265,14 @@ _XwcTextPropertyToTextList( } int -_XFree86utf8TextPropertyToTextList( +_Xutf8TextPropertyToTextList( XLCd lcd, Display *dpy, const XTextProperty *text_prop, char ***list_ret, int *count_ret) { - return _XTextPropertyToTextList(lcd, dpy, text_prop, XFree86lcNUtf8String, + return _XTextPropertyToTextList(lcd, dpy, text_prop, XlcNUtf8String, (XPointer **) list_ret, count_ret); } diff --git a/src/xlibi18n/lcPublic.c b/src/xlibi18n/lcPublic.c index 39fbea9..7b5e423 100644 --- a/src/xlibi18n/lcPublic.c +++ b/src/xlibi18n/lcPublic.c @@ -50,10 +50,10 @@ static XLCdPublicMethodsRec publicMethods = { _XrmDefaultInitParseInfo, _XmbTextPropertyToTextList, _XwcTextPropertyToTextList, - _XFree86utf8TextPropertyToTextList, + _Xutf8TextPropertyToTextList, _XmbTextListToTextProperty, _XwcTextListToTextProperty, - _XFree86utf8TextListToTextProperty, + _Xutf8TextListToTextProperty, _XwcFreeStringList, default_string, NULL, diff --git a/src/xlibi18n/lcStd.c b/src/xlibi18n/lcStd.c index 22aa9dc..81216aa 100644 --- a/src/xlibi18n/lcStd.c +++ b/src/xlibi18n/lcStd.c @@ -319,7 +319,7 @@ _Xwcsncmp( int -_XFree86lcmbstoutf8( +_Xlcmbstoutf8( XLCd lcd, char *ustr, const char *str, @@ -335,7 +335,7 @@ _XFree86lcmbstoutf8( return -1; } - conv = _XlcOpenConverter(lcd, XlcNMultiByte, lcd, XFree86lcNUtf8String); + conv = _XlcOpenConverter(lcd, XlcNMultiByte, lcd, XlcNUtf8String); if (conv == NULL) return -1; @@ -358,10 +358,10 @@ _XFree86lcmbstoutf8( } int -_XFree86mbstoutf8( +_Xmbstoutf8( char *ustr, const char *str, int len) { - return _XFree86lcmbstoutf8((XLCd) NULL, ustr, str, len); + return _Xlcmbstoutf8((XLCd) NULL, ustr, str, len); } diff --git a/src/xlibi18n/lcTxtPr.c b/src/xlibi18n/lcTxtPr.c index aee92c7..a58ef48 100644 --- a/src/xlibi18n/lcTxtPr.c +++ b/src/xlibi18n/lcTxtPr.c @@ -97,9 +97,9 @@ _XTextListToTextProperty( encoding = XA_STRING; to_type = XlcNString; break; - case XFree86Utf8StringStyle: + case XUTF8StringStyle: encoding = XInternAtom(dpy, "UTF8_STRING", False); - to_type = XFree86lcNUtf8String; + to_type = XlcNUtf8String; break; case XCompoundTextStyle: encoding = XInternAtom(dpy, "COMPOUND_TEXT", False); @@ -240,7 +240,7 @@ _XwcTextListToTextProperty( } int -_XFree86utf8TextListToTextProperty( +_Xutf8TextListToTextProperty( XLCd lcd, Display *dpy, char **list, @@ -248,6 +248,6 @@ _XFree86utf8TextListToTextProperty( XICCEncodingStyle style, XTextProperty *text_prop) { - return _XTextListToTextProperty(lcd, dpy, XFree86lcNUtf8String, - (XPointer) list, count, style, text_prop); + return _XTextListToTextProperty(lcd, dpy, XlcNUtf8String, (XPointer) list, + count, style, text_prop); } diff --git a/src/xlibi18n/lcUTF8.c b/src/xlibi18n/lcUTF8.c index 82edd72..0994e96 100644 --- a/src/xlibi18n/lcUTF8.c +++ b/src/xlibi18n/lcUTF8.c @@ -371,7 +371,8 @@ init_all_charsets (void) init_all_charsets(); \ } while (0) -/* from XlcNCharSet to XFree86lcNUtf8String */ +/* from XlcNCharSet to XlcNUtf8String */ + static int cstoutf8( XlcConv conv, @@ -463,7 +464,7 @@ open_cstoutf8( return create_conv(from_lcd, &methods_cstoutf8); } -/* from XFree86lcNUtf8String to XlcNCharSet */ +/* from XlcNUtf8String to XlcNCharSet */ static XlcConv create_tocs_conv( @@ -677,7 +678,7 @@ open_utf8tocs( return create_tocs_conv(from_lcd, &methods_utf8tocs); } -/* from XFree86lcNUtf8String to XlcNChar */ +/* from XlcNUtf8String to XlcNChar */ static int utf8tocs1( @@ -781,7 +782,7 @@ open_utf8tocs1( return create_tocs_conv(from_lcd, &methods_utf8tocs1); } -/* from XFree86lcNUtf8String to XlcNString */ +/* from XlcNUtf8String to XlcNString */ static int utf8tostr( @@ -857,7 +858,7 @@ open_utf8tostr( return create_conv(from_lcd, &methods_utf8tostr); } -/* from XlcNString to XFree86lcNUtf8String */ +/* from XlcNString to XlcNUtf8String */ static int strtoutf8( @@ -917,7 +918,7 @@ open_strtoutf8( /* Support for the input methods. */ XPointer -_XFree86utf8GetConvByName( +_Utf8GetConvByName( const char *name) { XrmQuark xrm_name; @@ -1055,7 +1056,7 @@ open_ucstocs1( return create_ucstocs_conv(from_lcd, &methods_ucstocs1); } -/* from XlcNUcsChar to XFree86lcNUtf8String, needed for input methods */ +/* from XlcNUcsChar to XlcNUtf8String, needed for input methods */ static int ucstoutf8( @@ -1118,16 +1119,16 @@ open_ucstoutf8( /* Registers UTF-8 converters for a non-UTF-8 locale. */ void -_XFree86lcAddUtf8Converters( +_XlcAddUtf8Converters( XLCd lcd) { - _XlcSetConverter(lcd, XlcNCharSet, lcd, XFree86lcNUtf8String, open_cstoutf8); - _XlcSetConverter(lcd, XFree86lcNUtf8String, lcd, XlcNCharSet, open_utf8tocs); - _XlcSetConverter(lcd, XFree86lcNUtf8String, lcd, XlcNChar, open_utf8tocs1); - _XlcSetConverter(lcd, XlcNString, lcd, XFree86lcNUtf8String, open_strtoutf8); - _XlcSetConverter(lcd, XFree86lcNUtf8String, lcd, XlcNString, open_utf8tostr); + _XlcSetConverter(lcd, XlcNCharSet, lcd, XlcNUtf8String, open_cstoutf8); + _XlcSetConverter(lcd, XlcNUtf8String, lcd, XlcNCharSet, open_utf8tocs); + _XlcSetConverter(lcd, XlcNUtf8String, lcd, XlcNChar, open_utf8tocs1); + _XlcSetConverter(lcd, XlcNString, lcd, XlcNUtf8String, open_strtoutf8); + _XlcSetConverter(lcd, XlcNUtf8String, lcd, XlcNString, open_utf8tostr); _XlcSetConverter(lcd, XlcNUcsChar, lcd, XlcNChar, open_ucstocs1); - _XlcSetConverter(lcd, XlcNUcsChar, lcd, XFree86lcNUtf8String, open_ucstoutf8); + _XlcSetConverter(lcd, XlcNUcsChar, lcd, XlcNUtf8String, open_ucstoutf8); } /***************************************************************************/ @@ -1801,7 +1802,7 @@ open_utf8tofcs( /* Registers UTF-8 converters for a UTF-8 locale. */ void -_XFree86lcAddUtf8LocaleConverters( +_XlcAddUtf8LocaleConverters( XLCd lcd) { /* Register elementary converters. */ @@ -1826,8 +1827,8 @@ _XFree86lcAddUtf8LocaleConverters( _XlcSetConverter(lcd, XlcNString, lcd, XlcNMultiByte, open_strtoutf8); _XlcSetConverter(lcd, XlcNMultiByte, lcd, XlcNString, open_utf8tostr); - _XlcSetConverter(lcd, XFree86lcNUtf8String, lcd, XlcNMultiByte, open_identity); - _XlcSetConverter(lcd, XlcNMultiByte, lcd, XFree86lcNUtf8String, open_identity); + _XlcSetConverter(lcd, XlcNUtf8String, lcd, XlcNMultiByte, open_identity); + _XlcSetConverter(lcd, XlcNMultiByte, lcd, XlcNUtf8String, open_identity); /* Register converters for XlcNFontCharSet */ _XlcSetConverter(lcd, XlcNMultiByte, lcd, XlcNFontCharSet, open_utf8tofcs); diff --git a/src/xlibi18n/lcWrap.c b/src/xlibi18n/lcWrap.c index 49bd25f..e489d6a 100644 --- a/src/xlibi18n/lcWrap.c +++ b/src/xlibi18n/lcWrap.c @@ -406,7 +406,7 @@ XwcTextPropertyToTextList( } int -XFree86utf8TextPropertyToTextList( +Xutf8TextPropertyToTextList( Display *dpy, const XTextProperty *text_prop, char ***list_ret, @@ -420,18 +420,6 @@ XFree86utf8TextPropertyToTextList( return (*lcd->methods->utf8_text_prop_to_list)(lcd, dpy, text_prop, list_ret, count_ret); } -#ifndef NOXFREE86COMPAT -#undef Xutf8TextPropertyToTextList -int -Xutf8TextPropertyToTextList( - Display *dpy, - const XTextProperty *text_prop, - char ***list_ret, - int *count_ret) -{ - return XFree86utf8TextPropertyToTextList(dpy, text_prop, list_ret, count_ret); -} -#endif int XmbTextListToTextProperty( @@ -468,7 +456,7 @@ XwcTextListToTextProperty( } int -XFree86utf8TextListToTextProperty( +Xutf8TextListToTextProperty( Display *dpy, char **list, int count, @@ -483,19 +471,6 @@ XFree86utf8TextListToTextProperty( return (*lcd->methods->utf8_text_list_to_prop)(lcd, dpy, list, count, style, text_prop); } -#ifndef NOXFREE86COMPAT -#undef Xutf8TextListToTextProperty -int -Xutf8TextListToTextProperty( - Display *dpy, - char **list, - int count, - XICCEncodingStyle style, - XTextProperty *text_prop) -{ - return XFree86utf8TextListToTextProperty(dpy, list, count, style, text_prop); -} -#endif void XwcFreeStringList( diff --git a/src/xlibi18n/utf8WMProps.c b/src/xlibi18n/utf8WMProps.c index 811dc74..084e3d3 100644 --- a/src/xlibi18n/utf8WMProps.c +++ b/src/xlibi18n/utf8WMProps.c @@ -56,7 +56,7 @@ from The Open Group. #include <X11/Xlocale.h> void -XFree86utf8SetWMProperties ( +Xutf8SetWMProperties ( Display *dpy, Window w, _Xconst char *windowName, @@ -72,11 +72,11 @@ XFree86utf8SetWMProperties ( XTextProperty *iprop = NULL; if (windowName && - XFree86utf8TextListToTextProperty(dpy, (char**)&windowName, 1, + Xutf8TextListToTextProperty(dpy, (char**)&windowName, 1, XStdICCTextStyle, &wname) >= Success) wprop = &wname; if (iconName && - XFree86utf8TextListToTextProperty(dpy, (char**)&iconName, 1, + Xutf8TextListToTextProperty(dpy, (char**)&iconName, 1, XStdICCTextStyle, &iname) >= Success) iprop = &iname; XSetWMProperties(dpy, w, wprop, iprop, argv, argc, @@ -88,21 +88,3 @@ XFree86utf8SetWMProperties ( /* Note: The WM_LOCALE_NAME property is set by XSetWMProperties. */ } -#ifndef NOXFREE86COMPAT -#undef Xutf8SetWMProperties -void -Xutf8SetWMProperties ( - Display *dpy, - Window w, - _Xconst char *windowName, - _Xconst char *iconName, - char **argv, - int argc, - XSizeHints *sizeHints, - XWMHints *wmHints, - XClassHint *classHints) -{ - XFree86utf8SetWMProperties (dpy, w, windowName, iconName, argv, argc, - sizeHints, wmHints, classHints); -} -#endif diff --git a/src/xlibi18n/utf8Wrap.c b/src/xlibi18n/utf8Wrap.c index 1fffc6c..1a36463 100644 --- a/src/xlibi18n/utf8Wrap.c +++ b/src/xlibi18n/utf8Wrap.c @@ -78,7 +78,7 @@ from The Open Group. #include "Xlcint.h" void -XFree86utf8DrawText( +Xutf8DrawText( Display *dpy, Drawable d, GC gc, @@ -109,24 +109,9 @@ XFree86utf8DrawText( x += esc; } } -#ifndef NOXFREE86COMPAT -#undef Xutf8DrawText -void -Xutf8DrawText( - Display *dpy, - Drawable d, - GC gc, - int x, - int y, - XmbTextItem *text_items, - int nitems) -{ - XFree86utf8DrawText(dpy, d, gc, x, y, text_items, nitems); -} -#endif void -XFree86utf8DrawString( +Xutf8DrawString( Display *dpy, Drawable d, XFontSet font_set, @@ -139,25 +124,10 @@ XFree86utf8DrawString( (void)(*font_set->methods->utf8_draw_string) (dpy, d, font_set, gc, x, y, (char *)text, text_len); } -#ifndef NOXFREE86COMPAT -#undef Xutf8DrawString -void -Xutf8DrawString( - Display *dpy, - Drawable d, - XFontSet font_set, - GC gc, - int x, - int y, - _Xconst char *text, - int text_len) -{ - XFree86utf8DrawString(dpy, d, font_set, gc, x, y, text, text_len); -} -#endif + void -XFree86utf8DrawImageString( +Xutf8DrawImageString( Display *dpy, Drawable d, XFontSet font_set, @@ -170,25 +140,9 @@ XFree86utf8DrawImageString( (*font_set->methods->utf8_draw_image_string) (dpy, d, font_set, gc, x, y, (char *)text, text_len); } -#ifndef NOXFREE86COMPAT -#undef Xutf8DrawImageString -void -Xutf8DrawImageString( - Display *dpy, - Drawable d, - XFontSet font_set, - GC gc, - int x, - int y, - _Xconst char *text, - int text_len) -{ - XFree86utf8DrawImageString(dpy, d, font_set, gc, x, y, text, text_len); -} -#endif int -XFree86utf8TextEscapement( +Xutf8TextEscapement( XFontSet font_set, _Xconst char *text, int text_len) @@ -196,20 +150,9 @@ XFree86utf8TextEscapement( return (*font_set->methods->utf8_escapement) (font_set, (char *)text, text_len); } -#ifndef NOXFREE86COMPAT -#undef Xutf8TextEscapement -int -Xutf8TextEscapement( - XFontSet font_set, - _Xconst char *text, - int text_len) -{ - return XFree86utf8TextEscapement(font_set, text, text_len); -} -#endif int -XFree86utf8TextExtents( +Xutf8TextExtents( XFontSet font_set, _Xconst char *text, int text_len, @@ -221,23 +164,9 @@ XFree86utf8TextExtents( overall_ink_extents, overall_logical_extents); } -#ifndef NOXFREE86COMPAT -#undef Xutf8TextExtents -int -Xutf8TextExtents( - XFontSet font_set, - _Xconst char *text, - int text_len, - XRectangle *overall_ink_extents, - XRectangle *overall_logical_extents) -{ - return XFree86utf8TextExtents(font_set, text, text_len, - overall_ink_extents, overall_logical_extents); -} -#endif Status -XFree86utf8TextPerCharExtents( +Xutf8TextPerCharExtents( XFontSet font_set, _Xconst char *text, int text_len, @@ -253,22 +182,3 @@ XFree86utf8TextPerCharExtents( ink_extents_buffer, logical_extents_buffer, buffer_size, num_chars, max_ink_extents, max_logical_extents); } -#ifndef NOXFREE86COMPAT -#undef Xutf8TextPerCharExtents -Status -Xutf8TextPerCharExtents( - XFontSet font_set, - _Xconst char *text, - int text_len, - XRectangle *ink_extents_buffer, - XRectangle *logical_extents_buffer, - int buffer_size, - int *num_chars, - XRectangle *max_ink_extents, - XRectangle *max_logical_extents) -{ - return XFree86utf8TextPerCharExtents(font_set, text, text_len, - ink_extents_buffer, logical_extents_buffer, buffer_size, - num_chars, max_ink_extents, max_logical_extents); -} -#endif |