Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Synchronet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
127
Issues
127
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main
Synchronet
Commits
d7d591cf
Commit
d7d591cf
authored
Nov 08, 2000
by
rswindell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added WIN32, UNIX, and LINUX ARS keywords.
parent
9107b253
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
0 deletions
+66
-0
src/sbbs3/ars.c
src/sbbs3/ars.c
+21
-0
src/sbbs3/ars_defs.h
src/sbbs3/ars_defs.h
+3
-0
src/sbbs3/chk_ar.cpp
src/sbbs3/chk_ar.cpp
+21
-0
src/sbbs3/userdat.c
src/sbbs3/userdat.c
+21
-0
No files found.
src/sbbs3/ars.c
View file @
d7d591cf
...
...
@@ -263,6 +263,27 @@ uchar* arstr(ushort* count, char* str, scfg_t* cfg)
not
=
0
;
ar
[
j
++
]
=
artype
;
i
+=
2
;
}
else
if
(
!
strncmp
(
str
+
i
,
"WIN32"
,
5
))
{
artype
=
AR_WIN32
;
if
(
not
)
ar
[
j
++
]
=
AR_NOT
;
not
=
0
;
ar
[
j
++
]
=
artype
;
i
+=
2
;
}
else
if
(
!
strncmp
(
str
+
i
,
"UNIX"
,
4
))
{
artype
=
AR_UNIX
;
if
(
not
)
ar
[
j
++
]
=
AR_NOT
;
not
=
0
;
ar
[
j
++
]
=
artype
;
i
+=
2
;
}
else
if
(
!
strncmp
(
str
+
i
,
"LINUX"
,
5
))
{
artype
=
AR_LINUX
;
if
(
not
)
ar
[
j
++
]
=
AR_NOT
;
not
=
0
;
ar
[
j
++
]
=
artype
;
i
+=
2
;
}
else
if
(
!
strncmp
(
str
+
i
,
"SUBCODE"
,
7
))
{
artype
=
AR_SUBCODE
;
i
+=
6
;
}
...
...
src/sbbs3/ars_defs.h
View file @
d7d591cf
...
...
@@ -104,6 +104,9 @@ enum { /* Access requirement binaries */
,
AR_DIRCODE
,
AR_OS2
,
AR_DOS
,
AR_WIN32
,
AR_UNIX
,
AR_LINUX
};
#endif
/* Don't add anything after this line */
src/sbbs3/chk_ar.cpp
View file @
d7d591cf
...
...
@@ -157,6 +157,27 @@ bool sbbs_t::ar_exp(uchar **ptrptr, user_t* user)
result
=!
not
;
#endif
break
;
case
AR_WIN32
:
#ifndef _WIN32
result
=
not
;
#else
result
=!
not
;
#endif
break
;
case
AR_UNIX
:
#ifndef __unix__
result
=
not
;
#else
result
=!
not
;
#endif
break
;
case
AR_LINUX
:
#ifndef __linux__
result
=
not
;
#else
result
=!
not
;
#endif
break
;
case
AR_EXPERT
:
if
(
!
(
user
->
misc
&
EXPERT
))
result
=
not
;
...
...
src/sbbs3/userdat.c
View file @
d7d591cf
...
...
@@ -789,6 +789,27 @@ static BOOL ar_exp(scfg_t* cfg, uchar **ptrptr, user_t* user)
result
=!
not
;
#endif
break
;
case
AR_WIN32
:
#ifndef _WIN32
result
=
not
;
#else
result
=!
not
;
#endif
break
;
case
AR_UNIX
:
#ifndef __unix__
result
=
not
;
#else
result
=!
not
;
#endif
break
;
case
AR_LINUX
:
#ifndef __linux__
result
=
not
;
#else
result
=!
not
;
#endif
break
;
case
AR_EXPERT
:
if
(
!
(
user
->
misc
&
EXPERT
))
result
=
not
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment