Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
a035db22
Commit
a035db22
authored
Feb 10, 2022
by
Deucе
👌🏾
Browse files
More constifying of showbuf()
Oddly enough the hbuf wasn't actually modified.
parent
27f4d8fc
Pipeline
#2704
passed with stage
in 12 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/uifc/uifc.h
src/uifc/uifc.h
+1
-1
src/uifc/uifc32.c
src/uifc/uifc32.c
+5
-5
No files found.
src/uifc/uifc.h
View file @
a035db22
...
@@ -481,7 +481,7 @@ typedef struct {
...
@@ -481,7 +481,7 @@ typedef struct {
/* Shows a scrollable text buffer - optionally parsing "help markup codes" */
/* Shows a scrollable text buffer - optionally parsing "help markup codes" */
/****************************************************************************/
/****************************************************************************/
void
(
*
showbuf
)(
int
mode
,
int
left
,
int
top
,
int
width
,
int
height
void
(
*
showbuf
)(
int
mode
,
int
left
,
int
top
,
int
width
,
int
height
,
const
char
*
title
,
char
*
hbuf
,
int
*
curp
,
int
*
barp
);
,
const
char
*
title
,
const
char
*
hbuf
,
int
*
curp
,
int
*
barp
);
/****************************************************************************/
/****************************************************************************/
/* Updates time in upper left corner of screen with current time in ASCII/ */
/* Updates time in upper left corner of screen with current time in ASCII/ */
...
...
src/uifc/uifc32.c
View file @
a035db22
...
@@ -88,7 +88,7 @@ static BOOL deny(char *fmt, ...);
...
@@ -88,7 +88,7 @@ static BOOL deny(char *fmt, ...);
static
void
upop
(
const
char
*
str
);
static
void
upop
(
const
char
*
str
);
static
void
sethelp
(
int
line
,
char
*
file
);
static
void
sethelp
(
int
line
,
char
*
file
);
static
void
showbuf
(
int
mode
,
int
left
,
int
top
,
int
width
,
int
height
,
const
char
*
title
static
void
showbuf
(
int
mode
,
int
left
,
int
top
,
int
width
,
int
height
,
const
char
*
title
,
char
*
hbuf
,
int
*
curp
,
int
*
barp
);
,
const
char
*
hbuf
,
int
*
curp
,
int
*
barp
);
/* Dynamic menu support */
/* Dynamic menu support */
static
int
*
last_menu_cur
=
NULL
;
static
int
*
last_menu_cur
=
NULL
;
...
@@ -2690,12 +2690,12 @@ void sethelp(int line, char* file)
...
@@ -2690,12 +2690,12 @@ void sethelp(int line, char* file)
/****************************************************************************/
/****************************************************************************/
/* Shows a scrollable text buffer - optionally parsing "help markup codes" */
/* Shows a scrollable text buffer - optionally parsing "help markup codes" */
/****************************************************************************/
/****************************************************************************/
void
showbuf
(
int
mode
,
int
left
,
int
top
,
int
width
,
int
height
,
const
char
*
title
,
char
*
hbuf
,
int
*
curp
,
int
*
barp
)
void
showbuf
(
int
mode
,
int
left
,
int
top
,
int
width
,
int
height
,
const
char
*
title
,
const
char
*
hbuf
,
int
*
curp
,
int
*
barp
)
{
{
char
inverse
=
0
,
high
=
0
;
char
inverse
=
0
,
high
=
0
;
struct
vmem_cell
*
textbuf
;
struct
vmem_cell
*
textbuf
;
struct
vmem_cell
*
p
;
struct
vmem_cell
*
p
;
char
*
pc
;
const
char
*
c
pc
;
struct
vmem_cell
*
oldp
=
NULL
;
struct
vmem_cell
*
oldp
=
NULL
;
int
i
,
j
,
k
,
len
;
int
i
,
j
,
k
,
len
;
int
lines
;
int
lines
;
...
@@ -2768,8 +2768,8 @@ void showbuf(int mode, int left, int top, int width, int height, const char *tit
...
@@ -2768,8 +2768,8 @@ void showbuf(int mode, int left, int top, int width, int height, const char *tit
}
}
tmp_buffer2
[
i
].
ch
=
api
->
chars
->
help_titlebreak_left
;
tmp_buffer2
[
i
].
ch
=
api
->
chars
->
help_titlebreak_left
;
i
+=
2
;
i
+=
2
;
for
(
pc
=
title
;
*
pc
&&
pc
<
&
title
[
j
];
pc
++
)
{
for
(
c
pc
=
title
;
*
c
pc
&&
c
pc
<
&
title
[
j
];
c
pc
++
)
{
tmp_buffer2
[
i
].
ch
=*
pc
;
tmp_buffer2
[
i
].
ch
=*
c
pc
;
i
++
;
i
++
;
}
}
i
++
;
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