Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
385dc2b0
Commit
385dc2b0
authored
Aug 27, 2016
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update xlibi18n files to libX11 1.3.4
parent
e868fbbf
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
470 additions
and
266 deletions
+470
-266
ICWrap.c
nx-X11/lib/X11/ICWrap.c
+13
-38
IMWrap.c
nx-X11/lib/X11/IMWrap.c
+6
-21
XDefaultIMIF.c
nx-X11/lib/X11/XDefaultIMIF.c
+40
-23
XDefaultOMIF.c
nx-X11/lib/X11/XDefaultOMIF.c
+33
-15
Xaixlcint.h
nx-X11/lib/X11/Xaixlcint.h
+0
-0
XimImSw.h
nx-X11/lib/X11/XimImSw.h
+0
-0
XimProto.h
nx-X11/lib/X11/XimProto.h
+0
-0
XimThai.h
nx-X11/lib/X11/XimThai.h
+0
-0
XimTrInt.h
nx-X11/lib/X11/XimTrInt.h
+34
-13
XimTrX.h
nx-X11/lib/X11/XimTrX.h
+34
-13
XimTrans.h
nx-X11/lib/X11/XimTrans.h
+34
-19
Ximint.h
nx-X11/lib/X11/Ximint.h
+7
-9
XimintL.h
nx-X11/lib/X11/XimintL.h
+31
-11
XimintP.h
nx-X11/lib/X11/XimintP.h
+41
-14
XlcDL.c
nx-X11/lib/X11/XlcDL.c
+43
-21
XlcGeneric.h
nx-X11/lib/X11/XlcGeneric.h
+0
-0
XlcPubI.h
nx-X11/lib/X11/XlcPubI.h
+7
-1
XlcSL.c
nx-X11/lib/X11/XlcSL.c
+33
-15
Xlcint.h
nx-X11/lib/X11/Xlcint.h
+7
-2
imKStoUCS.c
nx-X11/lib/X11/imKStoUCS.c
+2
-2
lcCT.c
nx-X11/lib/X11/lcCT.c
+7
-5
lcCharSet.c
nx-X11/lib/X11/lcCharSet.c
+0
-0
lcConv.c
nx-X11/lib/X11/lcConv.c
+0
-0
lcDB.c
nx-X11/lib/X11/lcDB.c
+58
-19
lcGeneric.c
nx-X11/lib/X11/lcGeneric.c
+1
-2
lcInit.c
nx-X11/lib/X11/lcInit.c
+35
-17
lcPrTxt.c
nx-X11/lib/X11/lcPrTxt.c
+0
-0
lcPubWrap.c
nx-X11/lib/X11/lcPubWrap.c
+0
-0
lcPublic.c
nx-X11/lib/X11/lcPublic.c
+0
-0
lcStd.c
nx-X11/lib/X11/lcStd.c
+0
-0
lcTxtPr.c
nx-X11/lib/X11/lcTxtPr.c
+0
-0
lcUTF8.c
nx-X11/lib/X11/lcUTF8.c
+0
-0
lcUtil.c
nx-X11/lib/X11/lcUtil.c
+0
-0
lcWrap.c
nx-X11/lib/X11/lcWrap.c
+4
-4
mbWrap.c
nx-X11/lib/X11/mbWrap.c
+0
-0
utf8WMProps.c
nx-X11/lib/X11/utf8WMProps.c
+0
-1
utf8Wrap.c
nx-X11/lib/X11/utf8Wrap.c
+0
-1
wcWrap.c
nx-X11/lib/X11/wcWrap.c
+0
-0
No files found.
nx-X11/lib/X11/ICWrap.c
View file @
385dc2b0
/*
/*
*/
/*
* Copyright 1990, 1991 by OMRON Corporation, NTT Software Corporation,
* Copyright 1990, 1991 by OMRON Corporation, NTT Software Corporation,
* and Nippon Telegraph and Telephone Corporation
* and Nippon Telegraph and Telephone Corporation
* Copyright 1991 by the Open Software Foundation
* Copyright 1991 by the Open Software Foundation
...
@@ -260,8 +257,7 @@ XCreateIC(XIM im, ...)
...
@@ -260,8 +257,7 @@ XCreateIC(XIM im, ...)
* Free the input context.
* Free the input context.
*/
*/
void
void
XDestroyIC
(
ic
)
XDestroyIC
(
XIC
ic
)
XIC
ic
;
{
{
XIM
im
=
ic
->
core
.
im
;
XIM
im
=
ic
->
core
.
im
;
XIC
*
prev
;
XIC
*
prev
;
...
@@ -343,8 +339,7 @@ XSetICValues(XIC ic, ...)
...
@@ -343,8 +339,7 @@ XSetICValues(XIC ic, ...)
* argument.
* argument.
*/
*/
void
void
XSetICFocus
(
ic
)
XSetICFocus
(
XIC
ic
)
XIC
ic
;
{
{
if
(
ic
&&
ic
->
core
.
im
)
if
(
ic
&&
ic
->
core
.
im
)
(
*
ic
->
methods
->
set_focus
)
(
ic
);
(
*
ic
->
methods
->
set_focus
)
(
ic
);
...
@@ -355,8 +350,7 @@ XSetICFocus(ic)
...
@@ -355,8 +350,7 @@ XSetICFocus(ic)
* argument.
* argument.
*/
*/
void
void
XUnsetICFocus
(
ic
)
XUnsetICFocus
(
XIC
ic
)
XIC
ic
;
{
{
if
(
ic
->
core
.
im
)
if
(
ic
->
core
.
im
)
(
*
ic
->
methods
->
unset_focus
)
(
ic
);
(
*
ic
->
methods
->
unset_focus
)
(
ic
);
...
@@ -366,15 +360,13 @@ XUnsetICFocus(ic)
...
@@ -366,15 +360,13 @@ XUnsetICFocus(ic)
* Return the XIM associated with the input context.
* Return the XIM associated with the input context.
*/
*/
XIM
XIM
XIMOfIC
(
ic
)
XIMOfIC
(
XIC
ic
)
XIC
ic
;
{
{
return
ic
->
core
.
im
;
return
ic
->
core
.
im
;
}
}
char
*
char
*
XmbResetIC
(
ic
)
XmbResetIC
(
XIC
ic
)
XIC
ic
;
{
{
if
(
ic
->
core
.
im
)
if
(
ic
->
core
.
im
)
return
(
*
ic
->
methods
->
mb_reset
)(
ic
);
return
(
*
ic
->
methods
->
mb_reset
)(
ic
);
...
@@ -382,8 +374,7 @@ XmbResetIC(ic)
...
@@ -382,8 +374,7 @@ XmbResetIC(ic)
}
}
wchar_t
*
wchar_t
*
XwcResetIC
(
ic
)
XwcResetIC
(
XIC
ic
)
XIC
ic
;
{
{
if
(
ic
->
core
.
im
)
if
(
ic
->
core
.
im
)
return
(
*
ic
->
methods
->
wc_reset
)(
ic
);
return
(
*
ic
->
methods
->
wc_reset
)(
ic
);
...
@@ -391,8 +382,7 @@ XwcResetIC(ic)
...
@@ -391,8 +382,7 @@ XwcResetIC(ic)
}
}
char
*
char
*
Xutf8ResetIC
(
ic
)
Xutf8ResetIC
(
XIC
ic
)
XIC
ic
;
{
{
if
(
ic
->
core
.
im
)
{
if
(
ic
->
core
.
im
)
{
if
(
ic
->
methods
->
utf8_reset
)
if
(
ic
->
methods
->
utf8_reset
)
...
@@ -404,13 +394,8 @@ Xutf8ResetIC(ic)
...
@@ -404,13 +394,8 @@ Xutf8ResetIC(ic)
}
}
int
int
XmbLookupString
(
ic
,
ev
,
buffer
,
nbytes
,
keysym
,
status
)
XmbLookupString
(
XIC
ic
,
XKeyEvent
*
ev
,
char
*
buffer
,
int
nbytes
,
XIC
ic
;
KeySym
*
keysym
,
Status
*
status
)
register
XKeyEvent
*
ev
;
char
*
buffer
;
int
nbytes
;
KeySym
*
keysym
;
Status
*
status
;
{
{
if
(
ic
->
core
.
im
)
if
(
ic
->
core
.
im
)
return
(
*
ic
->
methods
->
mb_lookup_string
)
(
ic
,
ev
,
buffer
,
nbytes
,
return
(
*
ic
->
methods
->
mb_lookup_string
)
(
ic
,
ev
,
buffer
,
nbytes
,
...
@@ -419,13 +404,8 @@ XmbLookupString(ic, ev, buffer, nbytes, keysym, status)
...
@@ -419,13 +404,8 @@ XmbLookupString(ic, ev, buffer, nbytes, keysym, status)
}
}
int
int
XwcLookupString
(
ic
,
ev
,
buffer
,
nchars
,
keysym
,
status
)
XwcLookupString
(
XIC
ic
,
XKeyEvent
*
ev
,
wchar_t
*
buffer
,
int
nchars
,
XIC
ic
;
KeySym
*
keysym
,
Status
*
status
)
register
XKeyEvent
*
ev
;
wchar_t
*
buffer
;
int
nchars
;
KeySym
*
keysym
;
Status
*
status
;
{
{
if
(
ic
->
core
.
im
)
if
(
ic
->
core
.
im
)
return
(
*
ic
->
methods
->
wc_lookup_string
)
(
ic
,
ev
,
buffer
,
nchars
,
return
(
*
ic
->
methods
->
wc_lookup_string
)
(
ic
,
ev
,
buffer
,
nchars
,
...
@@ -434,13 +414,8 @@ XwcLookupString(ic, ev, buffer, nchars, keysym, status)
...
@@ -434,13 +414,8 @@ XwcLookupString(ic, ev, buffer, nchars, keysym, status)
}
}
int
int
Xutf8LookupString
(
ic
,
ev
,
buffer
,
nbytes
,
keysym
,
status
)
Xutf8LookupString
(
XIC
ic
,
XKeyEvent
*
ev
,
char
*
buffer
,
int
nbytes
,
XIC
ic
;
KeySym
*
keysym
,
Status
*
status
)
register
XKeyEvent
*
ev
;
char
*
buffer
;
int
nbytes
;
KeySym
*
keysym
;
Status
*
status
;
{
{
if
(
ic
->
core
.
im
)
{
if
(
ic
->
core
.
im
)
{
if
(
ic
->
methods
->
utf8_lookup_string
)
if
(
ic
->
methods
->
utf8_lookup_string
)
...
...
nx-X11/lib/X11/IMWrap.c
View file @
385dc2b0
/*
/*
*/
/*
* Copyright 1991 by the Open Software Foundation
* Copyright 1991 by the Open Software Foundation
* Copyright 1993, 1994 by the Sony Corporation
* Copyright 1993, 1994 by the Sony Corporation
*
*
...
@@ -67,9 +64,7 @@ from The Open Group.
...
@@ -67,9 +64,7 @@ from The Open Group.
* Compile the resource name. (resource_name ---> xrm_name)
* Compile the resource name. (resource_name ---> xrm_name)
*/
*/
void
void
_XIMCompileResourceList
(
res
,
num_res
)
_XIMCompileResourceList
(
XIMResourceList
res
,
unsigned
int
num_res
)
register
XIMResourceList
res
;
unsigned
int
num_res
;
{
{
register
unsigned
int
count
;
register
unsigned
int
count
;
...
@@ -79,10 +74,7 @@ _XIMCompileResourceList(res, num_res)
...
@@ -79,10 +74,7 @@ _XIMCompileResourceList(res, num_res)
}
}
void
void
_XCopyToArg
(
src
,
dst
,
size
)
_XCopyToArg
(
XPointer
src
,
XPointer
*
dst
,
unsigned
int
size
)
XPointer
src
;
XPointer
*
dst
;
register
unsigned
int
size
;
{
{
if
(
!*
dst
)
{
if
(
!*
dst
)
{
union
{
union
{
...
@@ -120,11 +112,7 @@ _XCopyToArg(src, dst, size)
...
@@ -120,11 +112,7 @@ _XCopyToArg(src, dst, size)
*/
*/
XIM
XIM
XOpenIM
(
display
,
rdb
,
res_name
,
res_class
)
XOpenIM
(
Display
*
display
,
XrmDatabase
rdb
,
char
*
res_name
,
char
*
res_class
)
Display
*
display
;
XrmDatabase
rdb
;
char
*
res_name
;
char
*
res_class
;
{
{
XLCd
lcd
=
_XOpenLC
(
(
char
*
)
NULL
);
XLCd
lcd
=
_XOpenLC
(
(
char
*
)
NULL
);
...
@@ -137,8 +125,7 @@ XOpenIM( display, rdb, res_name, res_class )
...
@@ -137,8 +125,7 @@ XOpenIM( display, rdb, res_name, res_class )
* Close the connection to the input manager, and free the XIM structure
* Close the connection to the input manager, and free the XIM structure
*/
*/
Status
Status
XCloseIM
(
im
)
XCloseIM
(
XIM
im
)
XIM
im
;
{
{
Status
s
;
Status
s
;
XIC
ic
;
XIC
ic
;
...
@@ -156,8 +143,7 @@ XCloseIM(im)
...
@@ -156,8 +143,7 @@ XCloseIM(im)
* Return the Display associated with the input method.
* Return the Display associated with the input method.
*/
*/
Display
*
Display
*
XDisplayOfIM
(
im
)
XDisplayOfIM
(
XIM
im
)
XIM
im
;
{
{
return
im
->
core
.
display
;
return
im
->
core
.
display
;
}
}
...
@@ -166,8 +152,7 @@ XDisplayOfIM(im)
...
@@ -166,8 +152,7 @@ XDisplayOfIM(im)
* Return the Locale associated with the input method.
* Return the Locale associated with the input method.
*/
*/
char
*
char
*
XLocaleOfIM
(
im
)
XLocaleOfIM
(
XIM
im
)
XIM
im
;
{
{
return
im
->
core
.
lcd
->
core
->
name
;
return
im
->
core
.
lcd
->
core
->
name
;
}
}
...
...
nx-X11/lib/X11/XDefaultIMIF.c
View file @
385dc2b0
/*
/*
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Portions Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
"Software"), to deal in the Software without restriction, including
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
portions of the Software.
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
EVEN IF ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
Except as contained in this notice, the names of The Open Group and/or
Except as contained in this notice, the name of The Open Group shall not be
Sun Microsystems, Inc. shall not be used in advertising or otherwise to
used in advertising or otherwise to promote the sale, use or other dealings
promote the sale, use or other dealings in this Software without prior
in this Software without prior written authorization from The Open Group.
written authorization from The Open Group and/or Sun Microsystems,
Inc., as applicable.
X Window System is a trademark of The Open Group
X Window System is a trademark of The Open Group
...
@@ -41,6 +36,29 @@ interest in or to any trademark, service mark, logo or trade name of
...
@@ -41,6 +36,29 @@ interest in or to any trademark, service mark, logo or trade name of
Sun Microsystems, Inc. or its licensors is granted.
Sun Microsystems, Inc. or its licensors is granted.
*/
*/
/*
* Copyright 2000 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, 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 (including the next
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
*/
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <config.h>
...
@@ -240,17 +258,17 @@ _CloseIM(XIM xim)
...
@@ -240,17 +258,17 @@ _CloseIM(XIM xim)
}
}
static
char
*
static
char
*
_SetIMValues
(
xim
,
arg
)
_SetIMValues
(
XIM
xim
;
XIM
xim
,
XIMArg
*
arg
;
XIMArg
*
arg
)
{
{
return
(
arg
->
name
);
/* evil */
return
(
arg
->
name
);
/* evil */
}
}
static
char
*
static
char
*
_GetIMValues
(
xim
,
values
)
_GetIMValues
(
XIM
xim
;
XIM
xim
,
XIMArg
*
values
;
XIMArg
*
values
)
{
{
XIMArg
*
p
;
XIMArg
*
p
;
XIMStyles
*
styles
;
XIMStyles
*
styles
;
...
@@ -357,8 +375,7 @@ _DestroyIC(XIC ic)
...
@@ -357,8 +375,7 @@ _DestroyIC(XIC ic)
}
}
static
void
static
void
_SetFocus
(
ic
)
_SetFocus
(
XIC
ic
)
XIC
ic
;
{
{
}
}
...
...
nx-X11/lib/X11/XDefaultOMIF.c
View file @
385dc2b0
/*
/*
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Portions Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
"Software"), to deal in the Software without restriction, including
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
portions of the Software.
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
EVEN IF ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
Except as contained in this notice, the names of The Open Group and/or
Except as contained in this notice, the name of The Open Group shall not be
Sun Microsystems, Inc. shall not be used in advertising or otherwise to
used in advertising or otherwise to promote the sale, use or other dealings
promote the sale, use or other dealings in this Software without prior
in this Software without prior written authorization from The Open Group.
written authorization from The Open Group and/or Sun Microsystems,
Inc., as applicable.
X Window System is a trademark of The Open Group
X Window System is a trademark of The Open Group
...
@@ -41,6 +36,29 @@ interest in or to any trademark, service mark, logo or trade name of
...
@@ -41,6 +36,29 @@ interest in or to any trademark, service mark, logo or trade name of
Sun Microsystems, Inc. or its licensors is granted.
Sun Microsystems, Inc. or its licensors is granted.
*/
*/
/*
* Copyright 2000 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, 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 (including the next
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
*/
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <config.h>
...
...
nx-X11/lib/X11/Xaixlcint.h
View file @
385dc2b0
nx-X11/lib/X11/XimImSw.h
View file @
385dc2b0
nx-X11/lib/X11/XimProto.h
View file @
385dc2b0
nx-X11/lib/X11/XimThai.h
View file @
385dc2b0
nx-X11/lib/X11/XimTrInt.h
View file @
385dc2b0
/*
* Copyright 1992 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, 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 (including the next
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
*/
/******************************************************************
/******************************************************************
Copyright 1992 by Sun Microsystems, Inc.
Copyright 1993, 1994 by FUJITSU LIMITED
Copyright 1993, 1994 by FUJITSU LIMITED
Permission to use, copy, modify, distribute, and sell this software
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
that both that copyright notice and this permission notice appear
in supporting documentation, and that the name of
Sun Microsystems, Inc.
in supporting documentation, and that the name of
FUJITSU LIMITED
not be used in advertising or publicity pertaining to distribution
not be used in advertising or publicity pertaining to distribution
of the software without specific, written prior permission.
of the software without specific, written prior permission.
Sun Microsystems, Inc.
makes no representations about the suitability of
FUJITSU LIMITED
makes no representations about the suitability of
this software for any purpose.
It is provided "as is" without
this software for any purpose.
express or implied warranty.
It is provided "as is" without
express or implied warranty.
Sun Microsystems Inc. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
IN NO EVENT SHALL Sun Microsystems, Inc. BE LIABLE FOR ANY SPECIAL, INDIRECT
EVENT SHALL FUJITSU LIMITED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
O
R OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
O
THER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
OR
PERFORMANCE OF THIS SOFTWARE.
PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
Takashi Fujiwara FUJITSU LIMITED
Takashi Fujiwara FUJITSU LIMITED
...
@@ -34,7 +55,7 @@ OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -34,7 +55,7 @@ OR PERFORMANCE OF THIS SOFTWARE.
#include "Ximint.h"
#include "Ximint.h"
typedef
struct
{
typedef
struct
{
char
*
transportname
;
c
onst
c
har
*
transportname
;
Bool
(
*
config
)(
Bool
(
*
config
)(
Xim
,
Xim
,
char
*
char
*
...
...
nx-X11/lib/X11/XimTrX.h
View file @
385dc2b0
/*
* Copyright 1992 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, 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 (including the next
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
*/
/******************************************************************
/******************************************************************
Copyright 1992 by Sun Microsystems, Inc.
Copyright 1992, 1993, 1994 by FUJITSU LIMITED
Copyright 1992, 1993, 1994 by FUJITSU LIMITED
Permission to use, copy, modify, distribute, and sell this software
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
that both that copyright notice and this permission notice appear
in supporting documentation, and that the name of
Sun Microsystems, Inc.
in supporting documentation, and that the name of
FUJITSU LIMITED
and FUJITSU LIMITED not be used in advertising or publicity pertaining to
not be used in advertising or publicity pertaining to distribution
distribution
of the software without specific, written prior permission.
of the software without specific, written prior permission.
Sun Microsystems, Inc. and FUJITSU LIMITED makes no representations about
FUJITSU LIMITED makes no representations about the suitability of
th
e suitability of th
is software for any purpose.
this software for any purpose.
It is provided "as is" without express or implied warranty.
It is provided "as is" without express or implied warranty.
Sun Microsystems Inc. AND FUJITSU LIMITED DISCLAIMS ALL WARRANTIES WITH
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
AND FITNESS, IN NO EVENT SHALL Sun Microsystems, Inc. AND FUJITSU LIMITED
EVENT SHALL FUJITSU LIMITED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
OR
IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
Takashi Fujiwara FUJITSU LIMITED
Takashi Fujiwara FUJITSU LIMITED
...
...
nx-X11/lib/X11/XimTrans.h
View file @
385dc2b0
/*
* Copyright 1992 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, 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 (including the next
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
*/
/******************************************************************
/******************************************************************
Copyright 1992 by Sun Microsystems, Inc.
Copyright 1992, 1993, 1994 by FUJITSU LIMITED
Copyright 1992, 1993, 1994 by FUJITSU LIMITED
Permission to use, copy, modify, distribute, and sell this software
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
that both that copyright notice and this permission notice appear
in supporting documentation, and that the name of
Sun Microsystems, Inc.
in supporting documentation, and that the name of
FUJITSU LIMITED
and FUJITSU LIMITED not be used in advertising or publicity pertaining to
not be used in advertising or publicity pertaining to distribution
distribution
of the software without specific, written prior permission.
of the software without specific, written prior permission.
Sun Microsystems, Inc. and FUJITSU LIMITED makes no representations about
FUJITSU LIMITED makes no representations about the suitability of
th
e suitability of th
is software for any purpose.
this software for any purpose.
It is provided "as is" without express or implied warranty.
It is provided "as is" without express or implied warranty.
Sun Microsystems Inc. AND FUJITSU LIMITED DISCLAIMS ALL WARRANTIES WITH
FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
AND FITNESS, IN NO EVENT SHALL Sun Microsystems, Inc. AND FUJITSU LIMITED
EVENT SHALL FUJITSU LIMITED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
OR
IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
Takashi Fujiwara FUJITSU LIMITED
Takashi Fujiwara FUJITSU LIMITED
...
@@ -82,12 +103,6 @@ extern void _XimFreeTransIntrCallback(
...
@@ -82,12 +103,6 @@ extern void _XimFreeTransIntrCallback(
Xim
im
Xim
im
);
);
extern
Bool
_XimTransIntrCallbackCheck
(
Xim
im
,
INT16
len
,
XPointer
data
);
extern
Bool
_XimTransFilterWaitEvent
(
extern
Bool
_XimTransFilterWaitEvent
(
Display
*
d
,
Display
*
d
,
Window
w
,
Window
w
,
...
...
nx-X11/lib/X11/Ximint.h
View file @
385dc2b0
...
@@ -178,6 +178,8 @@ typedef struct _XimDefICValues {
...
@@ -178,6 +178,8 @@ typedef struct _XimDefICValues {
#define XIM_FALSE False
#define XIM_FALSE False
#define XIM_OVERFLOW (-1)
#define XIM_OVERFLOW (-1)
#define BRL_UC_ROW 0x2800
/*
/*
* Global symbols
* Global symbols
*/
*/
...
@@ -225,7 +227,7 @@ extern Bool _XimCheckCreateICValues(
...
@@ -225,7 +227,7 @@ extern Bool _XimCheckCreateICValues(
extern
XIMResourceList
_XimGetResourceListRec
(
extern
XIMResourceList
_XimGetResourceListRec
(
XIMResourceList
res_list
,
XIMResourceList
res_list
,
unsigned
int
list_num
,
unsigned
int
list_num
,
char
*
name
c
onst
c
har
*
name
);
);
extern
void
_XimSetIMMode
(
extern
void
_XimSetIMMode
(
...
@@ -668,6 +670,10 @@ extern int _XimLcctstoutf8(
...
@@ -668,6 +670,10 @@ extern int _XimLcctstoutf8(
Status
*
state
Status
*
state
);
);
extern
char
_XimGetMyEndian
(
void
);
extern
int
_XimCheckDataSize
(
extern
int
_XimCheckDataSize
(
XPointer
buf
,
XPointer
buf
,
int
len
int
len
...
@@ -833,14 +839,6 @@ extern Bool _XimRead(
...
@@ -833,14 +839,6 @@ extern Bool _XimRead(
XPointer
arg
XPointer
arg
);
);
extern
Bool
_XimIntrCallback
(
Xim
im
,
Bool
(
*
callback
)(
Xim
,
INT16
,
XPointer
,
XPointer
),
XPointer
call_data
);
extern
void
_XimFlush
(
extern
void
_XimFlush
(
Xim
im
Xim
im
);
);
...
...
nx-X11/lib/X11/XimintL.h
View file @
385dc2b0
...
@@ -38,21 +38,36 @@ THIS SOFTWARE.
...
@@ -38,21 +38,36 @@ THIS SOFTWARE.
#define COMPOSE_FILE "Compose"
#define COMPOSE_FILE "Compose"
/*
/*
* Data Structure for Local Processing
* Data Structure
s
for Local Processing
*/
*/
typedef
INT32
DTIndex
;
typedef
INT32
DTCharIndex
;
typedef
BITS32
DTModifier
;
typedef
struct
_DefTree
{
typedef
struct
_DefTree
{
struct
_DefTree
*
next
;
/* another Key definition */
DTIndex
next
;
struct
_DefTree
*
succession
;
/* successive Key Sequence */
DTIndex
succession
;
/* successive Key Sequence */
/* Key definitions */
/* Key definitions */
unsigned
modifier_mask
;
DTModifier
modifier_mask
;
unsigned
modifier
;
DTModifier
modifier
;
KeySym
keysym
;
/* leaf only */
KeySym
keysym
;
/* leaf only */
char
*
mb
;
DTCharIndex
mb
;
wchar_t
*
wc
;
/* make from mb */
DTCharIndex
wc
;
/* make from mb */
char
*
utf8
;
/* make from mb */
DTCharIndex
utf8
;
/* make from mb */
KeySym
ks
;
KeySym
ks
;
}
DefTree
;
}
DefTree
;
typedef
struct
_DefTreeBase
{
DefTree
*
tree
;
char
*
mb
;
wchar_t
*
wc
;
char
*
utf8
;
DTIndex
treeused
,
treesize
;
DTCharIndex
mbused
,
mbsize
;
DTCharIndex
wcused
,
wcsize
;
DTCharIndex
utf8used
,
utf8size
;
}
DefTreeBase
;
typedef
struct
_XimLocalPrivateRec
{
typedef
struct
_XimLocalPrivateRec
{
/* The first fields are identical with XimCommonPrivateRec. */
/* The first fields are identical with XimCommonPrivateRec. */
XlcConv
ctom_conv
;
XlcConv
ctom_conv
;
...
@@ -65,7 +80,8 @@ typedef struct _XimLocalPrivateRec {
...
@@ -65,7 +80,8 @@ typedef struct _XimLocalPrivateRec {
XlcConv
ucstoutf8_conv
;
XlcConv
ucstoutf8_conv
;
XIC
current_ic
;
XIC
current_ic
;
DefTree
*
top
;
DefTreeBase
base
;
DTIndex
top
;
}
XimLocalPrivateRec
;
}
XimLocalPrivateRec
;
typedef
struct
_XicThaiPart
{
typedef
struct
_XicThaiPart
{
...
@@ -76,11 +92,15 @@ typedef struct _XicThaiPart {
...
@@ -76,11 +92,15 @@ typedef struct _XicThaiPart {
typedef
struct
_XicLocalPrivateRec
{
typedef
struct
_XicLocalPrivateRec
{
long
value_mask
;
long
value_mask
;
DefTree
*
context
;
DefTreeBase
base
;
DefTree
*
composed
;
DTIndex
context
;
DTIndex
composed
;
XicThaiPart
thai
;
XicThaiPart
thai
;
XIMResourceList
ic_resources
;
XIMResourceList
ic_resources
;
unsigned
int
ic_num_resources
;
unsigned
int
ic_num_resources
;
unsigned
char
brl_pressed
,
brl_committing
,
brl_committed
;
Time
brl_release_start
;
}
XicLocalPrivateRec
;
}
XicLocalPrivateRec
;
#endif
/* _XIMINTL_H */
#endif
/* _XIMINTL_H */
nx-X11/lib/X11/XimintP.h
View file @
385dc2b0
/*
* Copyright 1991, 1992 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, 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 (including the next
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
*/
/******************************************************************
/******************************************************************
Copyright 1991, 1992 by Sun Microsystems, Inc.
Copyright 1992, 1993, 1994 by FUJITSU LIMITED
Copyright 1992, 1993, 1994 by FUJITSU LIMITED
Copyright 1993, 1994 by Sony Corporation
Copyright 1993, 1994 by Sony Corporation
...
@@ -8,22 +29,20 @@ Permission to use, copy, modify, distribute, and sell this software and
...
@@ -8,22 +29,20 @@ Permission to use, copy, modify, distribute, and sell this software and
its documentation for any purpose is hereby granted without fee, provided
its documentation for any purpose is hereby granted without fee, provided
that the above copyright notice appear in all copies and that both that
that the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
copyright notice and this permission notice appear in supporting
documentation, and that the name of Sun Microsystems, Inc., FUJITSU
documentation, and that the name of FUJITSU LIMITED and Sony Corporation
LIMITED and Sony Corporation not be used in advertising or publicity
not be used in advertising or publicity pertaining to distribution of the
pertaining to distribution of the software without specific, written
software without specific, written prior permission. FUJITSU LIMITED and
prior permission. Sun Microsystems, Inc., FUJITSU LIMITED and Sony
Sony Corporation makes no representations about the suitability of this
Corporation makes no representations about the suitability of this
software for any purpose. It is provided "as is" without express or
software for any purpose. It is provided "as is" without express or
implied warranty.
implied warranty.
Sun Microsystems Inc. ,FUJITSU LIMITED AND SONY CORPORATION DISCLAIMS ALL
FUJITSU LIMITED AND SONY CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL Sun Microsystems, Inc.,
FITNESS, IN NO EVENT SHALL FUJITSU LIMITED OR SONY CORPORATION BE LIABLE
FUJITSU LIMITED, SONY CORPORATIN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
USE OR PERFORMANCE OF THIS SOFTWARE.
PERFORMANCE OF THIS SOFTWARE.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
Author: Hideki Hiura (hhiura@Sun.COM) Sun Microsystems, Inc.
Takashi Fujiwara FUJITSU LIMITED
Takashi Fujiwara FUJITSU LIMITED
...
@@ -242,6 +261,7 @@ typedef struct _XicProtoPrivateRec {
...
@@ -242,6 +261,7 @@ typedef struct _XicProtoPrivateRec {
#define IC_CONNECTED (1L)
#define IC_CONNECTED (1L)
#define FABLICATED (1L << 1)
#define FABLICATED (1L << 1)
#define NEED_SYNC_REPLY (1L << 2)
#define NEED_SYNC_REPLY (1L << 2)
#define FOCUSED (1L << 3)
/*
/*
* macro for the flag of XICPrivateRec
* macro for the flag of XICPrivateRec
...
@@ -267,6 +287,13 @@ typedef struct _XicProtoPrivateRec {
...
@@ -267,6 +287,13 @@ typedef struct _XicProtoPrivateRec {
#define UNMARK_NEED_SYNC_REPLY(ic) \
#define UNMARK_NEED_SYNC_REPLY(ic) \
(((Xic)ic)->private.proto.flag &= ~NEED_SYNC_REPLY)
(((Xic)ic)->private.proto.flag &= ~NEED_SYNC_REPLY)
#define IS_FOCUSED(ic) \
(((Xic)ic)->private.proto.flag & FOCUSED)
#define MARK_FOCUSED(ic) \
(((Xic)ic)->private.proto.flag |= FOCUSED)
#define UNMARK_FOCUSED(ic) \
(((Xic)ic)->private.proto.flag &= ~FOCUSED)
/*
/*
* macro for the filter_event_mask of XICPrivateRec
* macro for the filter_event_mask of XICPrivateRec
*/
*/
...
...
nx-X11/lib/X11/XlcDL.c
View file @
385dc2b0
/*
/*
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Portions Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
"Software"), to deal in the Software without restriction, including
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
portions of the Software.
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
EVEN IF ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
Except as contained in this notice, the names of The Open Group and/or
Except as contained in this notice, the name of The Open Group shall not be
Sun Microsystems, Inc. shall not be used in advertising or otherwise to
used in advertising or otherwise to promote the sale, use or other dealings
promote the sale, use or other dealings in this Software without prior
in this Software without prior written authorization from The Open Group.
written authorization from The Open Group and/or Sun Microsystems,
Inc., as applicable.
X Window System is a trademark of The Open Group
X Window System is a trademark of The Open Group
...
@@ -41,6 +36,29 @@ interest in or to any trademark, service mark, logo or trade name of
...
@@ -41,6 +36,29 @@ interest in or to any trademark, service mark, logo or trade name of
Sun Microsystems, Inc. or its licensors is granted.
Sun Microsystems, Inc. or its licensors is granted.
*/
*/
/*
* Copyright 2000 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, 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 (including the next
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
*/
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
# include <config.h>
...
@@ -401,21 +419,25 @@ _XlcDynamicLoad(const char *lc_name)
...
@@ -401,21 +419,25 @@ _XlcDynamicLoad(const char *lc_name)
dynamicLoadProc
lc_loader
=
(
dynamicLoadProc
)
NULL
;
dynamicLoadProc
lc_loader
=
(
dynamicLoadProc
)
NULL
;
int
count
;
int
count
;
XI18NObjectsList
objects_list
;
XI18NObjectsList
objects_list
;
char
lc_dir
[
BUFSIZE
];
char
lc_dir
[
BUFSIZE
]
,
lc_lib_dir
[
BUFSIZE
]
;
if
(
lc_name
==
NULL
)
return
(
XLCd
)
NULL
;
if
(
lc_name
==
NULL
)
return
(
XLCd
)
NULL
;
if
(
_XlcLocaleDirName
(
lc_dir
,
BUFSIZE
,
(
char
*
)
lc_name
)
==
(
char
*
)
NULL
)
if
(
_XlcLocaleDirName
(
lc_dir
,
BUFSIZE
,
(
char
*
)
lc_name
)
==
(
char
*
)
NULL
)
return
(
XLCd
)
NULL
;
if
(
_XlcLocaleLibDirName
(
lc_lib_dir
,
BUFSIZE
,
(
char
*
)
lc_name
)
==
(
char
*
)
NULL
)
return
(
XLCd
)
NULL
;
return
(
XLCd
)
NULL
;
resolve_object
(
lc_dir
,
lc_name
);
resolve_object
(
lc_dir
,
lc_name
);
resolve_object
(
lc_lib_dir
,
lc_name
);
objects_list
=
xi18n_objects_list
;
objects_list
=
xi18n_objects_list
;
count
=
lc_count
;
count
=
lc_count
;
for
(;
count
--
>
0
;
objects_list
++
)
{
for
(;
count
--
>
0
;
objects_list
++
)
{
if
(
objects_list
->
type
!=
XLC_OBJECT
||
if
(
objects_list
->
type
!=
XLC_OBJECT
||
strcmp
(
objects_list
->
locale_name
,
lc_name
))
continue
;
strcmp
(
objects_list
->
locale_name
,
lc_name
))
continue
;
if
(
!
open_object
(
objects_list
,
lc_dir
))
if
(
!
open_object
(
objects_list
,
lc_dir
)
&&
\
!
open_object
(
objects_list
,
lc_lib_dir
))
continue
;
continue
;
lc_loader
=
(
dynamicLoadProc
)
fetch_symbol
(
objects_list
,
objects_list
->
open
);
lc_loader
=
(
dynamicLoadProc
)
fetch_symbol
(
objects_list
,
objects_list
->
open
);
...
@@ -446,7 +468,7 @@ _XDynamicOpenIM(XLCd lcd, Display *display, XrmDatabase rdb,
...
@@ -446,7 +468,7 @@ _XDynamicOpenIM(XLCd lcd, Display *display, XrmDatabase rdb,
lc_name
=
lcd
->
core
->
name
;
lc_name
=
lcd
->
core
->
name
;
if
(
_XlcLocaleDirName
(
lc_dir
,
BUFSIZE
,
lc_name
)
==
NULL
)
return
(
XIM
)
0
;
if
(
_XlcLocale
Lib
DirName
(
lc_dir
,
BUFSIZE
,
lc_name
)
==
NULL
)
return
(
XIM
)
0
;
count
=
lc_count
;
count
=
lc_count
;
for
(;
count
--
>
0
;
objects_list
++
)
{
for
(;
count
--
>
0
;
objects_list
++
)
{
...
@@ -494,7 +516,7 @@ _XDynamicRegisterIMInstantiateCallback(
...
@@ -494,7 +516,7 @@ _XDynamicRegisterIMInstantiateCallback(
lc_name
=
lcd
->
core
->
name
;
lc_name
=
lcd
->
core
->
name
;
if
(
_XlcLocaleDirName
(
lc_dir
,
BUFSIZE
,
lc_name
)
==
NULL
)
return
False
;
if
(
_XlcLocale
Lib
DirName
(
lc_dir
,
BUFSIZE
,
lc_name
)
==
NULL
)
return
False
;
count
=
lc_count
;
count
=
lc_count
;
for
(;
count
--
>
0
;
objects_list
++
)
{
for
(;
count
--
>
0
;
objects_list
++
)
{
...
@@ -598,7 +620,7 @@ _XDynamicOpenOM(XLCd lcd, Display *display, XrmDatabase rdb,
...
@@ -598,7 +620,7 @@ _XDynamicOpenOM(XLCd lcd, Display *display, XrmDatabase rdb,
lc_name
=
lcd
->
core
->
name
;
lc_name
=
lcd
->
core
->
name
;
if
(
_XlcLocaleDirName
(
lc_dir
,
BUFSIZE
,
lc_name
)
==
NULL
)
return
(
XOM
)
0
;
if
(
_XlcLocale
Lib
DirName
(
lc_dir
,
BUFSIZE
,
lc_name
)
==
NULL
)
return
(
XOM
)
0
;
count
=
lc_count
;
count
=
lc_count
;
for
(;
count
--
>
0
;
objects_list
++
)
{
for
(;
count
--
>
0
;
objects_list
++
)
{
...
...
nx-X11/lib/X11/XlcGeneric.h
View file @
385dc2b0
nx-X11/lib/X11/XlcPubI.h
View file @
385dc2b0
...
@@ -204,6 +204,12 @@ extern int _XlcResolveI18NPath(
...
@@ -204,6 +204,12 @@ extern int _XlcResolveI18NPath(
int
buf_len
int
buf_len
);
);
extern
char
*
_XlcLocaleLibDirName
(
char
*
/* dir_name */
,
size_t
,
/* dir_len */
char
*
/* lc_name */
);
extern
char
*
_XlcLocaleDirName
(
extern
char
*
_XlcLocaleDirName
(
char
*
/* dir_name */
,
char
*
/* dir_name */
,
size_t
,
/* dir_len */
size_t
,
/* dir_len */
...
@@ -232,7 +238,7 @@ _Xsetlocale(
...
@@ -232,7 +238,7 @@ _Xsetlocale(
int
category
,
int
category
,
_Xconst
char
*
name
);
_Xconst
char
*
name
);
#else
#else
#ifdef __
DARWIN
__
#ifdef __
APPLE
__
extern
char
*
extern
char
*
_Xsetlocale
(
_Xsetlocale
(
int
category
,
int
category
,
...
...
nx-X11/lib/X11/XlcSL.c
View file @
385dc2b0
/*
/*
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Portions Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
"Software"), to deal in the Software without restriction, including
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
portions of the Software.
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
EVEN IF ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
Except as contained in this notice, the names of The Open Group and/or
Except as contained in this notice, the name of The Open Group shall not be
Sun Microsystems, Inc. shall not be used in advertising or otherwise to
used in advertising or otherwise to promote the sale, use or other dealings
promote the sale, use or other dealings in this Software without prior
in this Software without prior written authorization from The Open Group.
written authorization from The Open Group and/or Sun Microsystems,
Inc., as applicable.
X Window System is a trademark of The Open Group
X Window System is a trademark of The Open Group
...
@@ -41,6 +36,29 @@ interest in or to any trademark, service mark, logo or trade name of
...
@@ -41,6 +36,29 @@ interest in or to any trademark, service mark, logo or trade name of
Sun Microsystems, Inc. or its licensors is granted.
Sun Microsystems, Inc. or its licensors is granted.
*/
*/
/*
* Copyright 2000 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, 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 (including the next
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
*/
#ifdef HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#include <config.h>
...
...
nx-X11/lib/X11/Xlcint.h
View file @
385dc2b0
...
@@ -110,7 +110,7 @@ typedef struct {
...
@@ -110,7 +110,7 @@ typedef struct {
* and Input Context
* and Input Context
*/
*/
typedef
struct
{
typedef
struct
{
char
*
resource_name
;
/* Resource string */
c
onst
c
har
*
resource_name
;
/* Resource string */
XrmQuark
xrm_name
;
/* Resource name quark */
XrmQuark
xrm_name
;
/* Resource name quark */
int
resource_size
;
/* Size in bytes of data */
int
resource_size
;
/* Size in bytes of data */
long
resource_offset
;
/* Offset from base */
long
resource_offset
;
/* Offset from base */
...
@@ -352,7 +352,7 @@ typedef struct {
...
@@ -352,7 +352,7 @@ typedef struct {
}
XlcArg
,
*
XlcArgList
;
}
XlcArg
,
*
XlcArgList
;
typedef
struct
_XlcResource
{
typedef
struct
_XlcResource
{
char
*
name
;
c
onst
c
har
*
name
;
XrmQuark
xrm_name
;
XrmQuark
xrm_name
;
int
size
;
int
size
;
int
offset
;
int
offset
;
...
@@ -910,6 +910,11 @@ extern void _XlcAddUtf8LocaleConverters(
...
@@ -910,6 +910,11 @@ extern void _XlcAddUtf8LocaleConverters(
XLCd
lcd
XLCd
lcd
);
);
/* Registers GB18030 converters for a GB18030 locale. */
extern
void
_XlcAddGB18030LocaleConverters
(
XLCd
lcd
);
/* The default locale loader. Assumes an ASCII encoding. */
/* The default locale loader. Assumes an ASCII encoding. */
extern
XLCd
_XlcDefaultLoader
(
extern
XLCd
_XlcDefaultLoader
(
const
char
*
name
const
char
*
name
...
...
nx-X11/lib/X11/imKStoUCS.c
View file @
385dc2b0
...
@@ -119,11 +119,11 @@ static unsigned short const keysym_to_unicode_8a4_8fe[] = {
...
@@ -119,11 +119,11 @@ static unsigned short const keysym_to_unicode_8a4_8fe[] = {
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
/* 0x08b0-0x08b7 */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
/* 0x08b0-0x08b7 */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x2264
,
0x2260
,
0x2265
,
0x222b
,
/* 0x08b8-0x08bf */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x2264
,
0x2260
,
0x2265
,
0x222b
,
/* 0x08b8-0x08bf */
0x2234
,
0x0000
,
0x221e
,
0x0000
,
0x0000
,
0x2207
,
0x0000
,
0x0000
,
/* 0x08c0-0x08c7 */
0x2234
,
0x0000
,
0x221e
,
0x0000
,
0x0000
,
0x2207
,
0x0000
,
0x0000
,
/* 0x08c0-0x08c7 */
0x2245
,
0x2246
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x2
2a
2
,
0x0000
,
/* 0x08c8-0x08cf */
0x2245
,
0x2246
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x2
1d
2
,
0x0000
,
/* 0x08c8-0x08cf */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x221a
,
0x0000
,
/* 0x08d0-0x08d7 */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x221a
,
0x0000
,
/* 0x08d0-0x08d7 */
0x0000
,
0x0000
,
0x2282
,
0x2283
,
0x2229
,
0x222a
,
0x2227
,
0x2228
,
/* 0x08d8-0x08df */
0x0000
,
0x0000
,
0x2282
,
0x2283
,
0x2229
,
0x222a
,
0x2227
,
0x2228
,
/* 0x08d8-0x08df */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
/* 0x08e0-0x08e7 */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
/* 0x08e0-0x08e7 */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x
0000
,
/* 0x08e8-0x08ef */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x
2202
,
/* 0x08e8-0x08ef */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0192
,
0x0000
,
/* 0x08f0-0x08f7 */
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0192
,
0x0000
,
/* 0x08f0-0x08f7 */
0x0000
,
0x0000
,
0x0000
,
0x2190
,
0x2191
,
0x2192
,
0x2193
/* 0x08f8-0x08ff */
0x0000
,
0x0000
,
0x0000
,
0x2190
,
0x2191
,
0x2192
,
0x2193
/* 0x08f8-0x08ff */
};
};
...
...
nx-X11/lib/X11/lcCT.c
View file @
385dc2b0
...
@@ -51,11 +51,11 @@
...
@@ -51,11 +51,11 @@
* Static representation of a character set that can be used in Compound Text.
* Static representation of a character set that can be used in Compound Text.
*/
*/
typedef
struct
_CTDataRec
{
typedef
struct
_CTDataRec
{
const
char
*
name
;
const
char
name
[
19
]
;
const
char
*
ct_sequence
;
/* Compound Text encoding, ESC sequence */
const
char
ct_sequence
[
5
]
;
/* Compound Text encoding, ESC sequence */
}
CTDataRec
,
*
CTData
;
}
CTDataRec
,
*
CTData
;
static
CTDataRec
default_ct_data
[]
=
static
const
CTDataRec
default_ct_data
[]
=
{
{
/* */
/* */
/* X11 registry name MIME name ISO-IR ESC sequence */
/* X11 registry name MIME name ISO-IR ESC sequence */
...
@@ -123,6 +123,8 @@ static CTDataRec default_ct_data[] =
...
@@ -123,6 +123,8 @@ static CTDataRec default_ct_data[] =
#endif
#endif
/* For use by utf8 -> ctext */
/* For use by utf8 -> ctext */
{
"BIG5-0:GLGR"
,
"
\033
%/2"
},
{
"BIG5-0:GLGR"
,
"
\033
%/2"
},
{
"BIG5HKSCS-0:GLGR"
,
"
\033
%/2"
},
{
"GBK-0:GLGR"
,
"
\033
%/2"
},
/* used by Emacs, but not backed by ISO-IR */
/* used by Emacs, but not backed by ISO-IR */
{
"BIG5-E0:GL"
,
"
\033
$(0"
},
{
"BIG5-E0:GL"
,
"
\033
$(0"
},
{
"BIG5-E0:GR"
,
"
\033
$)0"
},
{
"BIG5-E0:GR"
,
"
\033
$)0"
},
...
@@ -1260,10 +1262,10 @@ open_cstostr(
...
@@ -1260,10 +1262,10 @@ open_cstostr(
/* =========================== Initialization =========================== */
/* =========================== Initialization =========================== */
Bool
Bool
_XlcInitCTInfo
()
_XlcInitCTInfo
(
void
)
{
{
if
(
ct_list
==
NULL
)
{
if
(
ct_list
==
NULL
)
{
CTData
ct_data
;
const
CTDataRec
*
ct_data
;
int
num
;
int
num
;
XlcCharSet
charset
;
XlcCharSet
charset
;
...
...
nx-X11/lib/X11/lcCharSet.c
View file @
385dc2b0
nx-X11/lib/X11/lcConv.c
View file @
385dc2b0
nx-X11/lib/X11/lcDB.c
View file @
385dc2b0
...
@@ -97,10 +97,7 @@ typedef enum {
...
@@ -97,10 +97,7 @@ typedef enum {
typedef
struct
{
typedef
struct
{
Token
token
;
/* token id */
Token
token
;
/* token id */
const
char
*
name
;
/* token sequence */
int
len
;
/* length of token sequence */
int
len
;
/* length of token sequence */
int
(
*
parse_proc
)(
const
char
*
str
,
Token
token
,
Database
*
db
);
/* parsing procedure */
}
TokenTable
;
}
TokenTable
;
static
int
f_newline
(
const
char
*
str
,
Token
token
,
Database
*
db
);
static
int
f_newline
(
const
char
*
str
,
Token
token
,
Database
*
db
);
...
@@ -114,20 +111,20 @@ static int f_backslash (const char *str, Token token, Database *db);
...
@@ -114,20 +111,20 @@ static int f_backslash (const char *str, Token token, Database *db);
static
int
f_numeric
(
const
char
*
str
,
Token
token
,
Database
*
db
);
static
int
f_numeric
(
const
char
*
str
,
Token
token
,
Database
*
db
);
static
int
f_default
(
const
char
*
str
,
Token
token
,
Database
*
db
);
static
int
f_default
(
const
char
*
str
,
Token
token
,
Database
*
db
);
static
TokenTable
token_tbl
[]
=
{
static
const
TokenTable
token_tbl
[]
=
{
{
T_NEWLINE
,
"
\n
"
,
1
,
f_newline
},
{
T_NEWLINE
,
1
},
{
T_COMMENT
,
"#"
,
1
,
f_comment
},
{
T_COMMENT
,
1
},
{
T_SEMICOLON
,
";"
,
1
,
f_semicolon
},
{
T_SEMICOLON
,
1
},
{
T_DOUBLE_QUOTE
,
"
\"
"
,
1
,
f_double_quote
},
{
T_DOUBLE_QUOTE
,
1
},
{
T_LEFT_BRACE
,
"{"
,
1
,
f_left_brace
},
{
T_LEFT_BRACE
,
1
},
{
T_RIGHT_BRACE
,
"}"
,
1
,
f_right_brace
},
{
T_RIGHT_BRACE
,
1
},
{
T_SPACE
,
" "
,
1
,
f_white
},
{
T_SPACE
,
1
},
{
T_TAB
,
"
\t
"
,
1
,
f_white
},
{
T_TAB
,
1
},
{
T_BACKSLASH
,
"
\\
"
,
1
,
f_backslash
},
{
T_BACKSLASH
,
1
},
{
T_NUMERIC_HEX
,
"
\\
x"
,
2
,
f_numeric
},
{
T_NUMERIC_HEX
,
2
},
{
T_NUMERIC_DEC
,
"
\\
d"
,
2
,
f_numeric
},
{
T_NUMERIC_DEC
,
2
},
{
T_NUMERIC_OCT
,
"
\\
o"
,
2
,
f_numeric
},
{
T_NUMERIC_OCT
,
2
},
{
T_DEFAULT
,
" "
,
1
,
f_default
}
/* any character */
{
T_DEFAULT
,
1
}
/* any character */
};
};
#define SYM_CR '\r'
#define SYM_CR '\r'
...
@@ -517,7 +514,8 @@ append_value_list (void)
...
@@ -517,7 +514,8 @@ append_value_list (void)
goto
err1
;
goto
err1
;
}
}
if
(
value
!=
*
value_list
)
{
if
(
value
!=
*
value_list
)
{
int
delta
,
i
;
int
i
;
ssize_t
delta
;
delta
=
value
-
*
value_list
;
delta
=
value
-
*
value_list
;
*
value_list
=
value
;
*
value_list
=
value
;
for
(
i
=
1
;
i
<
value_num
;
++
i
)
{
for
(
i
=
1
;
i
<
value_num
;
++
i
)
{
...
@@ -635,6 +633,7 @@ store_to_database(
...
@@ -635,6 +633,7 @@ store_to_database(
if
(
new
->
name
)
{
if
(
new
->
name
)
{
Xfree
(
new
->
name
);
Xfree
(
new
->
name
);
}
}
Xfree
(
new
);
}
}
if
(
parse_info
.
value
)
{
if
(
parse_info
.
value
)
{
if
(
*
parse_info
.
value
)
{
if
(
*
parse_info
.
value
)
{
...
@@ -1089,8 +1088,48 @@ CreateDatabase(
...
@@ -1089,8 +1088,48 @@ CreateDatabase(
}
}
p
=
line
.
str
;
p
=
line
.
str
;
while
(
*
p
)
{
while
(
*
p
)
{
int
(
*
parse_proc
)(
const
char
*
str
,
Token
token
,
Database
*
db
)
=
NULL
;
token
=
get_token
(
p
);
token
=
get_token
(
p
);
len
=
(
*
token_tbl
[
token
].
parse_proc
)(
p
,
token
,
&
db
);
switch
(
token_tbl
[
token
].
token
)
{
case
T_NEWLINE
:
parse_proc
=
f_newline
;
break
;
case
T_COMMENT
:
parse_proc
=
f_comment
;
break
;
case
T_SEMICOLON
:
parse_proc
=
f_semicolon
;
break
;
case
T_DOUBLE_QUOTE
:
parse_proc
=
f_double_quote
;
break
;
case
T_LEFT_BRACE
:
parse_proc
=
f_left_brace
;
break
;
case
T_RIGHT_BRACE
:
parse_proc
=
f_right_brace
;
break
;
case
T_SPACE
:
case
T_TAB
:
parse_proc
=
f_white
;
break
;
case
T_BACKSLASH
:
parse_proc
=
f_backslash
;
break
;
case
T_NUMERIC_HEX
:
case
T_NUMERIC_DEC
:
case
T_NUMERIC_OCT
:
parse_proc
=
f_numeric
;
break
;
case
T_DEFAULT
:
parse_proc
=
f_default
;
break
;
}
len
=
parse_proc
(
p
,
token
,
&
db
);
if
(
len
<
1
)
{
if
(
len
<
1
)
{
error
=
1
;
error
=
1
;
break
;
break
;
...
...
nx-X11/lib/X11/lcGeneric.c
View file @
385dc2b0
...
@@ -1005,8 +1005,7 @@ initialize_core(
...
@@ -1005,8 +1005,7 @@ initialize_core(
#endif
#endif
static
Bool
static
Bool
initialize
(
lcd
)
initialize
(
XLCd
lcd
)
XLCd
lcd
;
{
{
XLCdPublicMethods
superclass
=
(
XLCdPublicMethods
)
_XlcPublicMethods
;
XLCdPublicMethods
superclass
=
(
XLCdPublicMethods
)
_XlcPublicMethods
;
...
...
nx-X11/lib/X11/lcInit.c
View file @
385dc2b0
/*
/*
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Copyright 1985, 1986, 1987, 1991, 1998 The Open Group
Portions Copyright 2000 Sun Microsystems, Inc. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
"Software"), to deal in the Software without restriction, including
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
...
@@ -14,21 +12,18 @@ permission notice shall be included in all copies or substantial
portions of the Software.
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
EVEN IF ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.
Except as contained in this notice, the names of The Open Group and/or
Except as contained in this notice, the name of The Open Group shall not be
Sun Microsystems, Inc. shall not be used in advertising or otherwise to
used in advertising or otherwise to promote the sale, use or other dealings
promote the sale, use or other dealings in this Software without prior
in this Software without prior written authorization from The Open Group.
written authorization from The Open Group and/or Sun Microsystems,
Inc., as applicable.
X Window System is a trademark of The Open Group
X Window System is a trademark of The Open Group
...
@@ -42,6 +37,29 @@ Sun Microsystems, Inc. or its licensors is granted.
...
@@ -42,6 +37,29 @@ Sun Microsystems, Inc. or its licensors is granted.
*/
*/
/*
/*
* Copyright 2000 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, 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 (including the next
* paragraph) 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 AUTHORS OR COPYRIGHT HOLDERS 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.
*/
/*
* Copyright 1992, 1993 by TOSHIBA Corp.
* Copyright 1992, 1993 by TOSHIBA Corp.
*
*
* Permission to use, copy, modify, and distribute this software and its
* Permission to use, copy, modify, and distribute this software and its
...
@@ -101,7 +119,7 @@ Sun Microsystems, Inc. or its licensors is granted.
...
@@ -101,7 +119,7 @@ Sun Microsystems, Inc. or its licensors is granted.
*/
*/
void
void
_XlcInitLoader
()
_XlcInitLoader
(
void
)
{
{
#ifdef USE_DYNAMIC_LC
#ifdef USE_DYNAMIC_LC
...
@@ -140,7 +158,7 @@ _XlcInitLoader()
...
@@ -140,7 +158,7 @@ _XlcInitLoader()
}
}
void
void
_XlcDeInitLoader
()
_XlcDeInitLoader
(
void
)
{
{
#ifdef USE_DYNAMIC_LC
#ifdef USE_DYNAMIC_LC
...
...
nx-X11/lib/X11/lcPrTxt.c
View file @
385dc2b0
nx-X11/lib/X11/lcPubWrap.c
View file @
385dc2b0
nx-X11/lib/X11/lcPublic.c
View file @
385dc2b0
nx-X11/lib/X11/lcStd.c
View file @
385dc2b0
nx-X11/lib/X11/lcTxtPr.c
View file @
385dc2b0
nx-X11/lib/X11/lcUTF8.c
View file @
385dc2b0
This diff is collapsed.
Click to expand it.
nx-X11/lib/X11/lcUtil.c
View file @
385dc2b0
nx-X11/lib/X11/lcWrap.c
View file @
385dc2b0
...
@@ -94,7 +94,7 @@ XSetLocaleModifiers(
...
@@ -94,7 +94,7 @@ XSetLocaleModifiers(
}
}
Bool
Bool
XSupportsLocale
()
XSupportsLocale
(
void
)
{
{
return
_XlcCurrentLC
()
!=
(
XLCd
)
NULL
;
return
_XlcCurrentLC
()
!=
(
XLCd
)
NULL
;
}
}
...
@@ -152,7 +152,7 @@ _XlcDefaultMapModifiers(
...
@@ -152,7 +152,7 @@ _XlcDefaultMapModifiers(
#ifdef WIN32
#ifdef WIN32
{
{
char
*
s
;
char
*
s
;
for
(
s
=
mods
;
s
=
strchr
(
s
,
'@'
);
s
++
)
{
for
(
s
=
mods
;
(
s
=
strchr
(
s
,
'@'
)
);
s
++
)
{
for
(
s
++
;
*
s
&&
*
s
!=
'='
;
s
++
)
{
for
(
s
++
;
*
s
&&
*
s
!=
'='
;
s
++
)
{
if
(
*
s
==
'#'
)
{
if
(
*
s
==
'#'
)
{
*
s
=
'='
;
*
s
=
'='
;
...
@@ -347,7 +347,7 @@ _XCloseLC(
...
@@ -347,7 +347,7 @@ _XCloseLC(
*/
*/
XLCd
XLCd
_XlcCurrentLC
()
_XlcCurrentLC
(
void
)
{
{
XLCd
lcd
;
XLCd
lcd
;
static
XLCd
last_lcd
=
NULL
;
static
XLCd
last_lcd
=
NULL
;
...
@@ -486,7 +486,7 @@ XwcFreeStringList(
...
@@ -486,7 +486,7 @@ XwcFreeStringList(
}
}
const
char
*
const
char
*
XDefaultString
()
XDefaultString
(
void
)
{
{
XLCd
lcd
=
_XlcCurrentLC
();
XLCd
lcd
=
_XlcCurrentLC
();
...
...
nx-X11/lib/X11/mbWrap.c
View file @
385dc2b0
nx-X11/lib/X11/utf8WMProps.c
View file @
385dc2b0
/* $TOG: mbWMProps.c /main/6 1998/02/06 17:44:24 kaleb $ */
/*
/*
Copyright 1991, 1998 The Open Group
Copyright 1991, 1998 The Open Group
...
...
nx-X11/lib/X11/utf8Wrap.c
View file @
385dc2b0
/* $TOG: mbWrap.c /main/7 1998/02/06 17:44:30 kaleb $ */
/*
/*
Copyright 1991, 1998 The Open Group
Copyright 1991, 1998 The Open Group
...
...
nx-X11/lib/X11/wcWrap.c
View file @
385dc2b0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment