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
4ad501b3
Commit
4ad501b3
authored
Jan 19, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NXdixfonts.c: drop NXAGENT_DEBUG
and use DEBUG like everywhere else. There were already some TEST lines using this scheme. Also indent DEBUG and TEST lines to make the code more readable
parent
c135bbcf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
36 deletions
+35
-36
Imakefile
nx-X11/programs/Xserver/hw/nxagent/Imakefile
+0
-1
NXdixfonts.c
nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c
+35
-35
No files found.
nx-X11/programs/Xserver/hw/nxagent/Imakefile
View file @
4ad501b3
...
...
@@ -215,7 +215,6 @@ INCLUDES = \
#
# DEBUG_COLORMAP
# DEBUG_TREE Include code that activates the keystroke to print the current window tree
# NXAGENT_DEBUG
# NXAGENT_FIXKEYS_DEBUG
# NXAGENT_FONTCACHE_DEBUG
# NXAGENT_FONTMATCH_DEBUG
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c
View file @
4ad501b3
...
...
@@ -81,15 +81,16 @@ static Bool doListFontsAndAliases(ClientPtr client, LFclosurePtr c);
#include "../../dix/dixfonts.c"
/*
#define NXAGENT_DEBUG
*/
#include "Agent.h"
#include "Font.h"
#ifdef NXAGENT_SERVER
#define PANIC
#define WARNING
#undef TEST
#undef DEBUG
#define NXFONTPATHLENGTH 1024
char
_NXFontPath
[
NXFONTPATHLENGTH
];
...
...
@@ -116,17 +117,17 @@ static char *_NXGetFontPath(const char *path)
{
if
(
strlen
(
fontEnv
)
+
1
>
NXFONTPATHLENGTH
)
{
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"_NXGetFontPath: WARNING! Maximum length of font path exceeded.
\n
"
);
#endif
#endif
goto
_NXGetFontPathError
;
}
snprintf
(
_NXFontPath
,
NXFONTPATHLENGTH
,
"%s"
,
fontEnv
);
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"_NXGetFontPath: Using NX font path [%s].
\n
"
,
_NXFontPath
);
#endif
#endif
return
_NXFontPath
;
}
...
...
@@ -135,9 +136,9 @@ _NXGetFontPathError:
snprintf
(
_NXFontPath
,
NXFONTPATHLENGTH
,
"%s"
,
path
);
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"_NXGetFontPath: Using default font path [%s].
\n
"
,
_NXFontPath
);
#endif
#endif
return
_NXFontPath
;
}
...
...
@@ -253,8 +254,9 @@ doOpenFont(ClientPtr client, OFclosurePtr c)
if
(
!
c
->
slept
)
{
c
->
slept
=
TRUE
;
ClientSleep
(
client
,
(
ClientSleepProcPtr
)
doOpenFont
,
(
void
*
)
c
);
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: doOpenFont: client [%lx] sleeping.
\n
"
,
client
);
#endif
#endif
}
return
TRUE
;
...
...
@@ -328,9 +330,9 @@ bail:
if
(
c
->
slept
)
{
ClientWakeup
(
c
->
client
);
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: doOpenFont: client [%lx] wakeup.
\n
"
,
client
);
#endif
#endif
}
for
(
i
=
0
;
i
<
c
->
num_fpes
;
i
++
)
{
FreeFPE
(
c
->
fpe_list
[
i
]);
...
...
@@ -403,9 +405,9 @@ doListFontsAndAliases(ClientPtr client, LFclosurePtr c)
ClientSleep
(
client
,
(
ClientSleepProcPtr
)
doListFontsAndAliases
,
(
void
*
)
c
);
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: doListFont (1): client [%lx] sleeping.
\n
"
,
client
);
#endif
#endif
}
return
TRUE
;
}
...
...
@@ -460,12 +462,10 @@ doListFontsAndAliases(ClientPtr client, LFclosurePtr c)
(
ClientSleepProcPtr
)
doListFontsAndAliases
,
(
void
*
)
c
);
c
->
slept
=
TRUE
;
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: doListFont (2): client [%lx] sleeping.
\n
"
,
client
);
#endif
#ifdef NXAGENT_DEBUG
fprintf
(
stderr
,
" NXdixfonts: doListFont (3): client [%lx] sleeping.
\n
"
,
client
);
#endif
#endif
}
return
TRUE
;
}
...
...
@@ -647,9 +647,9 @@ bail:
if
(
c
->
slept
)
{
ClientWakeup
(
client
);
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: doListFont: client [%lx] wakeup.
\n
"
,
client
);
#endif
#endif
}
for
(
i
=
0
;
i
<
c
->
num_fpes
;
i
++
)
FreeFPE
(
c
->
fpe_list
[
i
]);
...
...
@@ -772,9 +772,9 @@ doListFontsWithInfo(ClientPtr client, LFWIclosurePtr c)
{
ClientSleep
(
client
,
(
ClientSleepProcPtr
)
doListFontsWithInfo
,
c
);
c
->
slept
=
TRUE
;
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: doListFontWinfo (1): client [%lx] sleeping.
\n
"
,
client
);
#endif
#endif
}
return
TRUE
;
}
...
...
@@ -800,9 +800,9 @@ doListFontsWithInfo(ClientPtr client, LFWIclosurePtr c)
(
ClientSleepProcPtr
)
doListFontsWithInfo
,
c
);
c
->
slept
=
TRUE
;
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: doListFontWinfo (2): client [%lx] sleeping.
\n
"
,
client
);
#endif
#endif
}
return
TRUE
;
}
...
...
@@ -965,9 +965,9 @@ bail:
if
(
c
->
slept
)
{
ClientWakeup
(
client
);
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: doListFontWinfo: client [%lx] wakeup.
\n
"
,
client
);
#endif
#endif
}
for
(
i
=
0
;
i
<
c
->
num_fpes
;
i
++
)
FreeFPE
(
c
->
fpe_list
[
i
]);
...
...
@@ -1055,9 +1055,9 @@ nxdoListFontsAndAliases(client, fss)
ClientSleep
(
client
,
(
ClientSleepProcPtr
)
nxdoListFontsAndAliases
,
(
void
*
)
fss
);
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: nxdoListFont (1): client [%lx] sleeping.
\n
"
,
client
);
#endif
#endif
}
return
TRUE
;
}
...
...
@@ -1090,9 +1090,9 @@ nxdoListFontsAndAliases(client, fss)
(
ClientSleepProcPtr
)
nxdoListFontsAndAliases
,
(
void
*
)
fss
);
c
->
slept
=
TRUE
;
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: nxdoListFont (2): client [%lx] sleeping.
\n
"
,
client
);
#endif
#endif
}
return
TRUE
;
}
...
...
@@ -1115,9 +1115,9 @@ nxdoListFontsAndAliases(client, fss)
(
ClientSleepProcPtr
)
nxdoListFontsAndAliases
,
(
void
*
)
fss
);
c
->
slept
=
TRUE
;
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: nxdoListFont (3): client [%lx] sleeping.
\n
"
,
client
);
#endif
#endif
}
return
TRUE
;
}
...
...
@@ -1283,9 +1283,9 @@ finish:
if
(
c
->
slept
)
{
ClientWakeup
(
client
);
#ifdef NXAGENT_
DEBUG
#ifdef
DEBUG
fprintf
(
stderr
,
" NXdixfonts: nxdoListFont: client [%lx] wakeup.
\n
"
,
client
);
#endif
#endif
}
for
(
i
=
0
;
i
<
c
->
num_fpes
;
i
++
)
FreeFPE
(
c
->
fpe_list
[
i
]);
...
...
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