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
d7fa6b3b
Commit
d7fa6b3b
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Fix more warnings.
parent
b6d7ada1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/ansi_cio.c
+7
-0
7 additions, 0 deletions
src/conio/ansi_cio.c
with
7 additions
and
0 deletions
src/conio/ansi_cio.c
+
7
−
0
View file @
d7fa6b3b
...
@@ -202,6 +202,7 @@ int ansi_puttext(int sx, int sy, int ex, int ey, void* buf)
...
@@ -202,6 +202,7 @@ int ansi_puttext(int sx, int sy, int ex, int ey, void* buf)
gotoxy
(
ti
.
curx
,
ti
.
cury
);
gotoxy
(
ti
.
curx
,
ti
.
cury
);
if
(
attrib
!=
ti
.
attribute
)
if
(
attrib
!=
ti
.
attribute
)
textattr
(
ti
.
attribute
);
textattr
(
ti
.
attribute
);
return
(
1
);
}
}
int
ansi_gettext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
void
*
buf
)
int
ansi_gettext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
void
*
buf
)
...
@@ -235,6 +236,7 @@ int ansi_gettext(int sx, int sy, int ex, int ey, void* buf)
...
@@ -235,6 +236,7 @@ int ansi_gettext(int sx, int sy, int ex, int ey, void* buf)
*
(
out
++
)
=
sch
>>
8
;
*
(
out
++
)
=
sch
>>
8
;
}
}
}
}
return
(
1
);
}
}
void
ansi_textattr
(
int
attr
)
void
ansi_textattr
(
int
attr
)
...
@@ -305,6 +307,7 @@ static void ansi_keyparse(void *par)
...
@@ -305,6 +307,7 @@ static void ansi_keyparse(void *par)
int
i
;
int
i
;
char
*
p
;
char
*
p
;
if
(
par
);
/* Shut up BCC */
for
(;;)
{
for
(;;)
{
while
(
!
ansi_raw_inch
while
(
!
ansi_raw_inch
&&
(
gotesc
||
(
!
gotesc
&&
!
seq
[
0
])))
{
&&
(
gotesc
||
(
!
gotesc
&&
!
seq
[
0
])))
{
...
@@ -376,6 +379,7 @@ static void ansi_keythread(void *params)
...
@@ -376,6 +379,7 @@ static void ansi_keythread(void *params)
{
{
_beginthread
(
ansi_keyparse
,
1024
,
NULL
);
_beginthread
(
ansi_keyparse
,
1024
,
NULL
);
if
(
params
);
/* Shut up BCC */
for
(;;)
{
for
(;;)
{
if
(
!
ansi_raw_inch
)
if
(
!
ansi_raw_inch
)
ansi_raw_inch
=
fgetc
(
stdin
);
ansi_raw_inch
=
fgetc
(
stdin
);
...
@@ -595,6 +599,7 @@ int ansi_beep(void)
...
@@ -595,6 +599,7 @@ int ansi_beep(void)
void
ansi_textmode
(
int
mode
)
void
ansi_textmode
(
int
mode
)
{
{
if
(
mode
);
/* Shut up BCC */
}
}
#ifdef __unix__
#ifdef __unix__
...
@@ -608,6 +613,7 @@ int ansi_initciolib(long inmode)
...
@@ -608,6 +613,7 @@ int ansi_initciolib(long inmode)
{
{
int
i
;
int
i
;
char
*
init
=
"
\033
[0m
\033
[2J
\033
[1;1H"
;
char
*
init
=
"
\033
[0m
\033
[2J
\033
[1;1H"
;
#ifdef _WIN32
#ifdef _WIN32
setmode
(
fileno
(
stdout
),
_O_BINARY
);
setmode
(
fileno
(
stdout
),
_O_BINARY
);
setmode
(
fileno
(
stdin
),
_O_BINARY
);
setmode
(
fileno
(
stdin
),
_O_BINARY
);
...
@@ -629,5 +635,6 @@ int ansi_initciolib(long inmode)
...
@@ -629,5 +635,6 @@ int ansi_initciolib(long inmode)
for
(
i
=
0
;
i
<
ansi_rows
*
ansi_cols
;
i
++
)
for
(
i
=
0
;
i
<
ansi_rows
*
ansi_cols
;
i
++
)
vmem
[
i
]
=
0x0720
;
vmem
[
i
]
=
0x0720
;
_beginthread
(
ansi_keythread
,
1024
,
NULL
);
_beginthread
(
ansi_keythread
,
1024
,
NULL
);
if
(
inmode
);
/* Shut up BCC */
return
(
1
);
return
(
1
);
}
}
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