Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
987ccc8b
Commit
987ccc8b
authored
Jan 25, 2002
by
rswindell
Browse files
Eliminated use of _fsopen/share for maximum portability.
parent
c16a3d9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
15 deletions
+2
-15
src/uifc/uifcd.c
src/uifc/uifcd.c
+0
-12
src/uifc/uifcx.c
src/uifc/uifcx.c
+2
-3
No files found.
src/uifc/uifcd.c
View file @
987ccc8b
...
...
@@ -37,10 +37,6 @@
#include <dialog.h>
#ifndef __unix__
#include <share.h>
#endif
static
char
*
helpfile
=
0
;
static
uint
helpline
=
0
;
static
uifcapi_t
*
api
;
...
...
@@ -281,11 +277,7 @@ void help()
printf
(
"
\n
"
);
if
(
!
api
->
helpbuf
)
{
#ifdef __unix__
if
((
fp
=
fopen
(
api
->
helpixbfile
,
"rb"
))
==
NULL
)
#else
if
((
fp
=
_fsopen
(
api
->
helpixbfile
,
"rb"
,
SH_DENYWR
))
==
NULL
)
#endif
sprintf
(
hbuf
,
"ERROR: Cannot open help index: %s"
,
api
->
helpixbfile
);
else
{
...
...
@@ -312,11 +304,7 @@ void help()
sprintf
(
hbuf
,
"ERROR: Cannot locate help key (%s:%u) in: %s"
,
p
,
helpline
,
api
->
helpixbfile
);
else
{
#ifdef __unix__
if
((
fp
=
fopen
(
api
->
helpdatfile
,
"rb"
))
==
NULL
)
#else
if
((
fp
=
_fsopen
(
api
->
helpdatfile
,
"rb"
,
SH_DENYWR
))
==
NULL
)
#endif
sprintf
(
hbuf
,
"ERROR: Cannot open help file: %s"
,
api
->
helpdatfile
);
else
{
...
...
src/uifc/uifcx.c
View file @
987ccc8b
...
...
@@ -34,7 +34,6 @@
****************************************************************************/
#include "uifc.h"
#include <share.h>
static
char
*
helpfile
=
0
;
static
uint
helpline
=
0
;
...
...
@@ -305,7 +304,7 @@ void help()
printf
(
"
\n
"
);
if
(
!
api
->
helpbuf
)
{
if
((
fp
=
_fs
open
(
api
->
helpixbfile
,
"rb"
,
SH_DENYWR
))
==
NULL
)
if
((
fp
=
f
open
(
api
->
helpixbfile
,
"rb"
))
==
NULL
)
sprintf
(
hbuf
,
"ERROR: Cannot open help index: %s"
,
api
->
helpixbfile
);
else
{
...
...
@@ -332,7 +331,7 @@ void help()
sprintf
(
hbuf
,
"ERROR: Cannot locate help key (%s:%u) in: %s"
,
p
,
helpline
,
api
->
helpixbfile
);
else
{
if
((
fp
=
_fs
open
(
api
->
helpdatfile
,
"rb"
,
SH_DENYWR
))
==
NULL
)
if
((
fp
=
f
open
(
api
->
helpdatfile
,
"rb"
))
==
NULL
)
sprintf
(
hbuf
,
"ERROR: Cannot open help file: %s"
,
api
->
helpdatfile
);
else
{
...
...
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