mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Removed and moved some internal headers for the WINE CxxFrameHandler
Adapted the WINE implemenetation of __UnDName[Ex] Enabled all of the stubs needed for MFC. svn path=/trunk/; revision=8428
This commit is contained in:
parent
b48c6953d0
commit
9187c6f654
43 changed files with 71 additions and 2707 deletions
|
@ -15,5 +15,5 @@ Convert all C++ style comments to C style comments.
|
|||
????
|
||||
|
||||
WINE Port Notes:
|
||||
Remove the internal headers in msvcrt/wine/msvcrt
|
||||
More cleanup
|
||||
Disable of remove duplicate code. (When in doubt check the def)
|
||||
|
|
|
@ -164,3 +164,15 @@ void _setmbcp(int cp)
|
|||
DPRINT1("_setmbcp - stub\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
* __lc_collate_cp (MSVCRT.@)
|
||||
*
|
||||
* @unimplemented
|
||||
*/
|
||||
void __lc_collate_cp(int cp)
|
||||
{
|
||||
DPRINT1("__lc_collate_cp - stub\n");
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: msvcrt.def,v 1.30 2004/02/24 15:42:06 vizzini Exp $
|
||||
; $Id: msvcrt.def,v 1.31 2004/02/27 22:39:37 sedwards Exp $
|
||||
;
|
||||
; ReactOS MSVCRT Compatibility Library
|
||||
;
|
||||
|
@ -86,11 +86,11 @@ _CItan
|
|||
_CItanh
|
||||
_CxxThrowException
|
||||
_EH_prolog
|
||||
;_Getdays
|
||||
;_Getmonths
|
||||
;_Gettnames
|
||||
_Getdays
|
||||
_Getmonths
|
||||
_Gettnames
|
||||
_HUGE DATA
|
||||
;_Strftime
|
||||
_Strftime
|
||||
_XcptFilter
|
||||
;__CxxCallUnwindDtor
|
||||
__CxxDetectRethrow
|
||||
|
@ -108,9 +108,9 @@ __RTtypeid=MSVCRT___RTtypeid
|
|||
__argc DATA
|
||||
__argv DATA
|
||||
;__badioinfo
|
||||
;__crtCompareStringA
|
||||
__crtCompareStringA ;=NTDLL.RtlCompareString
|
||||
;__crtGetLocaleInfoW
|
||||
;__crtLCMapStringA
|
||||
__crtLCMapStringA
|
||||
__dllonexit
|
||||
__doserrno
|
||||
__fpecode
|
||||
|
@ -119,9 +119,9 @@ __initenv DATA
|
|||
__isascii
|
||||
__iscsym
|
||||
__iscsymf
|
||||
;__lc_codepage
|
||||
;__lc_collate_cp
|
||||
;__lc_handle
|
||||
__lc_codepage
|
||||
__lc_collate_cp
|
||||
__lc_handle
|
||||
;__lconv_init
|
||||
__mb_cur_max DATA
|
||||
__p___argc
|
||||
|
@ -156,14 +156,14 @@ __p__winver
|
|||
__pioinfo
|
||||
;__pxcptinfoptrs
|
||||
__set_app_type
|
||||
;__setlc_active
|
||||
__setlc_active
|
||||
__setusermatherr
|
||||
__threadhandle
|
||||
__threadid
|
||||
__toascii
|
||||
__unDName
|
||||
;__unDNameEx
|
||||
;__unguarded_readlc_active
|
||||
__unguarded_readlc_active
|
||||
;__wargv
|
||||
__wgetmainargs
|
||||
;__winitenv
|
||||
|
|
|
@ -16,9 +16,8 @@
|
|||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
//#include <stdarg.h>
|
||||
#include <msvcrt/stdarg.h> // robd
|
||||
#include <msvcrt/crttypes.h> // robd
|
||||
#include <msvcrt/stdarg.h>
|
||||
#include <msvcrt/crttypes.h>
|
||||
|
||||
#include <msvcrt/errno.h>
|
||||
#include <limits.h>
|
||||
|
@ -29,10 +28,13 @@
|
|||
#include <msvcrt/wchar.h>
|
||||
#include <msvcrt/malloc.h>
|
||||
#include <msvcrt/mbstring.h>
|
||||
#ifndef __USE_W32API
|
||||
#include <msvcrt/internal/stdio.h>
|
||||
|
||||
#ifdef __USE_W32API
|
||||
int __set_errno(int err);
|
||||
#else
|
||||
#include <msvcrt/internal/file.h>
|
||||
#endif
|
||||
#include <msvcrt/internal/stdio.h>
|
||||
|
||||
/* The internal entry points for `strtoX' take an extra flag argument
|
||||
saying whether or not to parse locale-dependent number grouping. */
|
||||
|
|
|
@ -303,7 +303,7 @@ inline static void *call_catch_block( PEXCEPTION_RECORD rec, cxx_exception_frame
|
|||
/* setup an exception block for nested exceptions */
|
||||
|
||||
//nested_frame.frame.Handler = catch_function_nested_handler;
|
||||
nested_frame.frame.handler = catch_function_nested_handler; //ros
|
||||
nested_frame.frame.handler = catch_function_nested_handler;
|
||||
nested_frame.prev_rec = thread_data->exc_record;
|
||||
nested_frame.cxx_frame = frame;
|
||||
nested_frame.descr = descr;
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
#include <math.h>
|
||||
#include "msvcrt.h"
|
||||
|
||||
#include "msvcrt/stdlib.h"
|
||||
#include "msvcrt/string.h"
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
|
||||
//#include "wine/library.h"
|
||||
#include "wine/unicode.h"
|
||||
|
|
|
@ -54,6 +54,11 @@ static inline BOOL msvcrt_init_tls(void);
|
|||
static inline BOOL msvcrt_free_tls(void);
|
||||
//const char* msvcrt_get_reason(DWORD reason) WINE_UNUSED;
|
||||
|
||||
typedef void* (*MSVCRT_malloc_func)(MSVCRT_size_t);
|
||||
|
||||
char* MSVCRT___unDName(char *,const char*,int,MSVCRT_malloc_func,MSVCRT_free_func,unsigned short int);
|
||||
char* MSVCRT___unDNameEx(char *,const char*,int,MSVCRT_malloc_func,MSVCRT_free_func,void *,unsigned short int);
|
||||
|
||||
#if 0 /* __REACTOS__ */
|
||||
|
||||
/*********************************************************************
|
||||
|
@ -148,58 +153,65 @@ void MSVCRT_I10_OUTPUT(void)
|
|||
}
|
||||
|
||||
/*********************************************************************
|
||||
* __unDName (MSVCRT.@)
|
||||
* __unDNameEx (MSVCRT.@)
|
||||
*
|
||||
* Demangle a C++ identifier.
|
||||
*
|
||||
* PARAMS
|
||||
* unknown [I] Not yet determined
|
||||
* OutStr [O] If not NULL, the place to put the demangled string
|
||||
* mangled [I] Mangled name of the function
|
||||
* unknown2 [I] Not yet determined
|
||||
* OutStrLen[I] Length of OutStr
|
||||
* memget [I] Function to allocate memory with
|
||||
* memfree [I] Function to free memory with
|
||||
* unknown [?] Unknown, possibly a call back
|
||||
* flags [I] Flags determining demangled format
|
||||
*
|
||||
* RETURNS
|
||||
* Success: A string pointing to the unmangled name, allocated with memget.
|
||||
* Failure: NULL.
|
||||
*/
|
||||
char* MSVCRT___unDName(int unknown, const char* mangled, int unknown2,
|
||||
char* MSVCRT___unDNameEx(char * OutStr, const char* mangled, int OutStrLen,
|
||||
MSVCRT_malloc_func memget,
|
||||
MSVCRT_free_func memfree,
|
||||
unsigned int flags)
|
||||
void * unknown,
|
||||
unsigned short int flags)
|
||||
{
|
||||
char* ret;
|
||||
|
||||
FIXME("(%d,%s,%d,%p,%p,%x) stub!\n", unknown, mangled, unknown2, memget, memfree, flags);
|
||||
FIXME("(%p,%s,%d,%p,%p,%p,%x) stub!\n",
|
||||
OutStr, mangled, OutStrLen, memget, memfree, unknown, flags);
|
||||
|
||||
/* FIXME: The code in tools/winebuild/msmangle.c is pretty complete and
|
||||
* could be used here.
|
||||
*/
|
||||
|
||||
/* Experimentation reveals the following flag meanings when set:
|
||||
* 0x0001 - Dont show __ in calling convention
|
||||
* 0x0002 - Dont show calling convention at all
|
||||
* 0x0004 - Dont show function/method return value
|
||||
* 0x0001 - Don't show __ in calling convention
|
||||
* 0x0002 - Don't show calling convention at all
|
||||
* 0x0004 - Don't show function/method return value
|
||||
* 0x0010 - Same as 0x1
|
||||
* 0x0080 - Dont show access specifier (public/protected/private)
|
||||
* 0x0200 - Dont show static specifier
|
||||
* 0x0080 - Don't show access specifier (public/protected/private)
|
||||
* 0x0200 - Don't show static specifier
|
||||
* 0x0800 - Unknown, passed by type_info::name()
|
||||
* 0x1000 - Only report the variable/class name
|
||||
* 0x2000 - Unknown, passed by type_info::name()
|
||||
*/
|
||||
/* Duplicate the mangled name; for comparisons it doesn't matter anyway */
|
||||
ret = memget(strlen(mangled) + 1);
|
||||
strcpy(ret, mangled);
|
||||
return ret;
|
||||
if( OutStr == NULL) {
|
||||
OutStrLen = strlen(mangled) + 1;
|
||||
OutStr = memget( OutStrLen);
|
||||
}
|
||||
strncpy( OutStr, mangled, OutStrLen);
|
||||
return OutStr;
|
||||
}
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
* __unDNameEx (MSVCRT.@)
|
||||
* Function not really understood but needed to make the DLL work
|
||||
* __unDName (MSVCRT.@)
|
||||
*/
|
||||
char* MSVCRT___unDNameEx(void)
|
||||
char* MSVCRT___unDName(char * OutStr, const char* mangled, int OutStrLen,
|
||||
MSVCRT_malloc_func memget,
|
||||
MSVCRT_free_func memfree,
|
||||
unsigned short int flags)
|
||||
{
|
||||
return NULL;
|
||||
return MSVCRT___unDNameEx( OutStr, mangled, OutStrLen, memget, memfree,
|
||||
NULL, flags);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "winnls.h"
|
||||
|
||||
#include "msvcrt/string.h"
|
||||
#include "msvcrt/eh.h"
|
||||
#include "eh.h"
|
||||
|
||||
/* TLS data */
|
||||
extern DWORD MSVCRT_tls_index;
|
||||
|
@ -72,7 +72,9 @@ int MSVCRT__set_new_mode(int mode);
|
|||
|
||||
void* MSVCRT_operator_new(unsigned long size);
|
||||
void MSVCRT_operator_delete(void*);
|
||||
#ifndef __REACTOS__
|
||||
typedef void* (*MSVCRT_malloc_func)(MSVCRT_size_t);
|
||||
#endif
|
||||
typedef void (*MSVCRT_free_func)(void*);
|
||||
#ifndef __REACTOS__
|
||||
extern char* MSVCRT___unDName(int,const char*,int,MSVCRT_malloc_func,MSVCRT_free_func,unsigned int);
|
||||
|
|
|
@ -1,67 +0,0 @@
|
|||
/*
|
||||
* Console I/O definitions
|
||||
*
|
||||
* Derived from the mingw header written by Colin Peters.
|
||||
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
||||
* This file is in the public domain.
|
||||
*/
|
||||
#ifndef __WINE_CONIO_H
|
||||
#define __WINE_CONIO_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
char* _cgets(char*);
|
||||
int _cprintf(const char*,...);
|
||||
int _cputs(const char*);
|
||||
int _cscanf(const char*,...);
|
||||
int _getch(void);
|
||||
int _getche(void);
|
||||
int _kbhit(void);
|
||||
int _putch(int);
|
||||
int _ungetch(int);
|
||||
|
||||
#ifdef _M_IX86
|
||||
int _inp(unsigned short);
|
||||
unsigned long _inpd(unsigned short);
|
||||
unsigned short _inpw(unsigned short);
|
||||
int _outp(unsigned short, int);
|
||||
unsigned long _outpd(unsigned short, unsigned long);
|
||||
unsigned short _outpw(unsigned short, unsigned short);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
static inline char* cgets(char* str) { return _cgets(str); }
|
||||
static inline int cputs(const char* str) { return _cputs(str); }
|
||||
static inline int getch(void) { return _getch(); }
|
||||
static inline int getche(void) { return _getche(); }
|
||||
static inline int kbhit(void) { return _kbhit(); }
|
||||
static inline int putch(int c) { return _putch(c); }
|
||||
static inline int ungetch(int c) { return _ungetch(c); }
|
||||
#ifdef _M_IX86
|
||||
static inline int inp(unsigned short i) { return _inp(i); }
|
||||
static inline unsigned short inpw(unsigned short i) { return _inpw(i); }
|
||||
static inline int outp(unsigned short i, int j) { return _outp(i, j); }
|
||||
static inline unsigned short outpw(unsigned short i, unsigned short j) { return _outpw(i, j); }
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
extern int cprintf(const char*,...) __attribute__((alias("_cprintf"),format(printf,1,2)));
|
||||
extern int cscanf(const char*,...) __attribute__((alias("_cscanf"),format(scanf,1,2)));
|
||||
#else
|
||||
#define cprintf _cprintf
|
||||
#define cscanf _cscanf
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_CONIO_H */
|
|
@ -1,107 +0,0 @@
|
|||
/*
|
||||
* Debug API
|
||||
*
|
||||
* Copyright 2001 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_CRTDBG_H_
|
||||
#define __WINE_CRTDBG_H_
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
/* The debug API is not implemented in Winelib.
|
||||
* Redirect everything to the regular APIs.
|
||||
*/
|
||||
|
||||
#define _CRT_WARN 0
|
||||
#define _CRT_ERROR 1
|
||||
#define _CRT_ASSERT 2
|
||||
#define _CRT_ERRCNT 3
|
||||
|
||||
#define _FREE_BLOCK 0
|
||||
#define _NORMAL_BLOCK 1
|
||||
#define _CRT_BLOCK 2
|
||||
#define _IGNORE_BLOCK 3
|
||||
#define _CLIENT_BLOCK 4
|
||||
#define _MAX_BLOCKS 5
|
||||
|
||||
|
||||
typedef struct _CrtMemState
|
||||
{
|
||||
struct _CrtMemBlockHeader* pBlockHeader;
|
||||
unsigned long lCounts[_MAX_BLOCKS];
|
||||
unsigned long lSizes[_MAX_BLOCKS];
|
||||
unsigned long lHighWaterCount;
|
||||
unsigned long lTotalCount;
|
||||
} _CrtMemState;
|
||||
|
||||
|
||||
#ifndef _DEBUG
|
||||
|
||||
#define _ASSERT(expr) ((void)0)
|
||||
#define _ASSERTE(expr) ((void)0)
|
||||
#define _CrtDbgBreak() ((void)0)
|
||||
|
||||
#else /* _DEBUG */
|
||||
|
||||
#include <assert.h>
|
||||
#define _ASSERT(expr) assert(expr)
|
||||
#define _ASSERTE(expr) assert(expr)
|
||||
#if defined(__GNUC__) && defined(__i386__)
|
||||
#define _CrtDbgBreak() __asm__ ("\tint $0x3\n")
|
||||
#else
|
||||
#define _CrtDbgBreak() ((void)0)
|
||||
#endif
|
||||
|
||||
#endif /* _DEBUG */
|
||||
|
||||
#define _CrtCheckMemory() ((int)1)
|
||||
#define _CrtDbgReport(...) ((int)0)
|
||||
#define _CrtDoForAllClientObjects(f,c) ((void)0)
|
||||
#define _CrtDumpMemoryLeaks() ((int)0)
|
||||
#define _CrtIsMemoryBlock(p,s,r,f,l) ((int)1)
|
||||
#define _CrtIsValidHeapPointer(p) ((int)1)
|
||||
#define _CrtIsValidPointer(p,s,a) ((int)1)
|
||||
#define _CrtMemCheckpoint(s) ((void)0)
|
||||
#define _CrtMemDifference(s1,s2,s3) ((int)0)
|
||||
#define _CrtMemDumpAllObjectsSince(s) ((void)0)
|
||||
#define _CrtMemDumpStatistics(s) ((void)0)
|
||||
#define _CrtSetAllocHook(f) ((void)0)
|
||||
#define _CrtSetBreakAlloc(a) ((long)0)
|
||||
#define _CrtSetDbgFlag(f) ((int)0)
|
||||
#define _CrtSetDumpClient(f) ((void)0)
|
||||
#define _CrtSetReportMode(t,m) ((int)0)
|
||||
|
||||
#define _RPT0(t,m)
|
||||
#define _RPT1(t,m,p1)
|
||||
#define _RPT2(t,m,p1,p2)
|
||||
#define _RPT3(t,m,p1,p2,p3)
|
||||
#define _RPT4(t,m,p1,p2,p3,p4)
|
||||
#define _RPTF0(t,m)
|
||||
#define _RPTF1(t,m,p1)
|
||||
#define _RPTF2(t,m,p1,p2)
|
||||
#define _RPTF3(t,m,p1,p2,p3)
|
||||
#define _RPTF4(t,m,p1,p2,p3,p4)
|
||||
|
||||
|
||||
#define _malloc_dbg(s,t,f,l) malloc(s)
|
||||
#define _calloc_dbg(c,s,t,f,l) calloc(c,s)
|
||||
#define _expand_dbg(p,s,t,f,l) _expand(p,s)
|
||||
#define _free_dbg(p,t) free(p)
|
||||
#define _realloc_dbg(p,s,t,f,l) realloc(p,s)
|
||||
|
||||
#endif /* __WINE_CRTDBG_H */
|
|
@ -1,78 +0,0 @@
|
|||
/*
|
||||
* Path and directory definitions
|
||||
*
|
||||
* Derived from the mingw header written by Colin Peters.
|
||||
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
||||
* This file is in the public domain.
|
||||
*/
|
||||
#ifndef __WINE_DIRECT_H
|
||||
#define __WINE_DIRECT_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_SIZE_T_DEFINED
|
||||
typedef unsigned int MSVCRT(size_t);
|
||||
#define MSVCRT_SIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_DISKFREE_T_DEFINED
|
||||
#define MSVCRT_DISKFREE_T_DEFINED
|
||||
struct _diskfree_t {
|
||||
unsigned int total_clusters;
|
||||
unsigned int avail_clusters;
|
||||
unsigned int sectors_per_cluster;
|
||||
unsigned int bytes_per_sector;
|
||||
};
|
||||
#endif /* MSVCRT_DISKFREE_T_DEFINED */
|
||||
|
||||
int _chdir(const char*);
|
||||
int _chdrive(int);
|
||||
char* _getcwd(char*,int);
|
||||
char* _getdcwd(int,char*,int);
|
||||
int _getdrive(void);
|
||||
unsigned long _getdrives(void);
|
||||
int _mkdir(const char*);
|
||||
int _rmdir(const char*);
|
||||
|
||||
#ifndef MSVCRT_WDIRECT_DEFINED
|
||||
#define MSVCRT_WDIRECT_DEFINED
|
||||
int _wchdir(const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)* _wgetcwd(MSVCRT(wchar_t)*,int);
|
||||
MSVCRT(wchar_t)* _wgetdcwd(int,MSVCRT(wchar_t)*,int);
|
||||
int _wmkdir(const MSVCRT(wchar_t)*);
|
||||
int _wrmdir(const MSVCRT(wchar_t)*);
|
||||
#endif /* MSVCRT_WDIRECT_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
static inline int chdir(const char* newdir) { return _chdir(newdir); }
|
||||
static inline char* getcwd(char * buf, int size) { return _getcwd(buf, size); }
|
||||
static inline int mkdir(const char* newdir) { return _mkdir(newdir); }
|
||||
static inline int rmdir(const char* dir) { return _rmdir(dir); }
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_DIRECT_H */
|
|
@ -1 +0,0 @@
|
|||
#include <direct.h>
|
|
@ -1,49 +0,0 @@
|
|||
/*
|
||||
* DOS definitions
|
||||
*
|
||||
* Derived from the mingw header written by Colin Peters.
|
||||
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
||||
* This file is in the public domain.
|
||||
*/
|
||||
#ifndef __WINE_DOS_H
|
||||
#define __WINE_DOS_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
/* The following are also defined in io.h */
|
||||
#define _A_NORMAL 0x00000000
|
||||
#define _A_RDONLY 0x00000001
|
||||
#define _A_HIDDEN 0x00000002
|
||||
#define _A_SYSTEM 0x00000004
|
||||
#define _A_VOLID 0x00000008
|
||||
#define _A_SUBDIR 0x00000010
|
||||
#define _A_ARCH 0x00000020
|
||||
|
||||
#ifndef MSVCRT_DISKFREE_T_DEFINED
|
||||
#define MSVCRT_DISKFREE_T_DEFINED
|
||||
struct _diskfree_t {
|
||||
unsigned int total_clusters;
|
||||
unsigned int avail_clusters;
|
||||
unsigned int sectors_per_cluster;
|
||||
unsigned int bytes_per_sector;
|
||||
};
|
||||
#endif /* MSVCRT_DISKFREE_T_DEFINED */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
unsigned int _getdiskfree(unsigned int, struct _diskfree_t *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#define diskfree_t _diskfree_t
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_DOS_H */
|
|
@ -1,133 +0,0 @@
|
|||
/*
|
||||
* Copyright 2001 Jon Griffiths
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __WINE_ERRNO_H
|
||||
#define __WINE_ERRNO_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_MSVCRT_PREFIX
|
||||
|
||||
# define MSVCRT_EPERM 1
|
||||
# define MSVCRT_ENOENT 2
|
||||
# define MSVCRT_ESRCH 3
|
||||
# define MSVCRT_EINTR 4
|
||||
# define MSVCRT_EIO 5
|
||||
# define MSVCRT_ENXIO 6
|
||||
# define MSVCRT_E2BIG 7
|
||||
# define MSVCRT_ENOEXEC 8
|
||||
# define MSVCRT_EBADF 9
|
||||
# define MSVCRT_ECHILD 10
|
||||
# define MSVCRT_EAGAIN 11
|
||||
# define MSVCRT_ENOMEM 12
|
||||
# define MSVCRT_EACCES 13
|
||||
# define MSVCRT_EFAULT 14
|
||||
# define MSVCRT_EBUSY 16
|
||||
# define MSVCRT_EEXIST 17
|
||||
# define MSVCRT_EXDEV 18
|
||||
# define MSVCRT_ENODEV 19
|
||||
# define MSVCRT_ENOTDIR 20
|
||||
# define MSVCRT_EISDIR 21
|
||||
# define MSVCRT_EINVAL 22
|
||||
# define MSVCRT_ENFILE 23
|
||||
# define MSVCRT_EMFILE 24
|
||||
# define MSVCRT_ENOTTY 25
|
||||
# define MSVCRT_EFBIG 27
|
||||
# define MSVCRT_ENOSPC 28
|
||||
# define MSVCRT_ESPIPE 29
|
||||
# define MSVCRT_EROFS 30
|
||||
# define MSVCRT_EMLINK 31
|
||||
# define MSVCRT_EPIPE 32
|
||||
# define MSVCRT_EDOM 33
|
||||
# define MSVCRT_ERANGE 34
|
||||
# define MSVCRT_EDEADLK 36
|
||||
# define MSVCRT_EDEADLOCK MSVCRT_EDEADLK
|
||||
# define MSVCRT_ENAMETOOLONG 38
|
||||
# define MSVCRT_ENOLCK 39
|
||||
# define MSVCRT_ENOSYS 40
|
||||
# define MSVCRT_ENOTEMPTY 41
|
||||
|
||||
#else /* USE_MSVCRT_PREFIX */
|
||||
|
||||
# define EPERM 1
|
||||
# define ENOENT 2
|
||||
# define ESRCH 3
|
||||
# define EINTR 4
|
||||
# define EIO 5
|
||||
# define ENXIO 6
|
||||
# define E2BIG 7
|
||||
# define ENOEXEC 8
|
||||
# define EBADF 9
|
||||
# define ECHILD 10
|
||||
# define EAGAIN 11
|
||||
# define ENOMEM 12
|
||||
# define EACCES 13
|
||||
# define EFAULT 14
|
||||
# define EBUSY 16
|
||||
# define EEXIST 17
|
||||
# define EXDEV 18
|
||||
# define ENODEV 19
|
||||
# define ENOTDIR 20
|
||||
# define EISDIR 21
|
||||
# define EINVAL 22
|
||||
# define ENFILE 23
|
||||
# define EMFILE 24
|
||||
# define ENOTTY 25
|
||||
# define EFBIG 27
|
||||
# define ENOSPC 28
|
||||
# define ESPIPE 29
|
||||
# define EROFS 30
|
||||
# define EMLINK 31
|
||||
# define EPIPE 32
|
||||
# define EDOM 33
|
||||
# define ERANGE 34
|
||||
# define EDEADLK 36
|
||||
# define EDEADLOCK EDEADLK
|
||||
# define ENAMETOOLONG 38
|
||||
# define ENOLCK 39
|
||||
# define ENOSYS 40
|
||||
# define ENOTEMPTY 41
|
||||
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern int* MSVCRT(_errno)(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
# define errno (*_errno())
|
||||
#else
|
||||
# define MSVCRT_errno (*MSVCRT__errno())
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_ERRNO_H */
|
|
@ -1,50 +0,0 @@
|
|||
/*
|
||||
* File definitions
|
||||
*
|
||||
* Derived from the mingw header written by Colin Peters.
|
||||
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
||||
* This file is in the public domain.
|
||||
*/
|
||||
#ifndef __WINE_FCNTL_H
|
||||
#define __WINE_FCNTL_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#define _O_RDONLY 0
|
||||
#define _O_WRONLY 1
|
||||
#define _O_RDWR 2
|
||||
#define _O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR)
|
||||
#define _O_APPEND 0x0008
|
||||
#define _O_RANDOM 0x0010
|
||||
#define _O_SEQUENTIAL 0x0020
|
||||
#define _O_TEMPORARY 0x0040
|
||||
#define _O_NOINHERIT 0x0080
|
||||
#define _O_CREAT 0x0100
|
||||
#define _O_TRUNC 0x0200
|
||||
#define _O_EXCL 0x0400
|
||||
#define _O_SHORT_LIVED 0x1000
|
||||
#define _O_TEXT 0x4000
|
||||
#define _O_BINARY 0x8000
|
||||
#define _O_RAW _O_BINARY
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#define O_RDONLY _O_RDONLY
|
||||
#define O_WRONLY _O_WRONLY
|
||||
#define O_RDWR _O_RDWR
|
||||
#define O_ACCMODE _O_ACCMODE
|
||||
#define O_APPEND _O_APPEND
|
||||
#define O_RANDOM _O_RANDOM
|
||||
#define O_SEQENTIAL _O_SEQUENTIAL
|
||||
#define O_TEMPORARY _O_TEMPORARY
|
||||
#define O_NOINHERIT _O_NOINHERIT
|
||||
#define O_CREAT _O_CREAT
|
||||
#define O_TRUNC _O_TRUNC
|
||||
#define O_EXCL _O_EXCL
|
||||
#define O_TEXT _O_TEXT
|
||||
#define O_BINARY _O_BINARY
|
||||
#define O_RAW _O_BINARY
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_FCNTL_H */
|
|
@ -1,197 +0,0 @@
|
|||
/*
|
||||
* System I/O definitions.
|
||||
*
|
||||
* Derived from the mingw header written by Colin Peters.
|
||||
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
||||
* This file is in the public domain.
|
||||
*/
|
||||
#ifndef __WINE_IO_H
|
||||
#define __WINE_IO_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER
|
||||
# ifndef __int64
|
||||
# define __int64 long long
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* The following are also defined in dos.h */
|
||||
#define _A_NORMAL 0x00000000
|
||||
#define _A_RDONLY 0x00000001
|
||||
#define _A_HIDDEN 0x00000002
|
||||
#define _A_SYSTEM 0x00000004
|
||||
#define _A_VOLID 0x00000008
|
||||
#define _A_SUBDIR 0x00000010
|
||||
#define _A_ARCH 0x00000020
|
||||
|
||||
#ifndef MSVCRT_TIME_T_DEFINED
|
||||
typedef long MSVCRT(time_t);
|
||||
#define MSVCRT_TIME_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_FSIZE_T_DEFINED
|
||||
typedef unsigned long _fsize_t;
|
||||
#define MSVCRT_FSIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_FINDDATA_T_DEFINED
|
||||
#define MSVCRT_FINDDATA_T_DEFINED
|
||||
struct _finddata_t
|
||||
{
|
||||
unsigned attrib;
|
||||
MSVCRT(time_t) time_create;
|
||||
MSVCRT(time_t) time_access;
|
||||
MSVCRT(time_t) time_write;
|
||||
_fsize_t size;
|
||||
char name[260];
|
||||
};
|
||||
|
||||
struct _finddatai64_t
|
||||
{
|
||||
unsigned attrib;
|
||||
MSVCRT(time_t) time_create;
|
||||
MSVCRT(time_t) time_access;
|
||||
MSVCRT(time_t) time_write;
|
||||
__int64 size;
|
||||
char name[260];
|
||||
};
|
||||
#endif /* MSVCRT_FINDDATA_T_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WFINDDATA_T_DEFINED
|
||||
#define MSVCRT_WFINDDATA_T_DEFINED
|
||||
struct _wfinddata_t {
|
||||
unsigned attrib;
|
||||
MSVCRT(time_t) time_create;
|
||||
MSVCRT(time_t) time_access;
|
||||
MSVCRT(time_t) time_write;
|
||||
_fsize_t size;
|
||||
MSVCRT(wchar_t) name[260];
|
||||
};
|
||||
|
||||
struct _wfinddatai64_t {
|
||||
unsigned attrib;
|
||||
MSVCRT(time_t) time_create;
|
||||
MSVCRT(time_t) time_access;
|
||||
MSVCRT(time_t) time_write;
|
||||
__int64 size;
|
||||
MSVCRT(wchar_t) name[260];
|
||||
};
|
||||
#endif /* MSVCRT_WFINDDATA_T_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int _access(const char*,int);
|
||||
int _chmod(const char*,int);
|
||||
int _chsize(int,long);
|
||||
int _close(int);
|
||||
int _commit(int);
|
||||
int _creat(const char*,int);
|
||||
int _dup(int);
|
||||
int _dup2(int,int);
|
||||
int _eof(int);
|
||||
__int64 _filelengthi64(int);
|
||||
long _filelength(int);
|
||||
int _findclose(long);
|
||||
long _findfirst(const char*,struct _finddata_t*);
|
||||
long _findfirsti64(const char*, struct _finddatai64_t*);
|
||||
int _findnext(long,struct _finddata_t*);
|
||||
int _findnexti64(long, struct _finddatai64_t*);
|
||||
long _get_osfhandle(int);
|
||||
int _isatty(int);
|
||||
int _locking(int,int,long);
|
||||
long _lseek(int,long,int);
|
||||
__int64 _lseeki64(int,__int64,int);
|
||||
char* _mktemp(char*);
|
||||
int _open(const char*,int,...);
|
||||
int _open_osfhandle(long,int);
|
||||
int _pipe(int*,unsigned int,int);
|
||||
int _read(int,void*,unsigned int);
|
||||
int _setmode(int,int);
|
||||
int _sopen(const char*,int,int,...);
|
||||
long _tell(int);
|
||||
__int64 _telli64(int);
|
||||
int _umask(int);
|
||||
int _unlink(const char*);
|
||||
int _write(int,const void*,unsigned int);
|
||||
|
||||
int MSVCRT(remove)(const char*);
|
||||
int MSVCRT(rename)(const char*,const char*);
|
||||
|
||||
#ifndef MSVCRT_WIO_DEFINED
|
||||
#define MSVCRT_WIO_DEFINED
|
||||
int _waccess(const MSVCRT(wchar_t)*,int);
|
||||
int _wchmod(const MSVCRT(wchar_t)*,int);
|
||||
int _wcreat(const MSVCRT(wchar_t)*,int);
|
||||
long _wfindfirst(const MSVCRT(wchar_t)*,struct _wfinddata_t*);
|
||||
long _wfindfirsti64(const MSVCRT(wchar_t)*, struct _wfinddatai64_t*);
|
||||
int _wfindnext(long,struct _wfinddata_t*);
|
||||
int _wfindnexti64(long, struct _wfinddatai64_t*);
|
||||
MSVCRT(wchar_t)*_wmktemp(MSVCRT(wchar_t)*);
|
||||
int _wopen(const MSVCRT(wchar_t)*,int,...);
|
||||
int _wrename(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
int _wsopen(const MSVCRT(wchar_t)*,int,int,...);
|
||||
int _wunlink(const MSVCRT(wchar_t)*);
|
||||
#endif /* MSVCRT_WIO_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
static inline int access(const char* path, int mode) { return _access(path, mode); }
|
||||
static inline int chmod(const char* path, int mode) { return _chmod(path, mode); }
|
||||
static inline int chsize(int fd, long size) { return _chsize(fd, size); }
|
||||
static inline int close(int fd) { return _close(fd); }
|
||||
static inline int creat(const char* path, int mode) { return _creat(path, mode); }
|
||||
static inline int dup(int od) { return _dup(od); }
|
||||
static inline int dup2(int od, int nd) { return _dup2(od, nd); }
|
||||
static inline int eof(int fd) { return _eof(fd); }
|
||||
static inline long filelength(int fd) { return _filelength(fd); }
|
||||
static inline int isatty(int fd) { return _isatty(fd); }
|
||||
static inline int locking(int fd, int mode, long size) { return _locking(fd, mode, size); }
|
||||
static inline long lseek(int fd, long off, int where) { return _lseek(fd, off, where); }
|
||||
static inline char* mktemp(char* pat) { return _mktemp(pat); }
|
||||
static inline int read(int fd, void* buf, unsigned int size) { return _read(fd, buf, size); }
|
||||
static inline int setmode(int fd, int mode) { return _setmode(fd, mode); }
|
||||
static inline long tell(int fd) { return _tell(fd); }
|
||||
#ifndef MSVCRT_UMASK_DEFINED
|
||||
static inline int umask(int fd) { return _umask(fd); }
|
||||
#define MSVCRT_UMASK_DEFINED
|
||||
#endif
|
||||
#ifndef MSVCRT_UNLINK_DEFINED
|
||||
static inline int unlink(const char* path) { return _unlink(path); }
|
||||
#define MSVCRT_UNLINK_DEFINED
|
||||
#endif
|
||||
static inline int write(int fd, const void* buf, unsigned int size) { return _write(fd, buf, size); }
|
||||
|
||||
#ifdef __GNUC__
|
||||
extern int open(const char*,int,...) __attribute__((alias("_open")));
|
||||
extern int sopen(const char*,int,int,...) __attribute__((alias("_sopen")));
|
||||
#else
|
||||
#define open _open
|
||||
#define sopen _sopen
|
||||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* USE _MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_IO_H */
|
|
@ -1,17 +0,0 @@
|
|||
#ifndef __WINE_LIMITS_H
|
||||
#define __WINE_LIMITS_H
|
||||
|
||||
#define INT_MAX 2147483647
|
||||
#define INT_MIN (-2147483648)
|
||||
#define SHRT_MAX 32767
|
||||
#define SHRT_MIN (-32768)
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_LIMITS_H */
|
|
@ -1,103 +0,0 @@
|
|||
/*
|
||||
* Locale definitions
|
||||
*
|
||||
* Copyright 2000 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_LOCALE_H
|
||||
#define __WINE_LOCALE_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_MSVCRT_PREFIX
|
||||
#define MSVCRT_LC_ALL 0
|
||||
#define MSVCRT_LC_COLLATE 1
|
||||
#define MSVCRT_LC_CTYPE 2
|
||||
#define MSVCRT_LC_MONETARY 3
|
||||
#define MSVCRT_LC_NUMERIC 4
|
||||
#define MSVCRT_LC_TIME 5
|
||||
#define MSVCRT_LC_MIN MSVCRT_LC_ALL
|
||||
#define MSVCRT_LC_MAX MSVCRT_LC_TIME
|
||||
#else
|
||||
#define LC_ALL 0
|
||||
#define LC_COLLATE 1
|
||||
#define LC_CTYPE 2
|
||||
#define LC_MONETARY 3
|
||||
#define LC_NUMERIC 4
|
||||
#define LC_TIME 5
|
||||
#define LC_MIN LC_ALL
|
||||
#define LC_MAX LC_TIME
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#ifndef MSVCRT_LCONV_DEFINED
|
||||
#define MSVCRT_LCONV_DEFINED
|
||||
struct MSVCRT(lconv)
|
||||
{
|
||||
char* decimal_point;
|
||||
char* thousands_sep;
|
||||
char* grouping;
|
||||
char* int_curr_symbol;
|
||||
char* currency_symbol;
|
||||
char* mon_decimal_point;
|
||||
char* mon_thousands_sep;
|
||||
char* mon_grouping;
|
||||
char* positive_sign;
|
||||
char* negative_sign;
|
||||
char int_frac_digits;
|
||||
char frac_digits;
|
||||
char p_cs_precedes;
|
||||
char p_sep_by_space;
|
||||
char n_cs_precedes;
|
||||
char n_sep_by_space;
|
||||
char p_sign_posn;
|
||||
char n_sign_posn;
|
||||
};
|
||||
#endif /* MSVCRT_LCONV_DEFINED */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
char* MSVCRT(setlocale)(int,const char*);
|
||||
struct MSVCRT(lconv)* MSVCRT(localeconv)(void);
|
||||
|
||||
#ifndef MSVCRT_WLOCALE_DEFINED
|
||||
#define MSVCRT_WLOCALE_DEFINED
|
||||
MSVCRT(wchar_t)* _wsetlocale(int,const MSVCRT(wchar_t)*);
|
||||
#endif /* MSVCRT_WLOCALE_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_LOCALE_H */
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Heap definitions
|
||||
*
|
||||
* Copyright 2001 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_MALLOC_H
|
||||
#define __WINE_MALLOC_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* heap function constants */
|
||||
#define _HEAPEMPTY -1
|
||||
#define _HEAPOK -2
|
||||
#define _HEAPBADBEGIN -3
|
||||
#define _HEAPBADNODE -4
|
||||
#define _HEAPEND -5
|
||||
#define _HEAPBADPTR -6
|
||||
|
||||
#define _FREEENTRY 0
|
||||
#define _USEDENTRY 1
|
||||
|
||||
|
||||
#ifndef MSVCRT_SIZE_T_DEFINED
|
||||
typedef unsigned int MSVCRT(size_t);
|
||||
#define MSVCRT_SIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_HEAPINFO_DEFINED
|
||||
#define MSVCRT_HEAPINFO_DEFINED
|
||||
typedef struct _heapinfo
|
||||
{
|
||||
int* _pentry;
|
||||
MSVCRT(size_t) _size;
|
||||
int _useflag;
|
||||
} _HEAPINFO;
|
||||
#endif /* MSVCRT_HEAPINFO_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void* _expand(void*,MSVCRT(size_t));
|
||||
int _heapadd(void*,MSVCRT(size_t));
|
||||
int _heapchk(void);
|
||||
int _heapmin(void);
|
||||
int _heapset(unsigned int);
|
||||
MSVCRT(size_t) _heapused(MSVCRT(size_t)*,MSVCRT(size_t)*);
|
||||
int _heapwalk(_HEAPINFO*);
|
||||
MSVCRT(size_t) _msize(void*);
|
||||
|
||||
void* MSVCRT(calloc)(MSVCRT(size_t),MSVCRT(size_t));
|
||||
void MSVCRT(free)(void*);
|
||||
void* MSVCRT(malloc)(MSVCRT(size_t));
|
||||
void* MSVCRT(realloc)(void*,MSVCRT(size_t));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
# ifdef __GNUC__
|
||||
# define _alloca(x) __builtin_alloca((x))
|
||||
# define alloca(x) __builtin_alloca((x))
|
||||
# endif
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_MALLOC_H */
|
|
@ -1,12 +0,0 @@
|
|||
#ifndef __WINE_MATH_H
|
||||
#define __WINE_MATH_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_MATH_H */
|
|
@ -1,57 +0,0 @@
|
|||
/*
|
||||
* Multibyte char definitions
|
||||
*
|
||||
* Copyright 2001 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_MBCTYPE_H
|
||||
#define __WINE_MBCTYPE_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
unsigned char* __p__mbctype(void);
|
||||
#define _mbctype (__p__mbctype())
|
||||
|
||||
int _getmbcp(void);
|
||||
int _ismbbalnum(unsigned int);
|
||||
int _ismbbalpha(unsigned int);
|
||||
int _ismbbgraph(unsigned int);
|
||||
int _ismbbkalnum(unsigned int);
|
||||
int _ismbbkana(unsigned int);
|
||||
int _ismbbkprint(unsigned int);
|
||||
int _ismbbkpunct(unsigned int);
|
||||
int _ismbbprint(unsigned int);
|
||||
int _ismbbpunct(unsigned int);
|
||||
int _setmbcp(int);
|
||||
|
||||
#ifndef MSVCRT_MBLEADTRAIL_DEFINED
|
||||
#define MSVCRT_MBLEADTRAIL_DEFINED
|
||||
int _ismbblead(unsigned int);
|
||||
int _ismbbtrail(unsigned int);
|
||||
int _ismbslead(const unsigned char*,const unsigned char*);
|
||||
int _ismbstrail(const unsigned char*,const unsigned char*);
|
||||
#endif /* MSVCRT_MBLEADTRAIL_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_MBCTYPE_H */
|
|
@ -1,133 +0,0 @@
|
|||
/*
|
||||
* Multibyte string definitions
|
||||
*
|
||||
* Copyright 2001 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_MBSTRING_H
|
||||
#define __WINE_MBSTRING_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_SIZE_T_DEFINED
|
||||
typedef unsigned int MSVCRT(size_t);
|
||||
#define MSVCRT_SIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_NLSCMP_DEFINED
|
||||
#define _NLSCMPERROR ((unsigned int)0x7fffffff)
|
||||
#define MSVCRT_NLSCMP_DEFINED
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int _ismbcalnum(unsigned int);
|
||||
int _ismbcalpha(unsigned int);
|
||||
int _ismbcdigit(unsigned int);
|
||||
int _ismbcgraph(unsigned int);
|
||||
int _ismbchira(unsigned int);
|
||||
int _ismbckata(unsigned int);
|
||||
int _ismbcl0(unsigned int);
|
||||
int _ismbcl1(unsigned int);
|
||||
int _ismbcl2(unsigned int);
|
||||
int _ismbclegal(unsigned int);
|
||||
int _ismbclower(unsigned int);
|
||||
int _ismbcprint(unsigned int);
|
||||
int _ismbcpunct(unsigned int);
|
||||
int _ismbcspace(unsigned int);
|
||||
int _ismbcsymbol(unsigned int);
|
||||
int _ismbcupper(unsigned int);
|
||||
unsigned int _mbbtombc(unsigned int);
|
||||
int _mbbtype(unsigned char,int);
|
||||
#define _mbccmp(_cpc1,_cpc2) _mbsncmp((_cpc1),(_cpc2),1)
|
||||
void _mbccpy(unsigned char*,const unsigned char*);
|
||||
unsigned int _mbcjistojms(unsigned int);
|
||||
unsigned int _mbcjmstojis(unsigned int);
|
||||
MSVCRT(size_t) _mbclen(const unsigned char*);
|
||||
unsigned int _mbctohira(unsigned int);
|
||||
unsigned int _mbctokata(unsigned int);
|
||||
unsigned int _mbctolower(unsigned int);
|
||||
unsigned int _mbctombb(unsigned int);
|
||||
unsigned int _mbctoupper(unsigned int);
|
||||
int _mbsbtype(const unsigned char*,MSVCRT(size_t));
|
||||
unsigned char* _mbscat(unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbschr(const unsigned char*,unsigned int);
|
||||
int _mbscmp(const unsigned char*,const unsigned char*);
|
||||
int _mbscoll(const unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbscpy(unsigned char*,const unsigned char*);
|
||||
MSVCRT(size_t) _mbscspn(const unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbsdec(const unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbsdup(const unsigned char*);
|
||||
int _mbsicmp(const unsigned char*,const unsigned char*);
|
||||
int _mbsicoll(const unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbsinc(const unsigned char*);
|
||||
MSVCRT(size_t) _mbslen(const unsigned char*);
|
||||
unsigned char* _mbslwr(unsigned char*);
|
||||
unsigned char* _mbsnbcat(unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
int _mbsnbcmp(const unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
int _mbsnbcoll(const unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
MSVCRT(size_t) _mbsnbcnt(const unsigned char*,MSVCRT(size_t));
|
||||
unsigned char* _mbsnbcpy(unsigned char*,const unsigned char*
|
||||
,MSVCRT(size_t));
|
||||
int _mbsnbicmp(const unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
int _mbsnbicoll(const unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
unsigned char* _mbsnbset(unsigned char*,unsigned int,MSVCRT(size_t))
|
||||
;
|
||||
unsigned char* _mbsncat(unsigned char*,const unsigned char*,
|
||||
MSVCRT(size_t));
|
||||
MSVCRT(size_t) _mbsnccnt(const unsigned char*,MSVCRT(size_t));
|
||||
int _mbsncmp(const unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
int _mbsncoll(const unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
unsigned char* _mbsncpy(unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
unsigned int _mbsnextc (const unsigned char*);
|
||||
int _mbsnicmp(const unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
int _mbsnicoll(const unsigned char*,const unsigned char*,MSVCRT(size_t));
|
||||
unsigned char* _mbsninc(const unsigned char*,MSVCRT(size_t));
|
||||
unsigned char* _mbsnset(unsigned char*,unsigned int,MSVCRT(size_t));
|
||||
unsigned char* _mbspbrk(const unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbsrchr(const unsigned char*,unsigned int);
|
||||
unsigned char* _mbsrev(unsigned char*);
|
||||
unsigned char* _mbsset(unsigned char*,unsigned int);
|
||||
MSVCRT(size_t) _mbsspn(const unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbsspnp(const unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbsstr(const unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbstok(unsigned char*,const unsigned char*);
|
||||
unsigned char* _mbsupr(unsigned char*);
|
||||
|
||||
#ifndef MSVCRT_MBLEADTRAIL_DEFINED
|
||||
#define MSVCRT_MBLEADTRAIL_DEFINED
|
||||
int _ismbblead(unsigned int);
|
||||
int _ismbbtrail(unsigned int);
|
||||
int _ismbslead(const unsigned char*,const unsigned char*);
|
||||
int _ismbstrail(const unsigned char*,const unsigned char*);
|
||||
#endif /* MSVCRT_MBLEADTRAIL_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_MBSTRING_H */
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* Heap definitions
|
||||
*
|
||||
* Copyright 2001 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_SEARCH_H
|
||||
#define __WINE_SEARCH_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_SIZE_T_DEFINED
|
||||
typedef unsigned int MSVCRT(size_t);
|
||||
#define MSVCRT_SIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void* _lfind(const void*,const void*,unsigned int*,unsigned int,
|
||||
int (*)(const void*,const void*));
|
||||
void* _lsearch(const void*,void*,unsigned int*,unsigned int,
|
||||
int (*)(const void*,const void*));
|
||||
void* MSVCRT(bsearch)(const void*,const void*,MSVCRT(size_t),MSVCRT(size_t),
|
||||
int (*)(const void*,const void*));
|
||||
void MSVCRT(qsort)(void*,MSVCRT(size_t),MSVCRT(size_t),
|
||||
int (*)(const void*,const void*));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
static inline void* lfind(const void* match, const void* start, unsigned int* array_size, unsigned int elem_size, int (*cf)(const void*,const void*)) { return _lfind(match, start, array_size, elem_size, cf); }
|
||||
static inline void* lsearch(const void* match, void* start, unsigned int* array_size, unsigned int elem_size, int (*cf)(const void*,const void*) ) { return _lsearch(match, start, array_size, elem_size, cf); }
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_SEARCH_H */
|
|
@ -1,81 +0,0 @@
|
|||
/*
|
||||
* Setjmp/Longjmp definitions
|
||||
*
|
||||
* Copyright 2001 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_SETJMP_H
|
||||
#define __WINE_SETJMP_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __i386__
|
||||
|
||||
typedef struct __JUMP_BUFFER
|
||||
{
|
||||
unsigned long Ebp;
|
||||
unsigned long Ebx;
|
||||
unsigned long Edi;
|
||||
unsigned long Esi;
|
||||
unsigned long Esp;
|
||||
unsigned long Eip;
|
||||
unsigned long Registration;
|
||||
unsigned long TryLevel;
|
||||
/* Start of new struct members */
|
||||
unsigned long Cookie;
|
||||
unsigned long UnwindFunc;
|
||||
unsigned long UnwindData[6];
|
||||
} _JUMP_BUFFER;
|
||||
|
||||
#endif /* __i386__ */
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#define _JBLEN 16
|
||||
#define _JBTYPE int
|
||||
typedef _JBTYPE jmp_buf[_JBLEN];
|
||||
#else
|
||||
#define MSVCRT__JBLEN 16
|
||||
#define MSVCRT__JBTYPE int
|
||||
typedef MSVCRT__JBTYPE MSVCRT_jmp_buf[MSVCRT__JBLEN];
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int MSVCRT(_setjmp)(MSVCRT(jmp_buf));
|
||||
int MSVCRT(longjmp)(MSVCRT(jmp_buf),int);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#define setjmp _setjmp
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_SETJMP_H */
|
|
@ -1,42 +0,0 @@
|
|||
/*
|
||||
* share.h
|
||||
*
|
||||
* Constants for file sharing functions.
|
||||
*
|
||||
* Derived from the Mingw32 header written by Colin Peters.
|
||||
* Modified for Wine use by Bill Medland
|
||||
* This file is in the public domain.
|
||||
*
|
||||
* Original header contained the following
|
||||
*
|
||||
* THIS SOFTWARE IS NOT COPYRIGHTED
|
||||
*
|
||||
* This source code is offered for use in the public domain. You may
|
||||
* use, modify or distribute it freely.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful but
|
||||
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
||||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __WINE_SHARE_H
|
||||
#define __WINE_SHARE_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#define SH_COMPAT 0x00 /* Compatibility */
|
||||
#define SH_DENYRW 0x10 /* Deny read/write */
|
||||
#define SH_DENYWR 0x20 /* Deny write */
|
||||
#define SH_DENYRD 0x30 /* Deny read */
|
||||
#define SH_DENYNO 0x40 /* Deny nothing */
|
||||
|
||||
#define _SH_COMPAT SH_COMPAT
|
||||
#define _SH_DENYRW SH_DENYRW
|
||||
#define _SH_DENYWR SH_DENYWR
|
||||
#define _SH_DENYRD SH_DENYRD
|
||||
#define _SH_DENYNO SH_DENYNO
|
||||
|
||||
#endif /* __WINE_SHARE_H_ */
|
|
@ -1,74 +0,0 @@
|
|||
/*
|
||||
* Time definitions
|
||||
*
|
||||
* Copyright 2000 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_STDDEF_H
|
||||
#define __WINE_STDDEF_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_PTRDIFF_T_DEFINED
|
||||
typedef int ptrdiff_t;
|
||||
#define MSVCRT_PTRDIFF_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_SIZE_T_DEFINED
|
||||
typedef unsigned int MSVCRT(size_t);
|
||||
#define MSVCRT_SIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#ifdef __cplusplus
|
||||
#define NULL 0
|
||||
#else
|
||||
#define NULL ((void *)0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define offsetof(s,m) (size_t)&(((s*)NULL)->m)
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
unsigned long __threadid();
|
||||
unsigned long __threadhandle();
|
||||
#define _threadid (__threadid())
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_STDDEF_H */
|
|
@ -1,283 +0,0 @@
|
|||
/*
|
||||
* Standard I/O definitions.
|
||||
*
|
||||
* Derived from the mingw header written by Colin Peters.
|
||||
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
||||
* This file is in the public domain.
|
||||
*/
|
||||
#ifndef __WINE_STDIO_H
|
||||
#define __WINE_STDIO_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef RC_INVOKED
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* file._flag flags */
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#define _IOREAD 0x0001
|
||||
#define _IOWRT 0x0002
|
||||
#define _IOMYBUF 0x0008
|
||||
#define _IOEOF 0x0010
|
||||
#define _IOERR 0x0020
|
||||
#define _IOSTRG 0x0040
|
||||
#define _IORW 0x0080
|
||||
#define _IOAPPEND 0x0200
|
||||
#else
|
||||
#define MSVCRT__IOREAD 0x0001
|
||||
#define MSVCRT__IOWRT 0x0002
|
||||
#define MSVCRT__IOMYBUF 0x0008
|
||||
#define MSVCRT__IOEOF 0x0010
|
||||
#define MSVCRT__IOERR 0x0020
|
||||
#define MSVCRT__IOSTRG 0x0040
|
||||
#define MSVCRT__IORW 0x0080
|
||||
#define MSVCRT__IOAPPEND 0x0200
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#ifndef NULL
|
||||
#ifdef __cplusplus
|
||||
#define NULL 0
|
||||
#else
|
||||
#define NULL ((void *)0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
|
||||
#define STDIN_FILENO 0
|
||||
#define STDOUT_FILENO 1
|
||||
#define STDERR_FILENO 2
|
||||
|
||||
/* more file._flag flags, but these conflict with Unix */
|
||||
#define _IOFBF 0x0000
|
||||
#define _IONBF 0x0004
|
||||
#define _IOLBF 0x0040
|
||||
|
||||
#define EOF (-1)
|
||||
#define FILENAME_MAX 260
|
||||
#define TMP_MAX 0x7fff
|
||||
#define FOPEN_MAX 20
|
||||
#define L_tmpnam 260
|
||||
|
||||
#define BUFSIZ 512
|
||||
|
||||
#ifndef SEEK_SET
|
||||
#define SEEK_SET 0
|
||||
#define SEEK_CUR 1
|
||||
#define SEEK_END 2
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
/* more file._flag flags, but these conflict with Unix */
|
||||
#define MSVCRT__IOFBF 0x0000
|
||||
#define MSVCRT__IONBF 0x0004
|
||||
#define MSVCRT__IOLBF 0x0040
|
||||
|
||||
#define MSVCRT_FILENAME_MAX 260
|
||||
#define MSVCRT_TMP_MAX 0x7fff
|
||||
|
||||
#define MSVCRT_EOF (-1)
|
||||
|
||||
#define MSVCRT_BUFSIZ 512
|
||||
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#ifndef MSVCRT_FILE_DEFINED
|
||||
#define MSVCRT_FILE_DEFINED
|
||||
typedef struct MSVCRT(_iobuf)
|
||||
{
|
||||
char* _ptr;
|
||||
int _cnt;
|
||||
char* _base;
|
||||
int _flag;
|
||||
int _file;
|
||||
int _charbuf;
|
||||
int _bufsiz;
|
||||
char* _tmpfname;
|
||||
} MSVCRT(FILE);
|
||||
#endif /* MSVCRT_FILE_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_FPOS_T_DEFINED
|
||||
typedef long MSVCRT(fpos_t);
|
||||
#define MSVCRT_FPOS_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_SIZE_T_DEFINED
|
||||
typedef unsigned int MSVCRT(size_t);
|
||||
#define MSVCRT_SIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCTYPE_T_DEFINED
|
||||
typedef MSVCRT(wchar_t) MSVCRT(wint_t);
|
||||
typedef MSVCRT(wchar_t) MSVCRT(wctype_t);
|
||||
#define MSVCRT_WCTYPE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_STDIO_DEFINED
|
||||
MSVCRT(FILE)* MSVCRT(__p__iob)(void);
|
||||
#define _iob (__p__iob())
|
||||
#endif /* MSVCRT_STDIO_DEFINED */
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#define stdin (_iob+STDIN_FILENO)
|
||||
#define stdout (_iob+STDOUT_FILENO)
|
||||
#define stderr (_iob+STDERR_FILENO)
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#ifndef MSVCRT_STDIO_DEFINED
|
||||
#define MSVCRT_STDIO_DEFINED
|
||||
int _fcloseall(void);
|
||||
//MSVCRT(FILE)* _fdopen(int,const char*);
|
||||
int _fgetchar(void);
|
||||
//int _filbuf(MSVCRT(FILE*));
|
||||
//int _fileno(MSVCRT(FILE)*);
|
||||
//int _flsbuf(int,MSVCRT(FILE)*);
|
||||
int _flushall(void);
|
||||
int _fputchar(int);
|
||||
MSVCRT(FILE)* _fsopen(const char*,const char*,int);
|
||||
int _getmaxstdio(void);
|
||||
//int _getw(MSVCRT(FILE)*);
|
||||
//int _pclose(MSVCRT(FILE)*);
|
||||
//MSVCRT(FILE)* _popen(const char*,const char*);
|
||||
//int _putw(int,MSVCRT(FILE)*);
|
||||
int _rmtmp(void);
|
||||
int _setmaxstdio(int);
|
||||
int _snprintf(char*,MSVCRT(size_t),const char*,...);
|
||||
char* _tempnam(const char*,const char*);
|
||||
int _unlink(const char*);
|
||||
int _vsnprintf(char*,MSVCRT(size_t),const char*,va_list);
|
||||
|
||||
void MSVCRT(clearerr)(MSVCRT(FILE)*);
|
||||
int MSVCRT(fclose)(MSVCRT(FILE)*);
|
||||
int MSVCRT(feof)(MSVCRT(FILE)*);
|
||||
int MSVCRT(ferror)(MSVCRT(FILE)*);
|
||||
int MSVCRT(fflush)(MSVCRT(FILE)*);
|
||||
int MSVCRT(fgetc)(MSVCRT(FILE)*);
|
||||
int MSVCRT(fgetpos)(MSVCRT(FILE)*,MSVCRT(fpos_t)*);
|
||||
char* MSVCRT(fgets)(char*,int,MSVCRT(FILE)*);
|
||||
MSVCRT(FILE)* MSVCRT(fopen)(const char*,const char*);
|
||||
int MSVCRT(fprintf)(MSVCRT(FILE)*,const char*,...);
|
||||
int MSVCRT(fputc)(int,MSVCRT(FILE)*);
|
||||
int MSVCRT(fputs)(const char*,MSVCRT(FILE)*);
|
||||
MSVCRT(size_t) MSVCRT(fread)(void*,MSVCRT(size_t),MSVCRT(size_t),MSVCRT(FILE)*);
|
||||
MSVCRT(FILE)* MSVCRT(freopen)(const char*,const char*,MSVCRT(FILE)*);
|
||||
int MSVCRT(fscanf)(MSVCRT(FILE)*,const char*,...);
|
||||
int MSVCRT(fseek)(MSVCRT(FILE)*,long,int);
|
||||
int MSVCRT(fsetpos)(MSVCRT(FILE)*,MSVCRT(fpos_t)*);
|
||||
long MSVCRT(ftell)(MSVCRT(FILE)*);
|
||||
MSVCRT(size_t) MSVCRT(fwrite)(const void*,MSVCRT(size_t),MSVCRT(size_t),MSVCRT(FILE)*);
|
||||
int MSVCRT(getc)(MSVCRT(FILE)*);
|
||||
int MSVCRT(getchar)(void);
|
||||
char* MSVCRT(gets)(char*);
|
||||
void MSVCRT(perror)(const char*);
|
||||
int MSVCRT(printf)(const char*,...);
|
||||
int MSVCRT(putc)(int,MSVCRT(FILE)*);
|
||||
int MSVCRT(putchar)(int);
|
||||
int MSVCRT(puts)(const char*);
|
||||
int MSVCRT(remove)(const char*);
|
||||
int MSVCRT(rename)(const char*,const char*);
|
||||
void MSVCRT(rewind)(MSVCRT(FILE)*);
|
||||
int MSVCRT(scanf)(const char*,...);
|
||||
void MSVCRT(setbuf)(MSVCRT(FILE)*,char*);
|
||||
int MSVCRT(setvbuf)(MSVCRT(FILE)*,char*,int,MSVCRT(size_t));
|
||||
int MSVCRT(sprintf)(char*,const char*,...);
|
||||
int MSVCRT(sscanf)(const char*,const char*,...);
|
||||
MSVCRT(FILE)* MSVCRT(tmpfile)(void);
|
||||
char* MSVCRT(tmpnam)(char*);
|
||||
int MSVCRT(ungetc)(int,MSVCRT(FILE)*);
|
||||
int MSVCRT(vfprintf)(MSVCRT(FILE)*,const char*,va_list);
|
||||
int MSVCRT(vprintf)(const char*,va_list);
|
||||
int MSVCRT(vsprintf)(char*,const char*,va_list);
|
||||
|
||||
#ifndef MSVCRT_WSTDIO_DEFINED
|
||||
#define MSVCRT_WSTDIO_DEFINED
|
||||
MSVCRT(wint_t) _fgetwchar(void);
|
||||
MSVCRT(wint_t) _fputwchar(MSVCRT(wint_t));
|
||||
MSVCRT(wchar_t)*_getws(MSVCRT(wchar_t)*);
|
||||
int _putws(const MSVCRT(wchar_t)*);
|
||||
int _snwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,...);
|
||||
int _vsnwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,va_list);
|
||||
//MSVCRT(FILE)* _wfdopen(int,const MSVCRT(wchar_t)*);
|
||||
//MSVCRT(FILE)* _wfopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
//MSVCRT(FILE)* _wfreopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
|
||||
//MSVCRT(FILE)* _wfsopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,int);
|
||||
void _wperror(const MSVCRT(wchar_t)*);
|
||||
//MSVCRT(FILE)* _wpopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
int _wremove(const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*_wtempnam(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*_wtmpnam(MSVCRT(wchar_t)*);
|
||||
|
||||
MSVCRT(wint_t) MSVCRT(fgetwc)(MSVCRT(FILE)*);
|
||||
MSVCRT(wchar_t)*MSVCRT(fgetws)(MSVCRT(wchar_t)*,int,MSVCRT(FILE)*);
|
||||
MSVCRT(wint_t) MSVCRT(fputwc)(MSVCRT(wint_t),MSVCRT(FILE)*);
|
||||
int MSVCRT(fputws)(const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
|
||||
int MSVCRT(fwprintf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,...);
|
||||
int MSVCRT(fputws)(const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
|
||||
int MSVCRT(fwscanf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,...);
|
||||
MSVCRT(wint_t) MSVCRT(getwc)(MSVCRT(FILE)*);
|
||||
MSVCRT(wint_t) MSVCRT(getwchar)(void);
|
||||
MSVCRT(wchar_t)*MSVCRT(getws)(MSVCRT(wchar_t)*);
|
||||
MSVCRT(wint_t) MSVCRT(putwc)(MSVCRT(wint_t),MSVCRT(FILE)*);
|
||||
MSVCRT(wint_t) MSVCRT(putwchar)(MSVCRT(wint_t));
|
||||
int MSVCRT(putws)(const MSVCRT(wchar_t)*);
|
||||
int MSVCRT(swprintf)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int MSVCRT(swscanf)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
MSVCRT(wint_t) MSVCRT(ungetwc)(MSVCRT(wint_t),MSVCRT(FILE)*);
|
||||
int MSVCRT(vfwprintf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,va_list);
|
||||
int MSVCRT(vswprintf)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,va_list);
|
||||
int MSVCRT(vwprintf)(const MSVCRT(wchar_t)*,va_list);
|
||||
int MSVCRT(wprintf)(const MSVCRT(wchar_t)*,...);
|
||||
int MSVCRT(wscanf)(const MSVCRT(wchar_t)*,...);
|
||||
#endif /* MSVCRT_WSTDIO_DEFINED */
|
||||
|
||||
#endif /* MSVCRT_STDIO_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
static inline MSVCRT(FILE)* fdopen(int fd, const char *mode) { return _fdopen(fd, mode); }
|
||||
static inline int fgetchar(void) { return _fgetchar(); }
|
||||
static inline int fileno(MSVCRT(FILE)* file) { return _fileno(file); }
|
||||
static inline int fputchar(int c) { return _fputchar(c); }
|
||||
static inline int pclose(MSVCRT(FILE)* file) { return _pclose(file); }
|
||||
static inline MSVCRT(FILE)* popen(const char* command, const char* mode) { return _popen(command, mode); }
|
||||
static inline char* tempnam(const char *dir, const char *prefix) { return _tempnam(dir, prefix); }
|
||||
#ifndef MSVCRT_UNLINK_DEFINED
|
||||
static inline int unlink(const char* path) { return _unlink(path); }
|
||||
#define MSVCRT_UNLINK_DEFINED
|
||||
#endif
|
||||
static inline int vsnprintf(char *buffer, size_t size, const char *format, va_list args) { return _vsnprintf(buffer,size,format,args); }
|
||||
|
||||
static inline MSVCRT(wint_t) fgetwchar(void) { return _fgetwchar(); }
|
||||
static inline MSVCRT(wint_t) fputwchar(MSVCRT(wint_t) wc) { return _fputwchar(wc); }
|
||||
static inline int getw(MSVCRT(FILE)* file) { return _getw(file); }
|
||||
static inline int putw(int val, MSVCRT(FILE)* file) { return _putw(val, file); }
|
||||
static inline MSVCRT(FILE)* wpopen(const MSVCRT(wchar_t)* command,const MSVCRT(wchar_t)* mode) { return _wpopen(command, mode); }
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_STDIO_H */
|
|
@ -1,32 +0,0 @@
|
|||
/*
|
||||
* _locking constants
|
||||
*
|
||||
* Copyright 2002 Bill Medland
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_SYS_LOCKING_H__
|
||||
#define __WINE_SYS_LOCKING_H__
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#define _LK_UNLCK 0
|
||||
#define _LK_LOCK 1
|
||||
#define _LK_NBLCK 2
|
||||
#define _LK_RLCK 3
|
||||
#define _LK_NBRLCK 4
|
||||
|
||||
#endif /* __WINE_SYS_LOCKING_H__ : Do not place anything after this #endif */
|
|
@ -1,160 +0,0 @@
|
|||
/*
|
||||
* _stat() definitions
|
||||
*
|
||||
* Derived from the mingw header written by Colin Peters.
|
||||
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
||||
* This file is in the public domain.
|
||||
*/
|
||||
#ifndef __WINE_SYS_STAT_H
|
||||
#define __WINE_SYS_STAT_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER
|
||||
# ifndef __int64
|
||||
# define __int64 long long
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_DEV_T_DEFINED
|
||||
typedef unsigned int _dev_t;
|
||||
#define MSVCRT_DEV_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_INO_T_DEFINED
|
||||
typedef unsigned short _ino_t;
|
||||
#define MSVCRT_INO_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_TIME_T_DEFINED
|
||||
typedef long MSVCRT(time_t);
|
||||
#define MSVCRT_TIME_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_OFF_T_DEFINED
|
||||
typedef int MSVCRT(_off_t);
|
||||
#define MSVCRT_OFF_T_DEFINED
|
||||
#endif
|
||||
|
||||
#define _S_IEXEC 0x0040
|
||||
#define _S_IWRITE 0x0080
|
||||
#define _S_IREAD 0x0100
|
||||
#define _S_IFIFO 0x1000
|
||||
#define _S_IFCHR 0x2000
|
||||
#define _S_IFDIR 0x4000
|
||||
#define _S_IFREG 0x8000
|
||||
#define _S_IFMT 0xF000
|
||||
|
||||
/* for FreeBSD */
|
||||
#undef st_atime
|
||||
#undef st_ctime
|
||||
#undef st_mtime
|
||||
|
||||
#ifndef MSVCRT_STAT_DEFINED
|
||||
#define MSVCRT_STAT_DEFINED
|
||||
|
||||
struct _stat {
|
||||
_dev_t st_dev;
|
||||
_ino_t st_ino;
|
||||
unsigned short st_mode;
|
||||
short st_nlink;
|
||||
short st_uid;
|
||||
short st_gid;
|
||||
_dev_t st_rdev;
|
||||
MSVCRT(_off_t) st_size;
|
||||
MSVCRT(time_t) st_atime;
|
||||
MSVCRT(time_t) st_mtime;
|
||||
MSVCRT(time_t) st_ctime;
|
||||
};
|
||||
|
||||
struct MSVCRT(stat) {
|
||||
_dev_t st_dev;
|
||||
_ino_t st_ino;
|
||||
unsigned short st_mode;
|
||||
short st_nlink;
|
||||
short st_uid;
|
||||
short st_gid;
|
||||
_dev_t st_rdev;
|
||||
MSVCRT(_off_t) st_size;
|
||||
MSVCRT(time_t) st_atime;
|
||||
MSVCRT(time_t) st_mtime;
|
||||
MSVCRT(time_t) st_ctime;
|
||||
};
|
||||
|
||||
struct _stati64 {
|
||||
_dev_t st_dev;
|
||||
_ino_t st_ino;
|
||||
unsigned short st_mode;
|
||||
short st_nlink;
|
||||
short st_uid;
|
||||
short st_gid;
|
||||
_dev_t st_rdev;
|
||||
__int64 st_size;
|
||||
MSVCRT(time_t) st_atime;
|
||||
MSVCRT(time_t) st_mtime;
|
||||
MSVCRT(time_t) st_ctime;
|
||||
};
|
||||
#endif /* MSVCRT_STAT_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int MSVCRT(_fstat)(int,struct _stat*);
|
||||
int MSVCRT(_stat)(const char*,struct _stat*);
|
||||
int _fstati64(int,struct _stati64*);
|
||||
int _stati64(const char*,struct _stati64*);
|
||||
int _umask(int);
|
||||
|
||||
#ifndef MSVCRT_WSTAT_DEFINED
|
||||
#define MSVCRT_WSTAT_DEFINED
|
||||
int _wstat(const MSVCRT(wchar_t)*,struct _stat*);
|
||||
int _wstati64(const MSVCRT(wchar_t)*,struct _stati64*);
|
||||
#endif /* MSVCRT_WSTAT_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#define S_IFMT _S_IFMT
|
||||
#define S_IFDIR _S_IFDIR
|
||||
#define S_IFCHR _S_IFCHR
|
||||
#define S_IFREG _S_IFREG
|
||||
#define S_IREAD _S_IREAD
|
||||
#define S_IWRITE _S_IWRITE
|
||||
#define S_IEXEC _S_IEXEC
|
||||
|
||||
#define S_ISCHR(m) (((m)&_S_IFMT) == _S_IFCHR)
|
||||
#define S_ISDIR(m) (((m)&_S_IFMT) == _S_IFDIR)
|
||||
#define S_ISFIFO(m) (((m)&_S_IFMT) == _S_IFIFO)
|
||||
#define S_ISREG(m) (((m)&_S_IFMT) == _S_IFREG)
|
||||
|
||||
static inline int fstat(int fd, struct stat* ptr) { return _fstat(fd, (struct _stat*)ptr); }
|
||||
static inline int stat(const char* path, struct stat* ptr) { return _stat(path, (struct _stat*)ptr); }
|
||||
#ifndef MSVCRT_UMASK_DEFINED
|
||||
static inline int umask(int fd) { return _umask(fd); }
|
||||
#define MSVCRT_UMASK_DEFINED
|
||||
#endif
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_SYS_STAT_H */
|
|
@ -1,68 +0,0 @@
|
|||
/*
|
||||
* Path and directory definitions
|
||||
*
|
||||
* Copyright 2000 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_SYS_TIMEB_H
|
||||
#define __WINE_SYS_TIMEB_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_TIME_T_DEFINED
|
||||
typedef long MSVCRT(time_t);
|
||||
#define MSVCRT_TIME_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_TIMEB_DEFINED
|
||||
#define MSVCRT_TIMEB_DEFINED
|
||||
struct _timeb
|
||||
{
|
||||
MSVCRT(time_t) time;
|
||||
unsigned short millitm;
|
||||
short timezone;
|
||||
short dstflag;
|
||||
};
|
||||
#endif /* MSVCRT_TIMEB_DEFINED */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void _ftime(struct _timeb*);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#define timeb _timeb
|
||||
|
||||
static inline void ftime(struct _timeb* ptr) { return _ftime(ptr); }
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_SYS_TIMEB_H */
|
|
@ -1,74 +0,0 @@
|
|||
/*
|
||||
* _stat() definitions
|
||||
*
|
||||
* Copyright 2000 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_SYS_TYPES_H
|
||||
#define __WINE_SYS_TYPES_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_DEV_T_DEFINED
|
||||
typedef unsigned int _dev_t;
|
||||
#define MSVCRT_DEV_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_INO_T_DEFINED
|
||||
typedef unsigned short _ino_t;
|
||||
#define MSVCRT_INO_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_MODE_T_DEFINED
|
||||
typedef unsigned short _mode_t;
|
||||
#define MSVCRT_MODE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_OFF_T_DEFINED
|
||||
typedef int MSVCRT(_off_t);
|
||||
#define MSVCRT_OFF_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_TIME_T_DEFINED
|
||||
typedef long MSVCRT(time_t);
|
||||
#define MSVCRT_TIME_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#ifndef MSVCRT_BSD_TYPES_DEFINED
|
||||
typedef unsigned char u_char;
|
||||
typedef unsigned short u_short;
|
||||
typedef unsigned int u_int;
|
||||
typedef unsigned long u_long;
|
||||
#define MSVCRT_BSD_TYPES_DEFINED
|
||||
#endif
|
||||
|
||||
#define dev_t _dev_t
|
||||
#define ino_t _ino_t
|
||||
#define mode_t _mode_t
|
||||
#define off_t _off_t
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_SYS_TYPES_H */
|
|
@ -1 +0,0 @@
|
|||
#include <unistd.h>
|
|
@ -1,75 +0,0 @@
|
|||
/*
|
||||
* Path and directory definitions
|
||||
*
|
||||
* Copyright 2000 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_SYS_UTIME_H
|
||||
#define __WINE_SYS_UTIME_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_TIME_T_DEFINED
|
||||
typedef long MSVCRT(time_t);
|
||||
#define MSVCRT_TIME_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_UTIMBUF_DEFINED
|
||||
#define MSVCRT_UTIMBUF_DEFINED
|
||||
struct _utimbuf
|
||||
{
|
||||
MSVCRT(time_t) actime;
|
||||
MSVCRT(time_t) modtime;
|
||||
};
|
||||
#endif /* MSVCRT_UTIMBUF_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int _futime(int,struct _utimbuf*);
|
||||
int _utime(const char*,struct _utimbuf*);
|
||||
|
||||
int _wutime(const MSVCRT(wchar_t)*,struct _utimbuf*);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
#define utimbuf _utimbuf
|
||||
|
||||
static inline int utime(const char* path, struct _utimbuf* buf) { return _utime(path, buf); }
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#endif /* __WINE_SYS_UTIME_H */
|
|
@ -1,119 +0,0 @@
|
|||
/*
|
||||
* Time definitions
|
||||
*
|
||||
* Copyright 2000 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_TIME_H
|
||||
#define __WINE_TIME_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_SIZE_T_DEFINED
|
||||
typedef unsigned int MSVCRT(size_t);
|
||||
#define MSVCRT_SIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_TIME_T_DEFINED
|
||||
typedef long MSVCRT(time_t);
|
||||
#define MSVCRT_TIME_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_CLOCK_T_DEFINED
|
||||
typedef long MSVCRT(clock_t);
|
||||
#define MSVCRT_CLOCK_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#ifdef __cplusplus
|
||||
#define NULL 0
|
||||
#else
|
||||
#define NULL ((void *)0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef CLOCKS_PER_SEC
|
||||
#define CLOCKS_PER_SEC 1000
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_TM_DEFINED
|
||||
#define MSVCRT_TM_DEFINED
|
||||
struct MSVCRT(tm) {
|
||||
int tm_sec;
|
||||
int tm_min;
|
||||
int tm_hour;
|
||||
int tm_mday;
|
||||
int tm_mon;
|
||||
int tm_year;
|
||||
int tm_wday;
|
||||
int tm_yday;
|
||||
int tm_isdst;
|
||||
};
|
||||
#endif /* MSVCRT_TM_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* FIXME: Must do something for _daylight, _dstbias, _timezone, _tzname */
|
||||
|
||||
|
||||
unsigned _getsystime(struct MSVCRT(tm)*);
|
||||
unsigned _setsystime(struct MSVCRT(tm)*,unsigned);
|
||||
char* _strdate(char*);
|
||||
char* _strtime(char*);
|
||||
void _tzset(void);
|
||||
|
||||
char* MSVCRT(asctime)(const struct MSVCRT(tm)*);
|
||||
MSVCRT(clock_t) MSVCRT(clock)(void);
|
||||
char* MSVCRT(ctime)(const MSVCRT(time_t)*);
|
||||
double MSVCRT(difftime)(MSVCRT(time_t),MSVCRT(time_t));
|
||||
struct MSVCRT(tm)* MSVCRT(gmtime)(const MSVCRT(time_t)*);
|
||||
struct MSVCRT(tm)* MSVCRT(localtime)(const MSVCRT(time_t)*);
|
||||
MSVCRT(time_t) MSVCRT(mktime)(struct MSVCRT(tm)*);
|
||||
size_t MSVCRT(strftime)(char*,size_t,const char*,const struct MSVCRT(tm)*);
|
||||
MSVCRT(time_t) MSVCRT(time)(MSVCRT(time_t)*);
|
||||
|
||||
#ifndef MSVCRT_WTIME_DEFINED
|
||||
#define MSVCRT_WTIME_DEFINED
|
||||
MSVCRT(wchar_t)*_wasctime(const struct MSVCRT(tm)*);
|
||||
MSVCRT(size_t) wcsftime(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,const struct MSVCRT(tm)*);
|
||||
MSVCRT(wchar_t)*_wctime(const MSVCRT(time_t)*);
|
||||
MSVCRT(wchar_t)*_wstrdate(MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*_wstrtime(MSVCRT(wchar_t)*);
|
||||
#endif /* MSVCRT_WTIME_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_TIME_H */
|
|
@ -1,2 +0,0 @@
|
|||
#include <io.h>
|
||||
#include <process.h>
|
|
@ -1,395 +0,0 @@
|
|||
/*
|
||||
* Unicode definitions
|
||||
*
|
||||
* Derived from the mingw header written by Colin Peters.
|
||||
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
||||
* This file is in the public domain.
|
||||
*/
|
||||
#ifndef __WINE_WCHAR_H
|
||||
#define __WINE_WCHAR_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#ifdef __cplusplus
|
||||
#define NULL 0
|
||||
#else
|
||||
#define NULL ((void *)0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define WCHAR_MIN 0
|
||||
#define WCHAR_MAX ((MSVCRT(wchar_t))-1)
|
||||
|
||||
typedef int MSVCRT(mbstate_t);
|
||||
|
||||
#ifndef MSVCRT_SIZE_T_DEFINED
|
||||
typedef unsigned int MSVCRT(size_t);
|
||||
#define MSVCRT_SIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCTYPE_T_DEFINED
|
||||
typedef MSVCRT(wchar_t) MSVCRT(wint_t);
|
||||
typedef MSVCRT(wchar_t) MSVCRT(wctype_t);
|
||||
#define MSVCRT_WCTYPE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER
|
||||
# ifndef __int64
|
||||
# define __int64 long long
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
# ifndef WEOF
|
||||
# define WEOF (wint_t)(0xFFFF)
|
||||
# endif
|
||||
#else
|
||||
# ifndef MSVCRT_WEOF
|
||||
# define MSVCRT_WEOF (MSVCRT_wint_t)(0xFFFF)
|
||||
# endif
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#ifndef MSVCRT_FSIZE_T_DEFINED
|
||||
typedef unsigned long _fsize_t;
|
||||
#define MSVCRT_FSIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_DEV_T_DEFINED
|
||||
typedef unsigned int _dev_t;
|
||||
#define MSVCRT_DEV_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_INO_T_DEFINED
|
||||
typedef unsigned short _ino_t;
|
||||
#define MSVCRT_INO_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_OFF_T_DEFINED
|
||||
typedef int MSVCRT(_off_t);
|
||||
#define MSVCRT_OFF_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_TIME_T_DEFINED
|
||||
typedef long MSVCRT(time_t);
|
||||
#define MSVCRT_TIME_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_TM_DEFINED
|
||||
#define MSVCRT_TM_DEFINED
|
||||
struct MSVCRT(tm) {
|
||||
int tm_sec;
|
||||
int tm_min;
|
||||
int tm_hour;
|
||||
int tm_mday;
|
||||
int tm_mon;
|
||||
int tm_year;
|
||||
int tm_wday;
|
||||
int tm_yday;
|
||||
int tm_isdst;
|
||||
};
|
||||
#endif /* MSVCRT_TM_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_FILE_DEFINED
|
||||
#define MSVCRT_FILE_DEFINED
|
||||
typedef struct MSVCRT(_iobuf)
|
||||
{
|
||||
char* _ptr;
|
||||
int _cnt;
|
||||
char* _base;
|
||||
int _flag;
|
||||
int _file;
|
||||
int _charbuf;
|
||||
int _bufsiz;
|
||||
char* _tmpfname;
|
||||
} MSVCRT(FILE);
|
||||
#endif /* MSVCRT_FILE_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WFINDDATA_T_DEFINED
|
||||
#define MSVCRT_WFINDDATA_T_DEFINED
|
||||
|
||||
struct _wfinddata_t {
|
||||
unsigned attrib;
|
||||
MSVCRT(time_t) time_create;
|
||||
MSVCRT(time_t) time_access;
|
||||
MSVCRT(time_t) time_write;
|
||||
_fsize_t size;
|
||||
MSVCRT(wchar_t) name[260];
|
||||
};
|
||||
|
||||
struct _wfinddatai64_t {
|
||||
unsigned attrib;
|
||||
MSVCRT(time_t) time_create;
|
||||
MSVCRT(time_t) time_access;
|
||||
MSVCRT(time_t) time_write;
|
||||
__int64 size;
|
||||
MSVCRT(wchar_t) name[260];
|
||||
};
|
||||
|
||||
#endif /* MSVCRT_WFINDDATA_T_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_STAT_DEFINED
|
||||
#define MSVCRT_STAT_DEFINED
|
||||
|
||||
struct _stat {
|
||||
_dev_t st_dev;
|
||||
_ino_t st_ino;
|
||||
unsigned short st_mode;
|
||||
short st_nlink;
|
||||
short st_uid;
|
||||
short st_gid;
|
||||
_dev_t st_rdev;
|
||||
MSVCRT(_off_t) st_size;
|
||||
MSVCRT(time_t) st_atime;
|
||||
MSVCRT(time_t) st_mtime;
|
||||
MSVCRT(time_t) st_ctime;
|
||||
};
|
||||
|
||||
struct _stati64 {
|
||||
_dev_t st_dev;
|
||||
_ino_t st_ino;
|
||||
unsigned short st_mode;
|
||||
short st_nlink;
|
||||
short st_uid;
|
||||
short st_gid;
|
||||
_dev_t st_rdev;
|
||||
__int64 st_size;
|
||||
MSVCRT(time_t) st_atime;
|
||||
MSVCRT(time_t) st_mtime;
|
||||
MSVCRT(time_t) st_ctime;
|
||||
};
|
||||
#endif /* MSVCRT_STAT_DEFINED */
|
||||
|
||||
/* ASCII char classification table - binary compatible */
|
||||
#define _UPPER 0x0001 /* C1_UPPER */
|
||||
#define _LOWER 0x0002 /* C1_LOWER */
|
||||
#define _DIGIT 0x0004 /* C1_DIGIT */
|
||||
#define _SPACE 0x0008 /* C1_SPACE */
|
||||
#define _PUNCT 0x0010 /* C1_PUNCT */
|
||||
#define _CONTROL 0x0020 /* C1_CNTRL */
|
||||
#define _BLANK 0x0040 /* C1_BLANK */
|
||||
#define _HEX 0x0080 /* C1_XDIGIT */
|
||||
#define _LEADBYTE 0x8000
|
||||
#define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
|
||||
|
||||
#ifndef MSVCRT_WCTYPE_DEFINED
|
||||
#define MSVCRT_WCTYPE_DEFINED
|
||||
int MSVCRT(is_wctype)(MSVCRT(wint_t),MSVCRT(wctype_t));
|
||||
int MSVCRT(isleadbyte)(int);
|
||||
int MSVCRT(iswalnum)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswalpha)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswascii)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswcntrl)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswctype)(MSVCRT(wint_t),MSVCRT(wctype_t));
|
||||
int MSVCRT(iswdigit)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswgraph)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswlower)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswprint)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswpunct)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswspace)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswupper)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswxdigit)(MSVCRT(wint_t));
|
||||
MSVCRT(wchar_t) MSVCRT(towlower)(MSVCRT(wchar_t));
|
||||
MSVCRT(wchar_t) MSVCRT(towupper)(MSVCRT(wchar_t));
|
||||
#endif /* MSVCRT_WCTYPE_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WDIRECT_DEFINED
|
||||
#define MSVCRT_WDIRECT_DEFINED
|
||||
int _wchdir(const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)* _wgetcwd(MSVCRT(wchar_t)*,int);
|
||||
MSVCRT(wchar_t)* _wgetdcwd(int,MSVCRT(wchar_t)*,int);
|
||||
int _wmkdir(const MSVCRT(wchar_t)*);
|
||||
int _wrmdir(const MSVCRT(wchar_t)*);
|
||||
#endif /* MSVCRT_WDIRECT_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WIO_DEFINED
|
||||
#define MSVCRT_WIO_DEFINED
|
||||
int _waccess(const MSVCRT(wchar_t)*,int);
|
||||
int _wchmod(const MSVCRT(wchar_t)*,int);
|
||||
int _wcreat(const MSVCRT(wchar_t)*,int);
|
||||
long _wfindfirst(const MSVCRT(wchar_t)*,struct _wfinddata_t*);
|
||||
long _wfindfirsti64(const MSVCRT(wchar_t)*, struct _wfinddatai64_t*);
|
||||
int _wfindnext(long,struct _wfinddata_t*);
|
||||
int _wfindnexti64(long, struct _wfinddatai64_t*);
|
||||
MSVCRT(wchar_t)*_wmktemp(MSVCRT(wchar_t)*);
|
||||
int _wopen(const MSVCRT(wchar_t)*,int,...);
|
||||
int _wrename(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
int _wsopen(const MSVCRT(wchar_t)*,int,int,...);
|
||||
int _wunlink(const MSVCRT(wchar_t)*);
|
||||
#endif /* MSVCRT_WIO_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WLOCALE_DEFINED
|
||||
#define MSVCRT_WLOCALE_DEFINED
|
||||
MSVCRT(wchar_t)* _wsetlocale(int,const MSVCRT(wchar_t)*);
|
||||
#endif /* MSVCRT_WLOCALE_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WPROCESS_DEFINED
|
||||
#define MSVCRT_WPROCESS_DEFINED
|
||||
int _wexecl(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int _wexecle(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int _wexeclp(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int _wexeclpe(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int _wexecv(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)* const *);
|
||||
int _wexecve(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)* const *,const MSVCRT(wchar_t)* const *);
|
||||
int _wexecvp(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)* const *);
|
||||
int _wexecvpe(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)* const *,const MSVCRT(wchar_t)* const *);
|
||||
int _wspawnl(int,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int _wspawnle(int,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int _wspawnlp(int,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int _wspawnlpe(int,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int _wspawnv(int,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)* const *);
|
||||
int _wspawnve(int,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)* const *,const MSVCRT(wchar_t)* const *);
|
||||
int _wspawnvp(int,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)* const *);
|
||||
int _wspawnvpe(int,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)* const *,const MSVCRT(wchar_t)* const *);
|
||||
int _wsystem(const MSVCRT(wchar_t)*);
|
||||
#endif /* MSVCRT_WPROCESS_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WSTAT_DEFINED
|
||||
#define MSVCRT_WSTAT_DEFINED
|
||||
int _wstat(const MSVCRT(wchar_t)*,struct _stat*);
|
||||
int _wstati64(const MSVCRT(wchar_t)*,struct _stati64*);
|
||||
#endif /* MSVCRT_WSTAT_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WSTDIO_DEFINED
|
||||
#define MSVCRT_WSTDIO_DEFINED
|
||||
MSVCRT(wint_t) _fgetwchar(void);
|
||||
MSVCRT(wint_t) _fputwchar(MSVCRT(wint_t));
|
||||
MSVCRT(wchar_t)*_getws(MSVCRT(wchar_t)*);
|
||||
int _putws(const MSVCRT(wchar_t)*);
|
||||
int _snwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,...);
|
||||
int _vsnwprintf(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,va_list);
|
||||
MSVCRT(FILE)* _wfdopen(int,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(FILE)* _wfopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(FILE)* _wfreopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
|
||||
MSVCRT(FILE)* _wfsopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,int);
|
||||
void _wperror(const MSVCRT(wchar_t)*);
|
||||
MSVCRT(FILE)* _wpopen(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
int _wremove(const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*_wtempnam(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*_wtmpnam(MSVCRT(wchar_t)*);
|
||||
|
||||
MSVCRT(wint_t) MSVCRT(fgetwc)(MSVCRT(FILE)*);
|
||||
MSVCRT(wchar_t)*MSVCRT(fgetws)(MSVCRT(wchar_t)*,int,MSVCRT(FILE)*);
|
||||
MSVCRT(wint_t) MSVCRT(fputwc)(MSVCRT(wint_t),MSVCRT(FILE)*);
|
||||
int MSVCRT(fputws)(const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
|
||||
int MSVCRT(fwprintf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,...);
|
||||
int MSVCRT(fputws)(const MSVCRT(wchar_t)*,MSVCRT(FILE)*);
|
||||
int MSVCRT(fwscanf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,...);
|
||||
MSVCRT(wint_t) MSVCRT(getwc)(MSVCRT(FILE)*);
|
||||
MSVCRT(wint_t) MSVCRT(getwchar)(void);
|
||||
MSVCRT(wchar_t)*MSVCRT(getws)(MSVCRT(wchar_t)*);
|
||||
MSVCRT(wint_t) MSVCRT(putwc)(MSVCRT(wint_t),MSVCRT(FILE)*);
|
||||
MSVCRT(wint_t) MSVCRT(putwchar)(MSVCRT(wint_t));
|
||||
int MSVCRT(putws)(const MSVCRT(wchar_t)*);
|
||||
int MSVCRT(swprintf)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
int MSVCRT(swscanf)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,...);
|
||||
MSVCRT(wint_t) MSVCRT(ungetwc)(MSVCRT(wint_t),MSVCRT(FILE)*);
|
||||
int MSVCRT(vfwprintf)(MSVCRT(FILE)*,const MSVCRT(wchar_t)*,va_list);
|
||||
int MSVCRT(vswprintf)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,va_list);
|
||||
int MSVCRT(vwprintf)(const MSVCRT(wchar_t)*,va_list);
|
||||
int MSVCRT(wprintf)(const MSVCRT(wchar_t)*,...);
|
||||
int MSVCRT(wscanf)(const MSVCRT(wchar_t)*,...);
|
||||
#endif /* MSVCRT_WSTDIO_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WSTDLIB_DEFINED
|
||||
#define MSVCRT_WSTDLIB_DEFINED
|
||||
MSVCRT(wchar_t)*_itow(int,MSVCRT(wchar_t)*,int);
|
||||
MSVCRT(wchar_t)*_i64tow(__int64,MSVCRT(wchar_t)*,int);
|
||||
MSVCRT(wchar_t)*_ltow(long,MSVCRT(wchar_t)*,int);
|
||||
MSVCRT(wchar_t)*_ui64tow(unsigned __int64,MSVCRT(wchar_t)*,int);
|
||||
MSVCRT(wchar_t)*_ultow(unsigned long,MSVCRT(wchar_t)*,int);
|
||||
MSVCRT(wchar_t)*_wfullpath(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,size_t);
|
||||
MSVCRT(wchar_t)*_wgetenv(const MSVCRT(wchar_t)*);
|
||||
void _wmakepath(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
void _wperror(const MSVCRT(wchar_t)*);
|
||||
int _wputenv(const MSVCRT(wchar_t)*);
|
||||
void _wsearchenv(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(wchar_t)*);
|
||||
void _wsplitpath(const MSVCRT(wchar_t)*,MSVCRT(wchar_t)*,MSVCRT(wchar_t)*,MSVCRT(wchar_t)*,MSVCRT(wchar_t)*);
|
||||
int _wsystem(const MSVCRT(wchar_t)*);
|
||||
int _wtoi(const MSVCRT(wchar_t)*);
|
||||
__int64 _wtoi64(const MSVCRT(wchar_t)*);
|
||||
long _wtol(const MSVCRT(wchar_t)*);
|
||||
|
||||
MSVCRT(size_t) MSVCRT(mbstowcs)(MSVCRT(wchar_t)*,const char*,MSVCRT(size_t));
|
||||
int MSVCRT(mbtowc)(MSVCRT(wchar_t)*,const char*,MSVCRT(size_t));
|
||||
double MSVCRT(wcstod)(const MSVCRT(wchar_t)*,MSVCRT(wchar_t)**);
|
||||
long MSVCRT(wcstol)(const MSVCRT(wchar_t)*,MSVCRT(wchar_t)**,int);
|
||||
MSVCRT(size_t) MSVCRT(wcstombs)(char*,const MSVCRT(wchar_t)*,MSVCRT(size_t));
|
||||
unsigned long MSVCRT(wcstoul)(const MSVCRT(wchar_t)*,MSVCRT(wchar_t)**,int);
|
||||
int MSVCRT(wctomb)(char*,MSVCRT(wchar_t));
|
||||
#endif /* MSVCRT_WSTDLIB_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WSTRING_DEFINED
|
||||
#define MSVCRT_WSTRING_DEFINED
|
||||
MSVCRT(wchar_t)*_wcsdup(const MSVCRT(wchar_t)*);
|
||||
int _wcsicmp(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
int _wcsicoll(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*_wcslwr(MSVCRT(wchar_t)*);
|
||||
int _wcsnicmp(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(size_t));
|
||||
MSVCRT(wchar_t)*_wcsnset(MSVCRT(wchar_t)*,MSVCRT(wchar_t),MSVCRT(size_t));
|
||||
MSVCRT(wchar_t)*_wcsrev(MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*_wcsset(MSVCRT(wchar_t)*,MSVCRT(wchar_t));
|
||||
MSVCRT(wchar_t)*_wcsupr(MSVCRT(wchar_t)*);
|
||||
|
||||
MSVCRT(wchar_t)*MSVCRT(wcscat)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*MSVCRT(wcschr)(const MSVCRT(wchar_t)*,MSVCRT(wchar_t));
|
||||
int MSVCRT(wcscmp)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
int MSVCRT(wcscoll)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*MSVCRT(wcscpy)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(size_t) MSVCRT(wcscspn)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(size_t) MSVCRT(wcslen)(const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*MSVCRT(wcsncat)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(size_t));
|
||||
int MSVCRT(wcsncmp)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(size_t));
|
||||
MSVCRT(wchar_t)*MSVCRT(wcsncpy)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(size_t));
|
||||
MSVCRT(wchar_t)*MSVCRT(wcspbrk)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*MSVCRT(wcsrchr)(const MSVCRT(wchar_t)*,MSVCRT(wchar_t) wcFor);
|
||||
MSVCRT(size_t) MSVCRT(wcsspn)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*MSVCRT(wcsstr)(const MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*MSVCRT(wcstok)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*);
|
||||
MSVCRT(size_t) MSVCRT(wcsxfrm)(MSVCRT(wchar_t)*,const MSVCRT(wchar_t)*,MSVCRT(size_t));
|
||||
#endif /* MSVCRT_WSTRING_DEFINED */
|
||||
|
||||
#ifndef MSVCRT_WTIME_DEFINED
|
||||
#define MSVCRT_WTIME_DEFINED
|
||||
MSVCRT(wchar_t)*_wasctime(const struct MSVCRT(tm)*);
|
||||
MSVCRT(size_t) wcsftime(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,const struct MSVCRT(tm)*);
|
||||
MSVCRT(wchar_t)*_wctime(const MSVCRT(time_t)*);
|
||||
MSVCRT(wchar_t)*_wstrdate(MSVCRT(wchar_t)*);
|
||||
MSVCRT(wchar_t)*_wstrtime(MSVCRT(wchar_t)*);
|
||||
#endif /* MSVCRT_WTIME_DEFINED */
|
||||
|
||||
MSVCRT(wchar_t) btowc(int);
|
||||
MSVCRT(size_t) mbrlen(const char *,MSVCRT(size_t),MSVCRT(mbstate_t)*);
|
||||
MSVCRT(size_t) mbrtowc(MSVCRT(wchar_t)*,const char*,MSVCRT(size_t),MSVCRT(mbstate_t)*);
|
||||
MSVCRT(size_t) mbsrtowcs(MSVCRT(wchar_t)*,const char**,MSVCRT(size_t),MSVCRT(mbstate_t)*);
|
||||
MSVCRT(size_t) wcrtomb(char*,MSVCRT(wchar_t),MSVCRT(mbstate_t)*);
|
||||
MSVCRT(size_t) wcsrtombs(char*,const MSVCRT(wchar_t)**,MSVCRT(size_t),MSVCRT(mbstate_t)*);
|
||||
int wctob(MSVCRT(wint_t));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_WCHAR_H */
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Unicode definitions
|
||||
*
|
||||
* Copyright 2000 Francois Gouget.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef __WINE_WCTYPE_H
|
||||
#define __WINE_WCTYPE_H
|
||||
#ifndef __WINE_USE_MSVCRT
|
||||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT
|
||||
# ifdef USE_MSVCRT_PREFIX
|
||||
# define MSVCRT(x) MSVCRT_##x
|
||||
# else
|
||||
# define MSVCRT(x) x
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCHAR_T_DEFINED
|
||||
#define MSVCRT_WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
typedef unsigned short MSVCRT(wchar_t);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* ASCII char classification table - binary compatible */
|
||||
#define _UPPER 0x0001 /* C1_UPPER */
|
||||
#define _LOWER 0x0002 /* C1_LOWER */
|
||||
#define _DIGIT 0x0004 /* C1_DIGIT */
|
||||
#define _SPACE 0x0008 /* C1_SPACE */
|
||||
#define _PUNCT 0x0010 /* C1_PUNCT */
|
||||
#define _CONTROL 0x0020 /* C1_CNTRL */
|
||||
#define _BLANK 0x0040 /* C1_BLANK */
|
||||
#define _HEX 0x0080 /* C1_XDIGIT */
|
||||
#define _LEADBYTE 0x8000
|
||||
#define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
# ifndef WEOF
|
||||
# define WEOF (wint_t)(0xFFFF)
|
||||
# endif
|
||||
#else
|
||||
# ifndef MSVCRT_WEOF
|
||||
# define MSVCRT_WEOF (MSVCRT_wint_t)(0xFFFF)
|
||||
# endif
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#ifndef MSVCRT_WCTYPE_T_DEFINED
|
||||
typedef MSVCRT(wchar_t) MSVCRT(wint_t);
|
||||
typedef MSVCRT(wchar_t) MSVCRT(wctype_t);
|
||||
#define MSVCRT_WCTYPE_T_DEFINED
|
||||
#endif
|
||||
|
||||
/* FIXME: there's something to do with __p__pctype and __p__pwctype */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef MSVCRT_WCTYPE_DEFINED
|
||||
#define MSVCRT_WCTYPE_DEFINED
|
||||
int MSVCRT(is_wctype)(MSVCRT(wint_t),MSVCRT(wctype_t));
|
||||
int MSVCRT(isleadbyte)(int);
|
||||
int MSVCRT(iswalnum)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswalpha)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswascii)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswcntrl)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswctype)(MSVCRT(wint_t),MSVCRT(wctype_t));
|
||||
int MSVCRT(iswdigit)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswgraph)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswlower)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswprint)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswpunct)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswspace)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswupper)(MSVCRT(wint_t));
|
||||
int MSVCRT(iswxdigit)(MSVCRT(wint_t));
|
||||
MSVCRT(wchar_t) MSVCRT(towlower)(MSVCRT(wchar_t));
|
||||
MSVCRT(wchar_t) MSVCRT(towupper)(MSVCRT(wchar_t));
|
||||
#endif /* MSVCRT_WCTYPE_DEFINED */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __WINE_WCTYPE_H */
|
|
@ -22,7 +22,7 @@
|
|||
#include "msvcrt.h"
|
||||
|
||||
#include "msvcrt/malloc.h"
|
||||
#include "msvcrt/process.h"
|
||||
#include "process.h"
|
||||
|
||||
#include "wine/debug.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue