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
d15e6d15
Commit
d15e6d15
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Fix to follow Borland prototypes.
parent
17a50ff5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/conio/curs_cio.c
+8
-4
8 additions, 4 deletions
src/conio/curs_cio.c
src/conio/curs_cio.h
+4
-4
4 additions, 4 deletions
src/conio/curs_cio.h
with
12 additions
and
8 deletions
src/conio/curs_cio.c
+
8
−
4
View file @
d15e6d15
...
@@ -54,7 +54,7 @@ short curses_color(short color)
...
@@ -54,7 +54,7 @@ short curses_color(short color)
return
(
0
);
return
(
0
);
}
}
int
curs_puttext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
unsigned
char
*
fill
)
int
curs_puttext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
void
*
fill
buf
)
{
{
int
x
,
y
;
int
x
,
y
;
int
fillpos
=
0
;
int
fillpos
=
0
;
...
@@ -63,7 +63,9 @@ int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill)
...
@@ -63,7 +63,9 @@ int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill)
unsigned
char
orig_attr
;
unsigned
char
orig_attr
;
int
oldx
,
oldy
;
int
oldx
,
oldy
;
struct
text_info
ti
;
struct
text_info
ti
;
unsigned
char
*
fill
;
fill
=
fillbuf
;
gettextinfo
(
&
ti
);
gettextinfo
(
&
ti
);
if
(
sx
<
1
if
(
sx
<
1
...
@@ -98,7 +100,7 @@ int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill)
...
@@ -98,7 +100,7 @@ int curs_puttext(int sx, int sy, int ex, int ey, unsigned char *fill)
return
(
1
);
return
(
1
);
}
}
int
curs_gettext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
unsigned
char
*
fill
)
int
curs_gettext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
void
*
fill
buf
)
{
{
int
x
,
y
;
int
x
,
y
;
int
fillpos
=
0
;
int
fillpos
=
0
;
...
@@ -109,7 +111,9 @@ int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill)
...
@@ -109,7 +111,9 @@ int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill)
unsigned
char
thischar
;
unsigned
char
thischar
;
int
ext_char
;
int
ext_char
;
struct
text_info
ti
;
struct
text_info
ti
;
unsigned
char
*
fill
;
fill
=
fillbuf
;
gettextinfo
(
&
ti
);
gettextinfo
(
&
ti
);
if
(
sx
<
1
if
(
sx
<
1
...
@@ -361,7 +365,7 @@ int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill)
...
@@ -361,7 +365,7 @@ int curs_gettext(int sx, int sy, int ex, int ey, unsigned char *fill)
return
(
1
);
return
(
1
);
}
}
void
curs_textattr
(
unsigned
char
attr
)
void
curs_textattr
(
int
attr
)
{
{
chtype
attrs
=
A_NORMAL
;
chtype
attrs
=
A_NORMAL
;
int
colour
;
int
colour
;
...
@@ -670,7 +674,7 @@ void curs_setcursortype(int type) {
...
@@ -670,7 +674,7 @@ void curs_setcursortype(int type) {
refresh
();
refresh
();
}
}
int
curs_putch
(
unsigned
char
c
)
int
curs_putch
(
int
c
)
{
{
struct
text_info
ti
;
struct
text_info
ti
;
int
ret
;
int
ret
;
...
...
This diff is collapsed.
Click to expand it.
src/conio/curs_cio.h
+
4
−
4
View file @
d15e6d15
...
@@ -10,15 +10,15 @@
...
@@ -10,15 +10,15 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
short
curses_color
(
short
color
);
short
curses_color
(
short
color
);
int
curs_puttext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
unsigned
char
*
fill
);
int
curs_puttext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
void
*
fill
);
int
curs_gettext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
unsigned
char
*
fill
);
int
curs_gettext
(
int
sx
,
int
sy
,
int
ex
,
int
ey
,
void
*
fill
);
void
curs_textattr
(
unsigned
char
attr
);
void
curs_textattr
(
int
attr
);
int
curs_kbhit
(
void
);
int
curs_kbhit
(
void
);
void
curs_delay
(
long
msec
);
void
curs_delay
(
long
msec
);
int
curs_wherey
(
void
);
int
curs_wherey
(
void
);
int
curs_wherex
(
void
);
int
curs_wherex
(
void
);
int
_putch
(
unsigned
char
ch
,
BOOL
refresh_now
);
int
_putch
(
unsigned
char
ch
,
BOOL
refresh_now
);
int
curs_putch
(
unsigned
char
ch
);
int
curs_putch
(
int
ch
);
void
curs_gotoxy
(
int
x
,
int
y
);
void
curs_gotoxy
(
int
x
,
int
y
);
int
curs_initciolib
(
long
inmode
);
int
curs_initciolib
(
long
inmode
);
void
curs_gettextinfo
(
struct
text_info
*
info
);
void
curs_gettextinfo
(
struct
text_info
*
info
);
...
...
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