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
a7d85fec
Commit
a7d85fec
authored
2 months ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Rename WM_CR_STRIP to WM_STRIP_CR to match the <verb><noun> pattern
of other WM_* mode flags (e.g. WM_EXPANDLF).
parent
79f3aed0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
exec/load/sbbsdefs.js
+1
-1
1 addition, 1 deletion
exec/load/sbbsdefs.js
src/sbbs3/sbbsdefs.h
+1
-1
1 addition, 1 deletion
src/sbbs3/sbbsdefs.h
src/sbbs3/writemsg.cpp
+3
-3
3 additions, 3 deletions
src/sbbs3/writemsg.cpp
with
5 additions
and
5 deletions
exec/load/sbbsdefs.js
+
1
−
1
View file @
a7d85fec
...
...
@@ -609,7 +609,7 @@ var WM_EDIT =(1<<10); /* Editing existing message */
var
WM_FORCEFWD
=
(
1
<<
11
);
/* Force "yes" to ForwardMailQ for email */
var
WM_NOFWD
=
(
1
<<
12
);
/* Don't forward email to netmail */
var
WM_EXPANDLF
=
(
1
<<
13
);
/* Insure CRLF-terminated lines */
var
WM_
CR_
STRIP
=
(
1
<<
14
);
/* Insure no carriage-returns in output */
var
WM_STRIP
_CR
=
(
1
<<
14
);
/* Insure no carriage-returns in output */
/********************************************/
/************************************************/
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbsdefs.h
+
1
−
1
View file @
a7d85fec
...
...
@@ -732,7 +732,7 @@ typedef enum { // Values for xtrn_t.event
#define WM_FORCEFWD (1 << 11) // Force "yes" to ForwardMailQ for email
#define WM_NOFWD (1 << 12) // Don't forward email to netmail
#define WM_EXPANDLF (1 << 13) // Insure CRLF-terminated lines
#define WM_
CR_
STRIP (1 << 14) // Insure no carriage-returns in output
#define WM_STRIP
_CR
(1 << 14) // Insure no carriage-returns in output
// Bits in the mode of loadposts()
#define LP_BYSELF (1 << 0) // Include messages sent by self
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/writemsg.cpp
+
3
−
3
View file @
a7d85fec
...
...
@@ -155,14 +155,14 @@ int sbbs_t::process_edited_text(char* buf, FILE* stream, int mode, unsigned* lin
useron_xedit
=
0
;
for
(
l
=
i
=
0
;
buf
[
l
]
&&
i
<
maxlines
;
l
++
)
{
if
(
buf
[
l
]
==
'\r'
&&
(
mode
&
WM_
CR_
STRIP
))
if
(
buf
[
l
]
==
'\r'
&&
(
mode
&
WM_STRIP
_CR
))
continue
;
if
((
uchar
)
buf
[
l
]
==
FIDO_SOFT_CR
&&
useron_xedit
&&
!
(
cfg
.
xedit
[
useron_xedit
-
1
]
->
misc
&
XTRN_UTF8
))
{
i
++
;
switch
(
cfg
.
xedit
[
useron_xedit
-
1
]
->
soft_cr
)
{
case
XEDIT_SOFT_CR_EXPAND
:
if
(
mode
&
WM_
CR_
STRIP
)
if
(
mode
&
WM_STRIP
_CR
)
len
+=
fwrite
(
"
\n
"
,
1
,
1
,
stream
);
else
len
+=
fwrite
(
crlf
,
1
,
2
,
stream
);
...
...
@@ -225,7 +225,7 @@ int sbbs_t::process_edited_text(char* buf, FILE* stream, int mode, unsigned* lin
buf
[
l
]
=
0
;
}
if
(
lastch
!=
'\n'
)
{
if
(
mode
&
WM_
CR_
STRIP
)
if
(
mode
&
WM_STRIP
_CR
)
len
+=
fwrite
(
"
\n
"
,
1
,
1
,
stream
);
else
len
+=
fwrite
(
crlf
,
1
,
2
,
stream
);
...
...
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