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
86a20af3
Commit
86a20af3
authored
24 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added temporary Unix-compatibilty hacks by forcing internal codes and module names to lowercase.
parent
3bbba86c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/scfglib1.c
+13
-1
13 additions, 1 deletion
src/sbbs3/scfglib1.c
src/sbbs3/scfglib2.c
+5
-0
5 additions, 0 deletions
src/sbbs3/scfglib2.c
with
18 additions
and
1 deletion
src/sbbs3/scfglib1.c
+
13
−
1
View file @
86a20af3
...
...
@@ -375,12 +375,22 @@ BOOL read_main_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_str
(
cfg
->
logoff_mod
,
instream
);
get_str
(
cfg
->
newuser_mod
,
instream
);
get_str
(
cfg
->
login_mod
,
instream
);
if
(
!
cfg
->
login_mod
[
0
])
strcpy
(
cfg
->
login_mod
,
"
LOGIN
"
);
if
(
!
cfg
->
login_mod
[
0
])
strcpy
(
cfg
->
login_mod
,
"
login
"
);
get_str
(
cfg
->
logout_mod
,
instream
);
get_str
(
cfg
->
sync_mod
,
instream
);
get_str
(
cfg
->
expire_mod
,
instream
);
get_int
(
c
,
instream
);
#if 1
/* temporary hack for Unix compatibility */
strlwr
(
cfg
->
logon_mod
);
strlwr
(
cfg
->
logoff_mod
);
strlwr
(
cfg
->
newuser_mod
);
strlwr
(
cfg
->
login_mod
);
strlwr
(
cfg
->
logout_mod
);
strlwr
(
cfg
->
sync_mod
);
strlwr
(
cfg
->
expire_mod
);
#endif
for
(
i
=
0
;
i
<
224
;
i
++
)
/* unused - initialized to NULL */
get_int
(
n
,
instream
);
for
(
i
=
0
;
i
<
256
;
i
++
)
/* unused - initialized to 0xff */
...
...
@@ -452,6 +462,7 @@ BOOL read_main_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_alloc
(
&
offset
,
cfg
->
shell
[
i
]
->
name
,
40
,
instream
);
get_str
(
cfg
->
shell
[
i
]
->
code
,
instream
);
strlwr
(
cfg
->
shell
[
i
]
->
code
);
/* temporary Unix-compatibility hack */
#ifdef SCFG
get_str
(
cfg
->
shell
[
i
]
->
ar
,
instream
);
#else
...
...
@@ -605,6 +616,7 @@ BOOL read_msgs_cfg(scfg_t* cfg, read_cfg_text_t* txt)
#endif
get_str
(
cfg
->
sub
[
i
]
->
code
,
instream
);
strlwr
(
cfg
->
sub
[
i
]
->
code
);
/* temporary Unix-compatibility hack */
#ifdef SCFG
get_str
(
cfg
->
sub
[
i
]
->
data_dir
,
instream
);
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/scfglib2.c
+
5
−
0
View file @
86a20af3
...
...
@@ -404,6 +404,7 @@ BOOL read_file_cfg(scfg_t* cfg, read_cfg_text_t* txt)
cfg
->
lib
[
cfg
->
dir
[
i
]
->
lib
]
->
offline_dir
=
i
;
get_str
(
cfg
->
dir
[
i
]
->
code
,
instream
);
strlwr
(
cfg
->
dir
[
i
]
->
code
);
/* temporary Unix-compatibility hack */
#ifdef SCFG
get_str
(
cfg
->
dir
[
i
]
->
data_dir
,
instream
);
...
...
@@ -496,6 +497,7 @@ BOOL read_file_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_alloc
(
&
offset
,
cfg
->
txtsec
[
i
]
->
name
,
40
,
instream
);
get_str
(
cfg
->
txtsec
[
i
]
->
code
,
instream
);
strlwr
(
cfg
->
txtsec
[
i
]
->
code
);
/* temporary Unix-compatibility hack */
#ifdef SCFG
get_str
(
cfg
->
txtsec
[
i
]
->
ar
,
instream
);
#else
...
...
@@ -626,6 +628,7 @@ BOOL read_xtrn_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_alloc
(
&
offset
,
cfg
->
xtrnsec
[
i
]
->
name
,
40
,
instream
);
get_str
(
cfg
->
xtrnsec
[
i
]
->
code
,
instream
);
strlwr
(
cfg
->
xtrnsec
[
i
]
->
code
);
/* temporary Unix-compatibility hack */
#ifdef SCFG
get_str
(
cfg
->
xtrnsec
[
i
]
->
ar
,
instream
);
#else
...
...
@@ -717,6 +720,7 @@ BOOL read_xtrn_cfg(scfg_t* cfg, read_cfg_text_t* txt)
memset
(
cfg
->
event
[
i
],
0
,
sizeof
(
event_t
));
get_str
(
cfg
->
event
[
i
]
->
code
,
instream
);
strlwr
(
cfg
->
event
[
i
]
->
code
);
/* temporary Unix-compatibility hack */
get_alloc
(
&
offset
,
cfg
->
event
[
i
]
->
cmd
,
LEN_CMD
,
instream
);
get_int
(
cfg
->
event
[
i
]
->
days
,
instream
);
get_int
(
cfg
->
event
[
i
]
->
time
,
instream
);
...
...
@@ -811,6 +815,7 @@ BOOL read_chat_cfg(scfg_t* cfg, read_cfg_text_t* txt)
get_alloc
(
&
offset
,
cfg
->
guru
[
i
]
->
name
,
25
,
instream
);
get_str
(
cfg
->
guru
[
i
]
->
code
,
instream
);
strlwr
(
cfg
->
guru
[
i
]
->
code
);
/* temporary Unix-compatibility hack */
#ifdef SCFG
get_str
(
cfg
->
guru
[
i
]
->
ar
,
instream
);
...
...
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