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
fd72586c
Commit
fd72586c
authored
3 years ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
More constifying of showbuf()
Oddly enough the hbuf wasn't actually modified.
parent
5521849d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/uifc/uifc.h
+1
-1
1 addition, 1 deletion
src/uifc/uifc.h
src/uifc/uifc32.c
+5
-5
5 additions, 5 deletions
src/uifc/uifc32.c
with
6 additions
and
6 deletions
src/uifc/uifc.h
+
1
−
1
View file @
fd72586c
...
...
@@ -481,7 +481,7 @@ typedef struct {
/* 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
);
,
const
char
*
title
,
const
char
*
hbuf
,
int
*
curp
,
int
*
barp
);
/****************************************************************************/
/* Updates time in upper left corner of screen with current time in ASCII/ */
...
...
This diff is collapsed.
Click to expand it.
src/uifc/uifc32.c
+
5
−
5
View file @
fd72586c
...
...
@@ -88,7 +88,7 @@ static BOOL deny(char *fmt, ...);
static
void
upop
(
const
char
*
str
);
static
void
sethelp
(
int
line
,
char
*
file
);
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 */
static
int
*
last_menu_cur
=
NULL
;
...
...
@@ -2690,12 +2690,12 @@ void sethelp(int line, char* file)
/****************************************************************************/
/* 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
;
struct
vmem_cell
*
textbuf
;
struct
vmem_cell
*
p
;
char
*
pc
;
const
char
*
c
pc
;
struct
vmem_cell
*
oldp
=
NULL
;
int
i
,
j
,
k
,
len
;
int
lines
;
...
...
@@ -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
;
i
+=
2
;
for
(
pc
=
title
;
*
pc
&&
pc
<
&
title
[
j
];
pc
++
)
{
tmp_buffer2
[
i
].
ch
=*
pc
;
for
(
c
pc
=
title
;
*
c
pc
&&
c
pc
<
&
title
[
j
];
c
pc
++
)
{
tmp_buffer2
[
i
].
ch
=*
c
pc
;
i
++
;
}
i
++
;
...
...
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