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
7b0bdde5
You need to sign in or sign up before continuing.
Commit
7b0bdde5
authored
Aug 02, 2016
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update makekeys.c to libX11 1.3.4 (+ fix)
parent
b4571a8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
makekeys.c
nx-X11/lib/X11/util/makekeys.c
+7
-11
No files found.
nx-X11/lib/X11/util/makekeys.c
View file @
7b0bdde5
...
...
@@ -33,9 +33,6 @@ from The Open Group.
#include <nx-X11/keysymdef.h>
#include <stdio.h>
#include <stdlib.h>
#if defined(macII) && !defined(__STDC__)
/* stdlib.h fails to define these */
char
*
malloc
();
#endif
/* macII */
typedef
unsigned
long
Signature
;
...
...
@@ -46,14 +43,14 @@ static struct info {
KeySym
val
;
}
info
[
KTNUM
];
#define MIN_REHASH 1
0
#define MIN_REHASH 1
5
#define MATCHES 10
char
tab
[
KTNUM
];
unsigned
short
offsets
[
KTNUM
];
unsigned
short
indexes
[
KTNUM
];
KeySym
values
[
KTNUM
];
char
buf
[
1024
];
static
char
tab
[
KTNUM
];
static
unsigned
short
offsets
[
KTNUM
];
static
unsigned
short
indexes
[
KTNUM
];
static
KeySym
values
[
KTNUM
];
static
char
buf
[
1024
];
int
main
(
int
argc
,
char
*
argv
[])
...
...
@@ -100,12 +97,11 @@ main(int argc, char *argv[])
key
);
continue
;
}
name
=
malloc
((
unsigned
)
strlen
(
key
)
+
1
);
name
=
strdup
(
key
);
if
(
!
name
)
{
fprintf
(
stderr
,
"makekeys: out of memory!
\n
"
);
exit
(
1
);
}
(
void
)
strcpy
(
name
,
key
);
info
[
ksnum
].
name
=
name
;
ksnum
++
;
if
(
ksnum
==
KTNUM
)
{
...
...
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