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
8a6efb4d
Commit
8a6efb4d
authored
2 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Change uifcapi_t.kmode to .input_mode, only appy in input() method
parent
021949b0
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#3842
passed
2 years ago
Stage: build
Changes
3
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/scfg/scfg.c
+2
-2
2 additions, 2 deletions
src/sbbs3/scfg/scfg.c
src/uifc/uifc.h
+5
-5
5 additions, 5 deletions
src/uifc/uifc.h
src/uifc/uifc32.c
+2
-2
2 additions, 2 deletions
src/uifc/uifc32.c
with
9 additions
and
9 deletions
src/sbbs3/scfg/scfg.c
+
2
−
2
View file @
8a6efb4d
...
@@ -633,7 +633,7 @@ int main(int argc, char **argv)
...
@@ -633,7 +633,7 @@ int main(int argc, char **argv)
printf
(
"uifc library init returned error %d
\n
"
,
i
);
printf
(
"uifc library init returned error %d
\n
"
,
i
);
exit
(
1
);
exit
(
1
);
}
}
uifc
.
k
mode
=
K_TRIM
;
// trim all leading & trailing whitespace on string input
uifc
.
input_
mode
=
K_TRIM
;
// trim all leading & trailing whitespace on string input
if
((
opt
=
(
char
**
)
malloc
(
sizeof
(
char
*
)
*
(
MAX_OPTS
+
1
)))
==
NULL
)
if
((
opt
=
(
char
**
)
malloc
(
sizeof
(
char
*
)
*
(
MAX_OPTS
+
1
)))
==
NULL
)
allocfail
(
sizeof
(
char
*
)
*
(
MAX_OPTS
+
1
));
allocfail
(
sizeof
(
char
*
)
*
(
MAX_OPTS
+
1
));
...
...
This diff is collapsed.
Click to expand it.
src/uifc/uifc.h
+
5
−
5
View file @
8a6efb4d
...
@@ -248,9 +248,6 @@ enum {
...
@@ -248,9 +248,6 @@ enum {
#ifndef uint
#ifndef uint
#define uint unsigned int
#define uint unsigned int
#endif
#endif
#ifndef ulong
#define ulong unsigned long
#endif
#ifndef BOOL
#ifndef BOOL
#define BOOL int
#define BOOL int
...
@@ -333,7 +330,10 @@ typedef struct {
...
@@ -333,7 +330,10 @@ typedef struct {
/* Controls general UIFC library behavior. */
/* Controls general UIFC library behavior. */
/****************************************************************************/
/****************************************************************************/
int
mode
;
int
mode
;
int
kmode
;
/****************************************************************************/
/* Common input mode flags (K_*) to always set. */
/****************************************************************************/
int
input_mode
;
/****************************************************************************/
/****************************************************************************/
/* Set to TRUE when changes to data have been made by input function. */
/* Set to TRUE when changes to data have been made by input function. */
/****************************************************************************/
/****************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
src/uifc/uifc32.c
+
2
−
2
View file @
8a6efb4d
...
@@ -1888,6 +1888,8 @@ int uinput(uifc_winmode_t mode, int left, int top, const char *inprompt, char *s
...
@@ -1888,6 +1888,8 @@ int uinput(uifc_winmode_t mode, int left, int top, const char *inprompt, char *s
reset_dynamic
();
reset_dynamic
();
kmode
|=
api
->
input_mode
;
// Global keyboard input mode flags (e.g. K_TRIM)
if
(
mode
&
WIN_FAT
)
{
if
(
mode
&
WIN_FAT
)
{
s_top
=
1
;
s_top
=
1
;
s_left
=
2
;
s_left
=
2
;
...
@@ -2135,8 +2137,6 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
...
@@ -2135,8 +2137,6 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
char
*
pastebuf
=
NULL
;
char
*
pastebuf
=
NULL
;
unsigned
char
*
pb
=
NULL
;
unsigned
char
*
pb
=
NULL
;
mode
|=
api
->
kmode
;
// Global keyboard input mode flags (e.g. K_TRIM)
api
->
exit_flags
=
0
;
api
->
exit_flags
=
0
;
if
((
str
=
alloca
(
max
+
1
))
==
NULL
)
{
if
((
str
=
alloca
(
max
+
1
))
==
NULL
)
{
cprintf
(
"UIFC line %d: error allocating %u bytes
\r\n
"
cprintf
(
"UIFC line %d: error allocating %u bytes
\r\n
"
...
...
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