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
b1576816
Commit
b1576816
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused code.
Added macros for ctrl key constants.
parent
8cba3df6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/misc.c
+2
-5
2 additions, 5 deletions
src/sbbs3/misc.c
src/sbbs3/msgtoqwk.cpp
+1
-1
1 addition, 1 deletion
src/sbbs3/msgtoqwk.cpp
with
3 additions
and
6 deletions
src/sbbs3/misc.c
+
2
−
5
View file @
b1576816
...
...
@@ -108,7 +108,7 @@ int bstrlen(char *str)
int
i
=
0
;
while
(
*
str
)
{
if
(
*
str
==
1
)
/* ctrl-a */
if
(
*
str
==
CTRL_A
)
str
++
;
else
i
++
;
...
...
@@ -124,7 +124,7 @@ void strip_ctrl(char *str)
k
=
strlen
(
str
);
for
(
i
=
j
=
0
;
i
<
k
;
i
++
)
if
(
str
[
i
]
==
1
)
/* Ctrl-a */
if
(
str
[
i
]
==
CTRL_A
)
i
++
;
else
if
(
j
&&
str
[
i
]
<=
SP
&&
tmp
[
j
-
1
]
==
SP
)
continue
;
...
...
@@ -178,9 +178,6 @@ void truncsp(char *str)
{
uint
c
;
#if 0 /* no longer terminates at first tab OCT-09-2000 rswindell */
str[strcspn(str,"\t")]=0;
#endif
c
=
strlen
(
str
);
while
(
c
&&
(
uchar
)
str
[
c
-
1
]
<=
SP
)
c
--
;
str
[
c
]
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/msgtoqwk.cpp
+
1
−
1
View file @
b1576816
...
...
@@ -179,7 +179,7 @@ ulong sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, long mode, int subnum
if
((
uchar
)
ch
==
0xE3
)
/* funky char */
ch
=
'*'
;
if
(
ch
==
1
)
{
/* ctrl-a */
if
(
ch
==
CTRL_A
)
{
ch
=
buf
[
++
l
];
if
(
!
ch
)
break
;
...
...
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