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
7bc8f5b4
Commit
7bc8f5b4
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
New printfile() mode flag: P_NOCRLF, used for the new INCLUDE @-code for
including one file in another without auto-prepended CRLF.
parent
623d87b5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
exec/load/sbbsdefs.js
+4
-1
4 additions, 1 deletion
exec/load/sbbsdefs.js
exec/sbbsdefs.inc
+3
-1
3 additions, 1 deletion
exec/sbbsdefs.inc
src/sbbs3/prntfile.cpp
+1
-1
1 addition, 1 deletion
src/sbbs3/prntfile.cpp
src/sbbs3/sbbsdefs.h
+1
-0
1 addition, 0 deletions
src/sbbs3/sbbsdefs.h
with
9 additions
and
3 deletions
exec/load/sbbsdefs.js
+
4
−
1
View file @
7bc8f5b4
...
...
@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 200
4
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 200
5
Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
...
...
@@ -325,6 +325,9 @@ var P_SAVEATR =(1<<1) /* Save the new current attributres after */
/* msg has printed */
var
P_NOATCODES
=
(
1
<<
2
)
/* Don't allow @ codes */
var
P_OPENCLOSE
=
(
1
<<
3
)
/* Open and close the file */
var
P_NOPAUSE
=
(
1
<<
4
)
/* Disable screen pause */
var
P_HTML
=
(
1
<<
5
)
/* Message is HTML */
var
P_NOCRLF
=
(
1
<<
6
)
/* Don't prepend a CRLF in printfile() */
/********************************************/
/********************************************/
...
...
This diff is collapsed.
Click to expand it.
exec/sbbsdefs.inc
+
3
−
1
View file @
7bc8f5b4
...
...
@@ -172,7 +172,9 @@
# msg has printed.
!
define
P_NOATCODES
.2
# Don't allow @ codes
!
define
P_OPENCLOSE
.3
# Open and close the file
!
define
P_NOPAUSE
.4
# Disable screen pause
!
define
P_HTML
.5
# Message is HTML
!
define
P_NOCRLF
.6
# Don't prepend a CRLF
# Values for USER_EVENT function
!
define
EVENT_NONE
0
# Only accessible by menu
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/prntfile.cpp
+
1
−
1
View file @
7bc8f5b4
...
...
@@ -75,7 +75,7 @@ void sbbs_t::printfile(char *str, long mode)
sys_status
&=~
SS_ABORT
;
}
if
(
!
tos
&&
!
wip
&&
!
rip
&&
!
html
)
if
(
!
(
mode
&
P_NOCRLF
)
&&
!
tos
&&
!
wip
&&
!
rip
&&
!
html
)
CRLF
;
if
((
stream
=
fnopen
(
&
file
,
str
,
O_RDONLY
))
==
NULL
)
{
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbsdefs.h
+
1
−
0
View file @
7bc8f5b4
...
...
@@ -686,6 +686,7 @@ typedef enum { /* Values for xtrn_t.event */
#define P_OPENCLOSE (1<<3)
/* Open and close the file */
#define P_NOPAUSE (1<<4)
/* Disable screen pause */
#define P_HTML (1<<5)
/* Message is HTML */
#define P_NOCRLF (1<<6)
/* Don't prepend a CRLF in printfile() */
/* Bits in 'mode' for listfiles */
#define FL_ULTIME (1<<0)
/* List files by upload time */
...
...
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