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
76c555d0
Commit
76c555d0
authored
24 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Wrapped Win32 specific code in #ifdefs.
parent
645a5daa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/xtrn.cpp
+22
-6
22 additions, 6 deletions
src/sbbs3/xtrn.cpp
with
22 additions
and
6 deletions
src/sbbs3/xtrn.cpp
+
22
−
6
View file @
76c555d0
...
...
@@ -37,13 +37,8 @@
#include
"sbbs.h"
#include
"cmdshell.h"
#include
"execvxd.h"
#include
"telnet.h"
#define XTRN_IO_BUF_LEN 5000
extern
SOCKET
node_socket
[];
/*****************************************************************************/
/* Interrupt routine to expand WWIV Ctrl-C# codes into ANSI escape sequences */
/*****************************************************************************/
...
...
@@ -103,7 +98,10 @@ BYTE* wwiv_expand(BYTE* buf, ulong buflen, BYTE* outbuf, ulong& newlen
newlen
=
j
;
return
(
outbuf
);
}
/*****************************************************************************/
// Escapes Telnet IAC (255) by doubling the IAC char
/*****************************************************************************/
BYTE
*
telnet_expand
(
BYTE
*
inbuf
,
ulong
inlen
,
BYTE
*
outbuf
,
ulong
&
newlen
,
bool
&
iac
)
{
BYTE
*
first_iac
;
...
...
@@ -136,6 +134,16 @@ BYTE* telnet_expand(BYTE* inbuf, ulong inlen, BYTE* outbuf, ulong& newlen, bool&
newlen
=
outlen
;
return
(
outbuf
);
}
#ifdef _WIN32
#include
"execvxd.h"
/* Win9X FOSSIL VxD API */
#define XTRN_IO_BUF_LEN 5000
extern
SOCKET
node_socket
[];
// -------------------------------------------------------------------------
// GetAddressOfOpenVxDHandle
//
...
...
@@ -144,7 +152,6 @@ BYTE* telnet_expand(BYTE* inbuf, ulong inlen, BYTE* outbuf, ulong& newlen, bool&
// given ring 3 event handle. The ring 0 handle can be used by VxDs to
// synchronize with the Win32 app.
//
typedef
HANDLE
(
WINAPI
*
OPENVXDHANDLE
)(
HANDLE
);
OPENVXDHANDLE
GetAddressOfOpenVxDHandle
(
void
)
...
...
@@ -708,6 +715,15 @@ int sbbs_t::external(char* cmdline, long mode, char* startup_dir)
return
(
retval
);
}
#else
/* !WIN32 */
int
sbbs_t
::
external
(
char
*
cmdline
,
long
mode
,
char
*
startup_dir
)
{
system
(
cmdline
);
}
#endif
/* !WIN32 */
uint
fakeriobp
=
0xffff
;
/*****************************************************************************/
...
...
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