Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
7136093d
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7136093d
编写于
11月 01, 2018
作者:
P
prr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8213213: Remove src/java.desktop/unix/classes/sun/awt/X11/keysym2ucs.h
Reviewed-by: serb
上级
e64e353e
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
2864 deletion
+14
-2864
THIRD_PARTY_README
THIRD_PARTY_README
+0
-49
src/solaris/classes/sun/awt/X11/XKeysym.java
src/solaris/classes/sun/awt/X11/XKeysym.java
+14
-12
src/solaris/classes/sun/awt/X11/genhash.awk
src/solaris/classes/sun/awt/X11/genhash.awk
+0
-45
src/solaris/classes/sun/awt/X11/keysym2ucs.h
src/solaris/classes/sun/awt/X11/keysym2ucs.h
+0
-2758
未找到文件。
THIRD_PARTY_README
浏览文件 @
7136093d
...
...
@@ -2905,55 +2905,6 @@ contained herein or direct, indirect, special, incidental or
consequential damages in connection with the furnishing,
performance, or use of this material.
*/
_____________________________________
Copyright notice in keysym2ucs.h:
Copyright 1987, 1994, 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 1987 by Digital Equipment Corporation, Maynard, Massachusetts
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Digital not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR 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.
*/
--- end of LICENSE ---
...
...
src/solaris/classes/sun/awt/X11/XKeysym.java
浏览文件 @
7136093d
// This is a generated file: do not edit! Edit keysym2ucs.h if necessary.
/*
* Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
...
...
@@ -25,6 +23,19 @@
* questions.
*/
/*
* This file was originally generated by a tool that embedded much of
* an X11 keysym header file, keysym2ucs.h, turned into a Java program,
* and which also consumed an UnicodeData.txt database file.
* keysym2ucs.h and a genhash.awk script were checked in alongside this
* source file. Maintaining the Java program to match updated versions
* of keysym2ucs.h is too burdensome, since it is rarely, needed and any
* updates will be minimal, so they have been removed and
* this file can now be hand maintained. If it ever becomes necessary
* to re-generate it, then the deleted files can be recovered from
* the history.
*/
package
sun.awt.X11
;
import
java.util.Hashtable
;
import
sun.misc.Unsafe
;
...
...
@@ -33,15 +44,6 @@ import sun.util.logging.PlatformLogger;
public
class
XKeysym
{
public
static
void
main
(
String
args
[]
)
{
System
.
out
.
println
(
"Cyrillc zhe:"
+
convertKeysym
(
0x06d6
,
0
));
System
.
out
.
println
(
"Arabic sheen:"
+
convertKeysym
(
0x05d4
,
0
));
System
.
out
.
println
(
"Latin a breve:"
+
convertKeysym
(
0x01e3
,
0
));
System
.
out
.
println
(
"Latin f:"
+
convertKeysym
(
0x066
,
0
));
System
.
out
.
println
(
"Backspace:"
+
Integer
.
toHexString
(
convertKeysym
(
0xff08
,
0
)));
System
.
out
.
println
(
"Ctrl+f:"
+
Integer
.
toHexString
(
convertKeysym
(
0x066
,
XConstants
.
ControlMask
)));
}
private
XKeysym
()
{}
static
class
Keysym2JavaKeycode
{
...
...
@@ -71,7 +73,7 @@ public class XKeysym {
static
long
keysym_uppercase
=
unsafe
.
allocateMemory
(
Native
.
getLongSize
());
static
Keysym2JavaKeycode
kanaLock
=
new
Keysym2JavaKeycode
(
java
.
awt
.
event
.
KeyEvent
.
VK_KANA_LOCK
,
java
.
awt
.
event
.
KeyEvent
.
KEY_LOCATION_STANDARD
);
private
static
PlatformLogger
keyEventLog
=
PlatformLogger
.
getLogger
(
"sun.awt.X11.k
ye
.XKeysym"
);
private
static
PlatformLogger
keyEventLog
=
PlatformLogger
.
getLogger
(
"sun.awt.X11.k
ey
.XKeysym"
);
public
static
char
convertKeysym
(
long
ks
,
int
state
)
{
/* First check for Latin-1 characters (1:1 mapping) */
...
...
src/solaris/classes/sun/awt/X11/genhash.awk
已删除
100644 → 0
浏览文件 @
e64e353e
# Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# With this script one can generate a new version XKeysym.java file out
# of keysym2ucs.h prototype and UnicodeData.txt database.
# Latter file should be fetched from a unicode.org site, most
# probably http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
#
BEGIN
{
FS
=
";"
;
while
((
getline
<
"UnicodeData.txt"
)){
unic
[
$1
]
=
$2
;
}
FS
=
" "
;
print
(
"// This is a generated file: do not edit! Edit keysym2ucs.h if necessary.\n"
);
}
/^0x/
{
if
(
$1
!=
"0x0000"
)
{
ndx
=
toupper
(
$1
);
sub
(
/0X/
,
""
,
ndx
);
printf
(
" keysym2UCSHash.put( (long)%s, (char)%s); // %s -->%s\n"
,
$4
,
$1
,
$3
,
(
unic
[
ndx
]
==
""
?
""
:
" "
unic
[
ndx
]));
}
}
/tojava/
{
sub
(
/tojava /
,
""
);
sub
(
/tojava$/
,
""
);
print
}
src/solaris/classes/sun/awt/X11/keysym2ucs.h
已删除
100644 → 0
浏览文件 @
e64e353e
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录