diff --git a/src/physfs.h b/src/physfs.h index 0d73927..4d81cd8 100644 --- a/src/physfs.h +++ b/src/physfs.h @@ -224,8 +224,6 @@ extern "C" { #if defined(PHYSFS_DECL) /* do nothing. */ -#elif (defined SWIG) -#define PHYSFS_DECL extern #elif (defined _MSC_VER) #define PHYSFS_DECL __declspec(dllexport) #elif (defined __SUNPRO_C) @@ -238,8 +236,6 @@ extern "C" { #if defined(PHYSFS_DEPRECATED) /* do nothing. */ -#elif (defined SWIG) /* ignore deprecated, since bindings use everything. */ -#define PHYSFS_DEPRECATED #elif (__GNUC__ >= 4) /* technically, this arrived in gcc 3.1, but oh well. */ #define PHYSFS_DEPRECATED __attribute__((deprecated)) #else @@ -321,7 +317,6 @@ typedef signed long long PHYSFS_sint64; #endif -#ifndef SWIG #ifndef DOXYGEN_SHOULD_IGNORE_THIS /* Make sure the types really have the right sizes */ #define PHYSFS_COMPILE_TIME_ASSERT(name, x) \ @@ -342,7 +337,6 @@ PHYSFS_COMPILE_TIME_ASSERT(sint64, sizeof(PHYSFS_sint64) == 8); #undef PHYSFS_COMPILE_TIME_ASSERT #endif /* DOXYGEN_SHOULD_IGNORE_THIS */ -#endif /* SWIG */ /** @@ -436,8 +430,6 @@ typedef struct PHYSFS_Version } PHYSFS_Version; -#ifndef SWIG /* not available from scripting languages. */ - #ifndef DOXYGEN_SHOULD_IGNORE_THIS #define PHYSFS_VER_MAJOR 2 #define PHYSFS_VER_MINOR 1 @@ -470,8 +462,6 @@ typedef struct PHYSFS_Version (x)->patch = PHYSFS_VER_PATCH; \ } -#endif /* SWIG */ - /** * \fn void PHYSFS_getLinkedVersion(PHYSFS_Version *ver) @@ -1491,8 +1481,6 @@ PHYSFS_DECL int PHYSFS_flush(PHYSFS_File *handle); /* Byteorder stuff... */ -#ifndef SWIG /* not available from scripting languages. */ - /** * \fn PHYSFS_sint16 PHYSFS_swapSLE16(PHYSFS_sint16 val) * \brief Swap littleendian signed 16 to platform's native byte order. @@ -1657,8 +1645,6 @@ PHYSFS_DECL PHYSFS_sint64 PHYSFS_swapSBE64(PHYSFS_sint64 val); */ PHYSFS_DECL PHYSFS_uint64 PHYSFS_swapUBE64(PHYSFS_uint64 val); -#endif /* SWIG */ - /** * \fn int PHYSFS_readSLE16(PHYSFS_File *file, PHYSFS_sint16 *val) @@ -2094,8 +2080,6 @@ PHYSFS_DECL int PHYSFS_isInit(void); PHYSFS_DECL int PHYSFS_symbolicLinksPermitted(void); -#ifndef SWIG /* not available from scripting languages. */ - /** * \struct PHYSFS_Allocator * \brief PhysicsFS allocation function pointers. @@ -2155,8 +2139,6 @@ typedef struct PHYSFS_Allocator */ PHYSFS_DECL int PHYSFS_setAllocator(const PHYSFS_Allocator *allocator); -#endif /* SWIG */ - /** * \fn int PHYSFS_mount(const char *newDir, const char *mountPoint, int appendToPath) @@ -2228,8 +2210,6 @@ PHYSFS_DECL int PHYSFS_mount(const char *newDir, PHYSFS_DECL const char *PHYSFS_getMountPoint(const char *dir); -#ifndef SWIG /* not available from scripting languages. */ - /** * \typedef PHYSFS_StringCallback * \brief Function signature for callbacks that report strings. @@ -2599,7 +2579,6 @@ PHYSFS_DECL int PHYSFS_unmount(const char *oldDir); */ PHYSFS_DECL const PHYSFS_Allocator *PHYSFS_getAllocator(void); -#endif /* SWIG */ /** * \enum PHYSFS_FileType @@ -2665,8 +2644,6 @@ typedef struct PHYSFS_Stat PHYSFS_DECL int PHYSFS_stat(const char *fname, PHYSFS_Stat *stat); -#ifndef SWIG /* not available from scripting languages. */ - /** * \fn void PHYSFS_utf8FromUtf16(const PHYSFS_uint16 *src, char *dst, PHYSFS_uint64 len) * \brief Convert a UTF-16 string to a UTF-8 string. @@ -2726,8 +2703,6 @@ PHYSFS_DECL void PHYSFS_utf8FromUtf16(const PHYSFS_uint16 *src, char *dst, PHYSFS_DECL void PHYSFS_utf8ToUtf16(const char *src, PHYSFS_uint16 *dst, PHYSFS_uint64 len); -#endif /* SWIG */ - /** * \fn PHYSFS_sint64 PHYSFS_readBytes(PHYSFS_File *handle, void *buffer, PHYSFS_uint64 len) @@ -2775,8 +2750,6 @@ PHYSFS_DECL PHYSFS_sint64 PHYSFS_writeBytes(PHYSFS_File *handle, PHYSFS_uint64 len); -#ifndef SWIG /* not available from scripting languages. */ - /** * \struct PHYSFS_Io * \brief An abstract i/o interface. @@ -3006,7 +2979,6 @@ typedef struct PHYSFS_Io PHYSFS_DECL int PHYSFS_mountIo(PHYSFS_Io *io, const char *fname, const char *mountPoint, int appendToPath); -#endif /* SWIG */ /** * \fn int PHYSFS_mountMemory(const void *ptr, PHYSFS_uint64 len, void (*del)(void *), const char *fname, const char *mountPoint, int appendToPath)