mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Compile using gcc 3.0
Fixed alot of warnings when using gcc 3.0 svn path=/trunk/; revision=2255
This commit is contained in:
parent
09237b9213
commit
2eb7adef67
183 changed files with 244 additions and 246 deletions
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* entry.c
|
||||
*
|
||||
* $Revision: 1.15 $
|
||||
* $Author: jfilby $
|
||||
* $Date: 2001/07/01 14:32:47 $
|
||||
* $Revision: 1.16 $
|
||||
* $Author: chorns $
|
||||
* $Date: 2001/09/23 22:14:10 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -487,3 +487,4 @@ ULONG VGADDIGetModes(IN HANDLE Driver,
|
|||
}
|
||||
|
||||
/* EOF */
|
||||
|
||||
|
|
|
@ -34,4 +34,4 @@ BEGIN
|
|||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
END
|
||||
|
|
|
@ -34,4 +34,4 @@ BEGIN
|
|||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
END
|
||||
|
|
|
@ -22,6 +22,4 @@ typedef struct {
|
|||
unsigned int empty:16;
|
||||
} long_double_t;
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -44,4 +44,4 @@ int _ismbbkana( unsigned char c );
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -105,4 +105,4 @@ int _ismbstrail( const unsigned char *s, const unsigned char *c);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -32,4 +32,4 @@ void *_lsearch(const void *, void *, size_t *,
|
|||
//void twalk(const void *,
|
||||
// void (*)(const void *, VISIT, int ));
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.4 $
|
||||
* $Revision: 1.5 $
|
||||
* $Author: chorns $
|
||||
* $Date: 2000/12/08 22:09:17 $
|
||||
* $Date: 2001/09/23 22:14:02 $
|
||||
*
|
||||
*/
|
||||
/* Appropriated for Reactos Crtdll by Ariadne */
|
||||
|
@ -189,4 +189,4 @@ wchar_t* wcsupr (wchar_t* wsToConvert);
|
|||
|
||||
#ifdef __cplusplus
|
||||
}; /* extern "c" */
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: haltypes.h,v 1.1 2001/08/27 01:18:57 ekohl Exp $
|
||||
/* $Id: haltypes.h,v 1.2 2001/09/23 22:14:03 chorns Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -273,4 +273,4 @@ extern ULONG IMPORTED KdComPortInUse;
|
|||
|
||||
#endif /* __INCLUDE_DDK_HALTYPES_H */
|
||||
|
||||
/* EOF */
|
||||
/* EOF */
|
||||
|
|
|
@ -22,6 +22,4 @@ typedef struct {
|
|||
unsigned int empty:16;
|
||||
} long_double_t;
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -46,4 +46,4 @@ int _ismbbkana( unsigned char c );
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -105,4 +105,4 @@ int _ismbstrail( const unsigned char *s, const unsigned char *c);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -32,4 +32,4 @@ void *_lsearch(const void *, void *, size_t *,
|
|||
//void twalk(const void *,
|
||||
// void (*)(const void *, VISIT, int ));
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
* $Author: ekohl $
|
||||
* $Date: 2000/12/03 17:49:21 $
|
||||
* $Revision: 1.2 $
|
||||
* $Author: chorns $
|
||||
* $Date: 2001/09/23 22:14:03 $
|
||||
*
|
||||
*/
|
||||
/* Appropriated for Reactos Crtdll by Ariadne */
|
||||
|
@ -191,4 +191,4 @@ wchar_t* wcsupr (wchar_t* wsToConvert);
|
|||
|
||||
#ifdef __cplusplus
|
||||
extern "C" }
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -44,18 +44,18 @@ static inline void __put_user(unsigned long x, void * y, int size)
|
|||
{
|
||||
switch (size) {
|
||||
case 1:
|
||||
__asm__ ("movb %b1,%%fs:%0"
|
||||
:"=m" (*__sd(y))
|
||||
__asm__ ("movb %b1,%%fs:%0" \
|
||||
:"=m" (*__sd(y)) \
|
||||
:"iq" ((unsigned char) x), "m" (*__sd(y)));
|
||||
break;
|
||||
case 2:
|
||||
__asm__ ("movw %w1,%%fs:%0"
|
||||
:"=m" (*__sd(y))
|
||||
__asm__ ("movw %w1,%%fs:%0" \
|
||||
:"=m" (*__sd(y)) \
|
||||
:"ir" ((unsigned short) x), "m" (*__sd(y)));
|
||||
break;
|
||||
case 4:
|
||||
__asm__ ("movl %1,%%fs:%0"
|
||||
:"=m" (*__sd(y))
|
||||
__asm__ ("movl %1,%%fs:%0" \
|
||||
:"=m" (*__sd(y)) \
|
||||
:"ir" (x), "m" (*__sd(y)));
|
||||
break;
|
||||
default:
|
||||
|
@ -69,18 +69,18 @@ static inline unsigned long __get_user(const void * y, int size)
|
|||
|
||||
switch (size) {
|
||||
case 1:
|
||||
__asm__ ("movb %%fs:%1,%b0"
|
||||
:"=q" (result)
|
||||
__asm__ ("movb %%fs:%1,%b0" \
|
||||
:"=q" (result) \
|
||||
:"m" (*__const_sd(y)));
|
||||
return (unsigned char) result;
|
||||
case 2:
|
||||
__asm__ ("movw %%fs:%1,%w0"
|
||||
:"=r" (result)
|
||||
__asm__ ("movw %%fs:%1,%w0" \
|
||||
:"=r" (result) \
|
||||
:"m" (*__const_sd(y)));
|
||||
return (unsigned short) result;
|
||||
case 4:
|
||||
__asm__ ("movl %%fs:%1,%0"
|
||||
:"=r" (result)
|
||||
__asm__ ("movl %%fs:%1,%0" \
|
||||
:"=r" (result) \
|
||||
:"m" (*__const_sd(y)));
|
||||
return result;
|
||||
default:
|
||||
|
@ -91,26 +91,26 @@ static inline unsigned long __get_user(const void * y, int size)
|
|||
static inline void __generic_memcpy_tofs(void * to, const void * from, unsigned long n)
|
||||
{
|
||||
__asm__ volatile
|
||||
(" cld
|
||||
push %%es
|
||||
push %%fs
|
||||
cmpl $3,%0
|
||||
pop %%es
|
||||
jbe 1f
|
||||
movl %%edi,%%ecx
|
||||
negl %%ecx
|
||||
andl $3,%%ecx
|
||||
subl %%ecx,%0
|
||||
rep; movsb
|
||||
movl %0,%%ecx
|
||||
shrl $2,%%ecx
|
||||
rep; movsl
|
||||
andl $3,%0
|
||||
1: movl %0,%%ecx
|
||||
rep; movsb
|
||||
pop %%es"
|
||||
:"=abd" (n)
|
||||
:"0" (n),"D" ((long) to),"S" ((long) from)
|
||||
(" cld \
|
||||
push %%es \
|
||||
push %%fs \
|
||||
cmpl $3,%0 \
|
||||
pop %%es \
|
||||
jbe 1f \
|
||||
movl %%edi,%%ecx \
|
||||
negl %%ecx \
|
||||
andl $3,%%ecx \
|
||||
subl %%ecx,%0 \
|
||||
rep; movsb \
|
||||
movl %0,%%ecx \
|
||||
shrl $2,%%ecx \
|
||||
rep; movsl \
|
||||
andl $3,%0 \
|
||||
1: movl %0,%%ecx \
|
||||
rep; movsb \
|
||||
pop %%es" \
|
||||
:"=abd" (n) \
|
||||
:"0" (n),"D" ((long) to),"S" ((long) from) \
|
||||
:"cx","di","si");
|
||||
}
|
||||
|
||||
|
@ -180,19 +180,19 @@ __asm__("cld\n\t" \
|
|||
static inline void __generic_memcpy_fromfs(void * to, const void * from, unsigned long n)
|
||||
{
|
||||
__asm__ volatile
|
||||
(" cld
|
||||
cmpl $3,%0
|
||||
jbe 1f
|
||||
movl %%edi,%%ecx
|
||||
negl %%ecx
|
||||
andl $3,%%ecx
|
||||
subl %%ecx,%0
|
||||
fs; rep; movsb
|
||||
movl %0,%%ecx
|
||||
shrl $2,%%ecx
|
||||
fs; rep; movsl
|
||||
andl $3,%0
|
||||
1: movl %0,%%ecx
|
||||
(" cld \
|
||||
cmpl $3,%0 \
|
||||
jbe 1f \
|
||||
movl %%edi,%%ecx \
|
||||
negl %%ecx \
|
||||
andl $3,%%ecx \
|
||||
subl %%ecx,%0 \
|
||||
fs; rep; movsb \
|
||||
movl %0,%%ecx \
|
||||
shrl $2,%%ecx \
|
||||
fs; rep; movsl \
|
||||
andl $3,%0 \
|
||||
1: movl %0,%%ecx \
|
||||
fs; rep; movsb"
|
||||
:"=abd" (n)
|
||||
:"0" (n),"D" ((long) to),"S" ((long) from)
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
#include <crtdll/stdio.h>
|
||||
#include <crtdll/internal/file.h>
|
||||
|
||||
int _cputs(const char *_str)
|
||||
int _cputs(const char *_str)
|
||||
{
|
||||
int len = strlen(_str);
|
||||
DWORD written = 0;
|
||||
if (!WriteFile(filehnd(stdout->_file),_str,len,&written,NULL))
|
||||
if (!WriteFile(filehnd(stdout->_file),_str,len,&written,NULL))
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -23,4 +23,4 @@ unsigned long _getdrives(void)
|
|||
//fixme get logical drives
|
||||
//return GetLogicalDrives();
|
||||
return 5; // drive A and C
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@ int _abnormal_termination(void)
|
|||
{
|
||||
printf("Abnormal Termination\n");
|
||||
// return AbnormalTermination();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,4 +16,4 @@ struct _CONTEXT *ContextRecord,
|
|||
void *DispatcherContext)
|
||||
{
|
||||
printf("excpetion handler\n");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@ int _fpieee_flt(
|
|||
)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,4 +28,4 @@ double _logb (double __x)
|
|||
: "=t" (__junk), "=u" (__value) : "0" (__x));
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,4 +28,4 @@ _chmod(const char *filename, mode_t mode)
|
|||
return -1;
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@ int _utime(const char* filename, struct _utimbuf* buf)
|
|||
return -1;
|
||||
return ret;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,4 +41,4 @@ size_t _msize (void* pBlock)
|
|||
psub=pfrag->Sub;
|
||||
pbucket=psub->Bucket;
|
||||
return pbucket->Size;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,4 +26,4 @@ int _heapset (unsigned int unFill)
|
|||
int _heapwalk ( struct _heapinfo *entry)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,4 +23,4 @@
|
|||
double acos (double __x)
|
||||
{
|
||||
return atan2 (sqrt (1.0 - __x * __x), __x);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,4 +23,4 @@
|
|||
double asin (double __x)
|
||||
{
|
||||
return atan2 (__x, sqrt (1.0 - __x * __x));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,4 +29,4 @@ double atan (double __x)
|
|||
: "=t" (__value) : "0" (__x));
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ double atan2 (double __y, double __x)
|
|||
: "=t" (__value) : "0" (__x), "u" (__y));
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,4 +20,4 @@ double ceil (double __x)
|
|||
long double ceill (long double __x)
|
||||
{
|
||||
return floor(__x)+1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,4 +29,4 @@ double fabs (double __x)
|
|||
: "=t" (__value) : "0" (__x));
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,4 +32,4 @@ double fmod (double __x, double __y)
|
|||
: "=t" (__value) : "0" (__x), "u" (__y) : "ax", "cc");
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ double _j0(double x)
|
|||
double _y0(double x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ double _j1(double x)
|
|||
double _y1(double x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ double _jn(int n, double x)
|
|||
double _yn(int n, double x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,4 +28,4 @@ double ldexp (double __x, int __y)
|
|||
: "=t" (__value) : "0" (__x), "u" ((double) __y));
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,4 +30,4 @@ double log (double __x)
|
|||
: "=t" (__value) : "0" (__x));
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,4 +31,4 @@ double log10 (double __x)
|
|||
: "=t" (__value) : "0" (__x));
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,4 +29,4 @@ double sin (double __x)
|
|||
: "=t" (__value) : "0" (__x));
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,4 +29,4 @@ double sqrt (double __x)
|
|||
: "=t" (__value) : "0" (__x));
|
||||
|
||||
return __value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,4 +81,4 @@ double _CIsqrt (double x)
|
|||
double _CIfmod (double x, double y)
|
||||
{
|
||||
return fmod(x,y);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,4 +14,4 @@
|
|||
int _ismbbkana(unsigned char c)
|
||||
{
|
||||
return ((_jctype+1)[(unsigned char)(c)] & (_KNJ_M|_KNJ_P));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
int _ismbbkalpha(unsigned char c)
|
||||
{
|
||||
return (0xA7 <= c <= 0xDF);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@
|
|||
int _ismbbkpunct( unsigned int c )
|
||||
{
|
||||
return ((_jctype+1)[(unsigned char)(c)] & (_KNJ_P));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@ int isleadbyte(char *mbstr)
|
|||
{
|
||||
return 0;
|
||||
//return IsDBCSLeadByteEx(0,*c);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -103,4 +103,4 @@ int _ismbcl1(unsigned int c)
|
|||
int _ismbcl2(unsigned int c)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
int _ismbbgraph(unsigned char c)
|
||||
{
|
||||
return (isgraph(c) || _ismbbkana(c));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
int _ismbbkalnum( unsigned int c )
|
||||
{
|
||||
return ((_jctype+1)[(unsigned char)(c)] & (_KNJ_P));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
int _ismbbprint(unsigned char c)
|
||||
{
|
||||
return (isprint(c) || _ismbbkana(c));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,4 +36,4 @@ int _ismbstrail( const unsigned char *str, const unsigned char *t)
|
|||
}
|
||||
|
||||
return _ismbbtrail(*s);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,4 +21,4 @@ unsigned short _mbcjistojms(unsigned short c)
|
|||
return ((c1 << 8) | c2);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,4 +22,4 @@ unsigned short _mbcjmstojis(unsigned short c)
|
|||
return ((c1 << 8) | c2);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,4 +48,4 @@ int _mbsbtype( const unsigned char *str, size_t n )
|
|||
if ( str == NULL )
|
||||
return -1;
|
||||
return _mbbtype(*(str+n),1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ void _mbccpy(unsigned char *dst, const unsigned char *src)
|
|||
return;
|
||||
|
||||
memcpy(dst,src,_mbclen2(*src));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,3 @@ int mblen( const char *s, size_t count )
|
|||
return -1;
|
||||
return l;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
unsigned char * _mbscat(unsigned char *dst, const unsigned char *src)
|
||||
{
|
||||
return strcat(dst,src);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
unsigned char * _mbschr(const unsigned char *str, unsigned int c)
|
||||
{
|
||||
return strchr(str,c);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
int _mbscmp(const unsigned char *str1, const unsigned char *str2)
|
||||
{
|
||||
return strcmp(str1,str2);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,4 +92,4 @@ int _mbsbcoll(const unsigned char *str1, const unsigned char *str2)
|
|||
return colldif(*s1, *s2);
|
||||
} ;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
unsigned char * _mbscpy(unsigned char *dst, const unsigned char *str)
|
||||
{
|
||||
return strcpy(dst,str);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,4 @@ unsigned char * _mbsdec(const unsigned char *str, const unsigned char *cur)
|
|||
s--;
|
||||
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,4 +22,4 @@ unsigned char * _mbsdup(const unsigned char *_s)
|
|||
return 0;
|
||||
_mbscpy(rv, _s);
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,4 +59,4 @@ int _mbsicmp(const unsigned char *str1, const unsigned char *str2)
|
|||
s2++;
|
||||
}
|
||||
return toupper(*(unsigned const char *)s1) - toupper(*(unsigned const char *)(s2));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ size_t _mbslen(const unsigned char *str)
|
|||
|
||||
for (s = (unsigned char *)str; *s; s+=_mbclen2(*s),i++);
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,4 +37,4 @@ unsigned char * _mbslwr(unsigned char *x)
|
|||
}
|
||||
}
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,4 +26,4 @@ size_t _mbsnbcnt(const unsigned char *str, size_t n)
|
|||
}
|
||||
|
||||
return (size_t)(s - str);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,4 +100,4 @@ int _mbsnbcmp(const unsigned char *str1, const unsigned char *str2, size_t n)
|
|||
return *s1 - *s2;
|
||||
} while (n > 0);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -106,4 +106,4 @@ int _mbsnbcoll(const unsigned char *str1, const unsigned char *str2, size_t n)
|
|||
int colldif(unsigned short c1, unsigned short c2)
|
||||
{
|
||||
return c1 - c2;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,4 +74,4 @@ unsigned char * _mbsnbcpy(unsigned char *str1, const unsigned char *str2, size_t
|
|||
}
|
||||
} while (n > 0);
|
||||
return str1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,4 +15,4 @@ unsigned int _mbsnextc (const unsigned char *src)
|
|||
return *short_src;
|
||||
return 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,4 +7,4 @@ int _mbsnicoll(const unsigned char *s1, const unsigned char *s2, size_t n)
|
|||
int _mbsnbicoll(const unsigned char *s1, const unsigned char *s2, size_t n)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,4 +10,4 @@ unsigned char * _mbsninc(const unsigned char *str, size_t n)
|
|||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,4 +61,4 @@ unsigned char * _mbsnbset(unsigned char *src, unsigned int val, size_t count)
|
|||
}
|
||||
|
||||
return src;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ unsigned char * _mbspbrk(const unsigned char *s1, const unsigned char *s2)
|
|||
return (unsigned char *)((char *)s1 - (char *)1);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,4 +25,4 @@ unsigned char * _mbsrev(unsigned char *s)
|
|||
|
||||
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ size_t _mbsspn(const unsigned char *s1, const unsigned char *s2)
|
|||
goto cont;
|
||||
return (size_t)(p - 1) - (size_t)s1;
|
||||
// - (char *)s1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,4 +11,4 @@ unsigned char * _mbsspnp(const unsigned char *s1, const unsigned char *s2)
|
|||
if (sc == c)
|
||||
goto cont;
|
||||
return (unsigned char *)p;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,4 +17,4 @@ unsigned char *_mbsstr(const unsigned char *src1,const unsigned char *src2)
|
|||
src1 = (unsigned char *)_mbsinc(src1);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,4 +50,4 @@ unsigned char * _mbstok(unsigned char *s, const unsigned char *delim)
|
|||
} while (sc != 0);
|
||||
}
|
||||
/* NOTREACHED */
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,4 +13,4 @@ size_t _mbstrlen( const char *string )
|
|||
i++;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,4 +47,4 @@ unsigned char * _mbsupr(unsigned char *x)
|
|||
}
|
||||
}
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
int _purecall(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,4 +25,4 @@ void _endthread(void)
|
|||
//fixme ExitThread
|
||||
//ExitThread(0);
|
||||
for(;;);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,4 +9,4 @@ unsigned long __threadid (void)
|
|||
void *__threadhandle(void)
|
||||
{
|
||||
return GetCurrentThread();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ int _XcptFilter (
|
|||
{
|
||||
//fixme XcptFilter
|
||||
// return UnhandledExceptionFilter(ExceptionInfo);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
void **__pxcptinfoptrs (void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,4 +108,4 @@ int fflush(FILE *f)
|
|||
int _flushall( void )
|
||||
{
|
||||
return fflush(NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,4 +10,4 @@ int _fgetchar (void)
|
|||
int _fgetwchar (void)
|
||||
{
|
||||
return _getch();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -176,4 +176,4 @@ int cntcr(char *bufp, int bufsiz)
|
|||
}
|
||||
|
||||
return cr;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,4 +81,4 @@ size_t fwrite(const void *vptr, size_t size, size_t count, FILE *iop)
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -72,4 +72,4 @@ ungetwc(wchar_t c, FILE *f)
|
|||
*((wchar_t *)(f->_ptr)) = c;
|
||||
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ vswprintf(wchar_t *str, const wchar_t *fmt, va_list ap)
|
|||
int len;
|
||||
|
||||
f._flag = _IOWRT|_IOSTRG;
|
||||
f._ptr = str;
|
||||
f._ptr = (char*)str;
|
||||
f._cnt = INT_MAX;
|
||||
f._file = -1;
|
||||
len = vfwprintf(&f,fmt, ap);
|
||||
|
@ -56,7 +56,7 @@ _vsnwprintf(wchar_t *str, size_t maxlen, const wchar_t *fmt, va_list ap)
|
|||
FILE f;
|
||||
int len;
|
||||
f._flag = _IOWRT|_IOSTRG;
|
||||
f._ptr = str;
|
||||
f._ptr = (char*)str;
|
||||
f._cnt = maxlen;
|
||||
f._file = -1;
|
||||
len = vfwprintf(&f,fmt, ap);
|
||||
|
|
|
@ -135,4 +135,4 @@ _ultoa(unsigned long value, char *string, int radix)
|
|||
*sp++ = *--tp;
|
||||
*sp = 0;
|
||||
return string;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,4 +8,4 @@ size_t mbstowcs( wchar_t *wcstr, const char *mbstr, size_t count )
|
|||
int mbtowc( wchar_t *wchar, const char *mbchar, size_t count )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,4 +53,4 @@ unsigned long _lrotr( unsigned long value, int shift )
|
|||
if ( shift > max_bits )
|
||||
shift = shift % max_bits;
|
||||
return (value >> shift) | (value << (max_bits-shift));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
static const wchar_t encoding_mask[] =
|
||||
{
|
||||
~0x7ff, ~0xffff, ~0x1fffff, ~0x3ffffff
|
||||
(wchar_t)~0x7ff, (wchar_t)~0xffff, (wchar_t)~0x1fffff, (wchar_t)~0x3ffffff
|
||||
};
|
||||
|
||||
static const unsigned char encoding_byte[] =
|
||||
|
|
|
@ -25,4 +25,4 @@ char* _strset (char* szToFill, int szFill)
|
|||
|
||||
}
|
||||
return t;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,4 +36,4 @@ int _futime (int nHandle, struct _utimbuf *pTimes)
|
|||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,4 +64,4 @@ unsigned int _setsystime(struct tm *tp, unsigned int ms)
|
|||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,4 +27,4 @@ char *_strdate( const char *datestr )
|
|||
d = localtime(&t);
|
||||
sprintf(dt,"%d/%d/%d",d->tm_mday,d->tm_mon+1,d->tm_year);
|
||||
return dt;
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue