Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
6c02f54a
Commit
6c02f54a
authored
18 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Prettier Win32-debug of keyboard input.
parent
1e15ff8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/win32cio.c
+11
-1
11 additions, 1 deletion
src/conio/win32cio.c
with
11 additions
and
1 deletion
src/conio/win32cio.c
+
11
−
1
View file @
6c02f54a
...
@@ -163,6 +163,16 @@ static int ypos=1;
...
@@ -163,6 +163,16 @@ static int ypos=1;
static
int
currattr
=
7
;
static
int
currattr
=
7
;
static
int
modeidx
=
3
;
static
int
modeidx
=
3
;
#if defined(_DEBUG)
static
void
dputs
(
const
char
*
str
)
{
char
msg
[
1024
];
SAFEPRINTF
(
msg
,
"%s
\r\n
"
,
str
);
OutputDebugString
(
msg
);
}
#endif
static
void
dprintf
(
const
char
*
fmt
,
...)
static
void
dprintf
(
const
char
*
fmt
,
...)
{
{
#if defined(_DEBUG)
#if defined(_DEBUG)
...
@@ -173,7 +183,7 @@ static void dprintf(const char* fmt, ...)
...
@@ -173,7 +183,7 @@ static void dprintf(const char* fmt, ...)
vsnprintf
(
sbuf
,
sizeof
(
sbuf
),
fmt
,
argptr
);
vsnprintf
(
sbuf
,
sizeof
(
sbuf
),
fmt
,
argptr
);
sbuf
[
sizeof
(
sbuf
)
-
1
]
=
0
;
sbuf
[
sizeof
(
sbuf
)
-
1
]
=
0
;
va_end
(
argptr
);
va_end
(
argptr
);
OutputDebugString
(
sbuf
);
dputs
(
sbuf
);
#endif
/* _DEBUG */
#endif
/* _DEBUG */
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment