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
93e5e01f
Commit
93e5e01f
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Moved DLLCALL and DLLEXPORT definitions to wrapdll.h.
parent
81ad011a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/xpdev/dirwrap.h
+3
-23
3 additions, 23 deletions
src/xpdev/dirwrap.h
src/xpdev/filewrap.h
+2
-23
2 additions, 23 deletions
src/xpdev/filewrap.h
src/xpdev/genwrap.h
+10
-34
10 additions, 34 deletions
src/xpdev/genwrap.h
src/xpdev/threadwrap.h
+1
-23
1 addition, 23 deletions
src/xpdev/threadwrap.h
with
16 additions
and
103 deletions
src/xpdev/dirwrap.h
+
3
−
23
View file @
93e5e01f
...
...
@@ -39,29 +39,7 @@
#define _DIRWRAP_H
#include
"gen_defs.h"
/* ulong */
#if defined(DLLEXPORT)
#undef DLLEXPORT
#endif
#if defined(DLLCALL)
#undef DLLCALL
#endif
#if defined(_WIN32)
#if defined(WRAPPER_DLL)
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif
#if defined(__BORLANDC__)
#define DLLCALL __stdcall
#else
#define DLLCALL
#endif
#else
/* !_WIN32 */
#define DLLEXPORT
#define DLLCALL
#endif
#include
"wrapdll.h"
/* DLLEXPORT and DLLCALL */
#if defined(__cplusplus)
extern
"C"
{
...
...
@@ -127,6 +105,8 @@ extern "C" {
/* POSIX Directory Functions */
/*****************************/
#if defined(_MSC_VER)
#include
<io.h>
/* _finddata_t */
/* dirent structure returned by readdir().
*/
struct
dirent
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/filewrap.h
+
2
−
23
View file @
93e5e01f
...
...
@@ -38,6 +38,8 @@
#ifndef _FILEWRAP_H
#define _FILEWRAP_H
#include
"wrapdll.h"
/* DLLEXPORT and DLLCALL */
/**********/
/* Macros */
/**********/
...
...
@@ -82,29 +84,6 @@
/* Prototypes */
/**************/
#if defined(DLLEXPORT)
#undef DLLEXPORT
#endif
#if defined(DLLCALL)
#undef DLLCALL
#endif
#if defined(_WIN32)
#if defined(WRAPPER_DLL)
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif
#if defined(__BORLANDC__)
#define DLLCALL __stdcall
#else
#define DLLCALL
#endif
#else
/* !_WIN32 */
#define DLLEXPORT
#define DLLCALL
#endif
#if defined(__cplusplus)
extern
"C"
{
#endif
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/genwrap.h
+
10
−
34
View file @
93e5e01f
...
...
@@ -40,29 +40,7 @@
#include
<stdio.h>
/* sprintf */
#include
"gen_defs.h"
/* ulong */
#if defined(DLLEXPORT)
#undef DLLEXPORT
#endif
#if defined(DLLCALL)
#undef DLLCALL
#endif
#if defined(_WIN32)
#if defined(WRAPPER_DLL)
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif
#if defined(__BORLANDC__)
#define DLLCALL __stdcall
#else
#define DLLCALL
#endif
#else
/* !_WIN32 */
#define DLLEXPORT
#define DLLCALL
#endif
#include
"wrapdll.h"
/* DLLEXPORT and DLLCALL */
#if defined(__cplusplus)
extern
"C"
{
...
...
@@ -134,7 +112,7 @@ extern "C" {
#if defined(__unix__)
DLLEXPORT
char
*
DLLCALL
strupr
(
char
*
str
);
DLLEXPORT
char
*
DLLCALL
strlwr
(
char
*
str
);
DLLEXPORT
char
*
DLLCALL
strrev
(
char
*
str
);
DLLEXPORT
char
*
DLLCALL
strrev
(
char
*
str
);
#if !defined(stricmp)
#define stricmp(x,y) strcasecmp(x,y)
#define strnicmp(x,y,z) strncasecmp(x,y,z)
...
...
@@ -147,19 +125,19 @@ extern "C" {
#if defined(_WIN32)
#define SLEEP(x)
Sleep(x)
#define BEEP(freq,dur)
Beep(freq,dur)
#define SLEEP(x) Sleep(x)
#define BEEP(freq,dur) Beep(freq,dur)
#elif defined(__OS2__)
#define SLEEP(x)
DosSleep(x)
#define BEEP(freq,dur)
DosBeep(freq,dur)
#define SLEEP(x) DosSleep(x)
#define BEEP(freq,dur) DosBeep(freq,dur)
#elif defined(__unix__)
#define SLEEP(x)
usleep(x*1000)
#define BEEP(freq,dur)
unix_beep(freq,dur)
DLLEXPORT
void
DLLCALL
unix_beep
(
int
freq
,
int
dur
);
#define SLEEP(x) usleep(x*1000)
#define BEEP(freq,dur) unix_beep(freq,dur)
DLLEXPORT
void
DLLCALL
unix_beep
(
int
freq
,
int
dur
);
#else
/* Unsupported OS */
...
...
@@ -167,9 +145,7 @@ extern "C" {
#endif
#if defined(__BORLANDC__)
#define xp_random random
#endif
DLLEXPORT
int
DLLCALL
xp_random
(
int
);
#if defined(__cplusplus)
}
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/threadwrap.h
+
1
−
23
View file @
93e5e01f
...
...
@@ -39,29 +39,7 @@
#define _THREADWRAP_H
#include
"gen_defs.h"
/* HANDLE */
#if defined(DLLEXPORT)
#undef DLLEXPORT
#endif
#if defined(DLLCALL)
#undef DLLCALL
#endif
#if defined(_WIN32)
#if defined(WRAPPER_DLL)
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif
#if defined(__BORLANDC__)
#define DLLCALL __stdcall
#else
#define DLLCALL
#endif
#else
/* !_WIN32 */
#define DLLEXPORT
#define DLLCALL
#endif
#include
"wrapdll.h"
/* DLLEXPORT and DLLCALL */
#if defined(__cplusplus)
extern
"C"
{
...
...
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