Compile using gcc 3.0
authorCasper Hornstrup <chorns@users.sourceforge.net>
Sun, 23 Sep 2001 22:14:10 +0000 (22:14 +0000)
committerCasper Hornstrup <chorns@users.sourceforge.net>
Sun, 23 Sep 2001 22:14:10 +0000 (22:14 +0000)
Fixed alot of warnings when using gcc 3.0

svn path=/trunk/; revision=2255

183 files changed:
reactos/drivers/dd/vga/display/main/enable.c
reactos/hal/halx86/halx86mp.rc
reactos/hal/halx86/halx86up.rc
reactos/include/crtdll/internal/ieee.h
reactos/include/crtdll/mbctype.h
reactos/include/crtdll/mbstring.h
reactos/include/crtdll/search.h
reactos/include/crtdll/string.h
reactos/include/ddk/haltypes.h
reactos/include/msvcrt/internal/ieee.h
reactos/include/msvcrt/mbctype.h
reactos/include/msvcrt/mbstring.h
reactos/include/msvcrt/search.h
reactos/include/msvcrt/string.h
reactos/include/napi/i386/segment.h
reactos/lib/crtdll/conio/cputs.c
reactos/lib/crtdll/direct/getdrive.c
reactos/lib/crtdll/except/abnorter.c
reactos/lib/crtdll/except/exhand2.c
reactos/lib/crtdll/except/matherr.c
reactos/lib/crtdll/float/logb.c
reactos/lib/crtdll/io/chmod.c
reactos/lib/crtdll/io/utime.c
reactos/lib/crtdll/malloc/expand.c
reactos/lib/crtdll/malloc/heap.c
reactos/lib/crtdll/math/acos.c
reactos/lib/crtdll/math/asin.c
reactos/lib/crtdll/math/atan.c
reactos/lib/crtdll/math/atan2.c
reactos/lib/crtdll/math/ceil.c
reactos/lib/crtdll/math/fabs.c
reactos/lib/crtdll/math/fmod.c
reactos/lib/crtdll/math/j0_y0.c
reactos/lib/crtdll/math/j1_y1.c
reactos/lib/crtdll/math/jn_yn.c
reactos/lib/crtdll/math/ldexp.c
reactos/lib/crtdll/math/log.c
reactos/lib/crtdll/math/log10.c
reactos/lib/crtdll/math/sin.c
reactos/lib/crtdll/math/sqrt.c
reactos/lib/crtdll/math/stubs.c
reactos/lib/crtdll/mbstring/iskana.c
reactos/lib/crtdll/mbstring/iskmoji.c
reactos/lib/crtdll/mbstring/iskpun.c
reactos/lib/crtdll/mbstring/islead.c
reactos/lib/crtdll/mbstring/ismbc.c
reactos/lib/crtdll/mbstring/ismbgra.c
reactos/lib/crtdll/mbstring/ismbkaln.c
reactos/lib/crtdll/mbstring/ismbpri.c
reactos/lib/crtdll/mbstring/ismbtrl.c
reactos/lib/crtdll/mbstring/jistojms.c
reactos/lib/crtdll/mbstring/jmstojis.c
reactos/lib/crtdll/mbstring/mbbtype.c
reactos/lib/crtdll/mbstring/mbccpy.c
reactos/lib/crtdll/mbstring/mbclen.c
reactos/lib/crtdll/mbstring/mbscat.c
reactos/lib/crtdll/mbstring/mbschr.c
reactos/lib/crtdll/mbstring/mbscmp.c
reactos/lib/crtdll/mbstring/mbscoll.c
reactos/lib/crtdll/mbstring/mbscpy.c
reactos/lib/crtdll/mbstring/mbsdec.c
reactos/lib/crtdll/mbstring/mbsdup.c
reactos/lib/crtdll/mbstring/mbsicmp.c
reactos/lib/crtdll/mbstring/mbslen.c
reactos/lib/crtdll/mbstring/mbslwr.c
reactos/lib/crtdll/mbstring/mbsnccnt.c
reactos/lib/crtdll/mbstring/mbsncmp.c
reactos/lib/crtdll/mbstring/mbsncoll.c
reactos/lib/crtdll/mbstring/mbsncpy.c
reactos/lib/crtdll/mbstring/mbsnextc.c
reactos/lib/crtdll/mbstring/mbsnicoll.c
reactos/lib/crtdll/mbstring/mbsninc.c
reactos/lib/crtdll/mbstring/mbsnset.c
reactos/lib/crtdll/mbstring/mbspbrk.c
reactos/lib/crtdll/mbstring/mbsrev.c
reactos/lib/crtdll/mbstring/mbsspn.c
reactos/lib/crtdll/mbstring/mbsspnp.c
reactos/lib/crtdll/mbstring/mbsstr.c
reactos/lib/crtdll/mbstring/mbstok.c
reactos/lib/crtdll/mbstring/mbstrlen.c
reactos/lib/crtdll/mbstring/mbsupr.c
reactos/lib/crtdll/misc/purecall.c
reactos/lib/crtdll/process/thread.c
reactos/lib/crtdll/process/threadid.c
reactos/lib/crtdll/signal/xcptfil.c
reactos/lib/crtdll/signal/xcptinfo.c
reactos/lib/crtdll/stdio/fflush.c
reactos/lib/crtdll/stdio/fgetchar.c
reactos/lib/crtdll/stdio/flsbuf.c
reactos/lib/crtdll/stdio/fwrite.c
reactos/lib/crtdll/stdio/ungetc.c
reactos/lib/crtdll/stdio/vsprintf.c
reactos/lib/crtdll/stdlib/itoa.c
reactos/lib/crtdll/stdlib/mbstowcs.c
reactos/lib/crtdll/stdlib/rot.c
reactos/lib/crtdll/stdlib/wcstomb.c
reactos/lib/crtdll/string/strset.c
reactos/lib/crtdll/sys_stat/futime.c
reactos/lib/crtdll/sys_stat/systime.c
reactos/lib/crtdll/time/strdate.c
reactos/lib/crtdll/time/strftime.c
reactos/lib/crtdll/time/strtime.c
reactos/lib/crtdll/wchar/wcspbrk.c
reactos/lib/crtdll/wchar/wcsset.c
reactos/lib/crtdll/wchar/wcsxfrm.c
reactos/lib/crtdll/wchar/wtoi.c
reactos/lib/msvcrt/direct/getdrive.c
reactos/lib/msvcrt/except/abnorter.c
reactos/lib/msvcrt/except/exhand2.c
reactos/lib/msvcrt/except/exhand3.c
reactos/lib/msvcrt/except/matherr.c
reactos/lib/msvcrt/float/logb.c
reactos/lib/msvcrt/io/chmod.c
reactos/lib/msvcrt/io/lseek.c
reactos/lib/msvcrt/math/acos.c
reactos/lib/msvcrt/math/asin.c
reactos/lib/msvcrt/math/atan.c
reactos/lib/msvcrt/math/atan2.c
reactos/lib/msvcrt/math/fabs.c
reactos/lib/msvcrt/math/fmod.c
reactos/lib/msvcrt/math/j1_y1.c
reactos/lib/msvcrt/math/jn_yn.c
reactos/lib/msvcrt/math/ldexp.c
reactos/lib/msvcrt/math/log.c
reactos/lib/msvcrt/math/log10.c
reactos/lib/msvcrt/math/sin.c
reactos/lib/msvcrt/math/sqrt.c
reactos/lib/msvcrt/math/stubs.c
reactos/lib/msvcrt/mbstring/iskana.c
reactos/lib/msvcrt/mbstring/iskpun.c
reactos/lib/msvcrt/mbstring/islead.c
reactos/lib/msvcrt/mbstring/ismbaln.c
reactos/lib/msvcrt/mbstring/ismbc.c
reactos/lib/msvcrt/mbstring/ismbgra.c
reactos/lib/msvcrt/mbstring/ismbkaln.c
reactos/lib/msvcrt/mbstring/ismbpun.c
reactos/lib/msvcrt/mbstring/ismbtrl.c
reactos/lib/msvcrt/mbstring/jistojms.c
reactos/lib/msvcrt/mbstring/jmstojis.c
reactos/lib/msvcrt/mbstring/mbccpy.c
reactos/lib/msvcrt/mbstring/mbscat.c
reactos/lib/msvcrt/mbstring/mbschr.c
reactos/lib/msvcrt/mbstring/mbscmp.c
reactos/lib/msvcrt/mbstring/mbscpy.c
reactos/lib/msvcrt/mbstring/mbsdec.c
reactos/lib/msvcrt/mbstring/mbsdup.c
reactos/lib/msvcrt/mbstring/mbsicmp.c
reactos/lib/msvcrt/mbstring/mbslen.c
reactos/lib/msvcrt/mbstring/mbsncat.c
reactos/lib/msvcrt/mbstring/mbsnccnt.c
reactos/lib/msvcrt/mbstring/mbsncmp.c
reactos/lib/msvcrt/mbstring/mbsncoll.c
reactos/lib/msvcrt/mbstring/mbsncpy.c
reactos/lib/msvcrt/mbstring/mbsnextc.c
reactos/lib/msvcrt/mbstring/mbsnicmp.c
reactos/lib/msvcrt/mbstring/mbsnicoll.c
reactos/lib/msvcrt/mbstring/mbsninc.c
reactos/lib/msvcrt/mbstring/mbsnset.c
reactos/lib/msvcrt/mbstring/mbsrev.c
reactos/lib/msvcrt/mbstring/mbsspn.c
reactos/lib/msvcrt/mbstring/mbsspnp.c
reactos/lib/msvcrt/mbstring/mbsstr.c
reactos/lib/msvcrt/mbstring/mbstok.c
reactos/lib/msvcrt/mbstring/mbstrlen.c
reactos/lib/msvcrt/process/spawnvpe.c
reactos/lib/msvcrt/process/threadid.c
reactos/lib/msvcrt/search/lsearch.c
reactos/lib/msvcrt/stdio/fflush.c
reactos/lib/msvcrt/stdio/fgetchar.c
reactos/lib/msvcrt/stdio/flsbuf.c
reactos/lib/msvcrt/stdio/vfprintf.c
reactos/lib/msvcrt/stdio/vfscanf.c
reactos/lib/msvcrt/stdio/vfwprint.c
reactos/lib/msvcrt/stdlib/wtoi.c
reactos/lib/msvcrt/string/memccpy.c
reactos/lib/msvcrt/string/strset.c
reactos/lib/msvcrt/time/strftime.c
reactos/lib/ntdll/makefile
reactos/lib/ntdll/string/memccpy.c
reactos/lib/ntdll/string/memset.c
reactos/ntoskrnl/dbg/dbgctrl.c
reactos/subsys/win32k/eng/clip.h
reactos/tools/Makefile

index e9f0da7..a75cbd2 100644 (file)
@@ -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 */
+
index 9f302cd..4021685 100644 (file)
@@ -34,4 +34,4 @@ BEGIN
     BEGIN
         VALUE "Translation", 0x409, 1200
     END
-END
\ No newline at end of file
+END
index b2566b8..75e1a48 100644 (file)
@@ -34,4 +34,4 @@ BEGIN
     BEGIN
         VALUE "Translation", 0x409, 1200
     END
-END
\ No newline at end of file
+END
index 7406d45..788908b 100644 (file)
@@ -22,6 +22,4 @@ typedef struct {
   unsigned int empty:16;
 } long_double_t;
 
-
-
-#endif
\ No newline at end of file
+#endif
index 09b5059..dc34d13 100644 (file)
@@ -44,4 +44,4 @@ int _ismbbkana( unsigned char c );
 }
 #endif
 
-#endif
\ No newline at end of file
+#endif
index 47ba977..cc49c6b 100644 (file)
@@ -105,4 +105,4 @@ int _ismbstrail( const unsigned char *s, const unsigned char *c);
 }
 #endif
 
-#endif
\ No newline at end of file
+#endif
index d4268db..c8242c6 100644 (file)
@@ -32,4 +32,4 @@ void  *_lsearch(const void *, void *, size_t *,
 //void   twalk(const void *,
 //             void (*)(const void *, VISIT, int ));
 
-#endif
\ No newline at end of file
+#endif
index d18b4de..f973e18 100644 (file)
@@ -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
\ No newline at end of file
+#endif
index fbffd26..ea5811a 100644 (file)
@@ -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 */
\ No newline at end of file
+/* EOF */
index 7406d45..788908b 100644 (file)
@@ -22,6 +22,4 @@ typedef struct {
   unsigned int empty:16;
 } long_double_t;
 
-
-
-#endif
\ No newline at end of file
+#endif
index 56ee345..686b363 100644 (file)
@@ -46,4 +46,4 @@ int _ismbbkana( unsigned char c );
 }
 #endif
 
-#endif
\ No newline at end of file
+#endif
index 7a145eb..45d0c16 100644 (file)
@@ -105,4 +105,4 @@ int _ismbstrail( const unsigned char *s, const unsigned char *c);
 }
 #endif
 
-#endif
\ No newline at end of file
+#endif
index 985e144..b42c4d0 100644 (file)
@@ -32,4 +32,4 @@ void  *_lsearch(const void *, void *, size_t *,
 //void   twalk(const void *,
 //             void (*)(const void *, VISIT, int ));
 
-#endif
\ No newline at end of file
+#endif
index d0a0071..8028870 100644 (file)
@@ -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
\ No newline at end of file
+#endif
index dc8d1eb..6034b60 100644 (file)
@@ -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)
index 5498680..37cd12a 100644 (file)
 #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;
 }
index 2aa5463..a57e9ba 100644 (file)
@@ -23,4 +23,4 @@ unsigned long _getdrives(void)
     //fixme get logical drives
     //return GetLogicalDrives();
      return 5;  // drive A and C
-}
\ No newline at end of file
+}
index 9c91383..2efd11a 100644 (file)
@@ -4,4 +4,4 @@ int _abnormal_termination(void)
 {
        printf("Abnormal Termination\n");
 //     return AbnormalTermination();
-}
\ No newline at end of file
+}
index 4a4fcd6..886b798 100644 (file)
@@ -16,4 +16,4 @@ struct _CONTEXT *ContextRecord,
 void *DispatcherContext)
 {
        printf("excpetion handler\n");
-}
\ No newline at end of file
+}
index 338eee1..e921e84 100644 (file)
@@ -19,4 +19,4 @@ int _fpieee_flt(
         )
 {
        return 0;
-}
\ No newline at end of file
+}
index db8eff6..8b89627 100644 (file)
@@ -28,4 +28,4 @@ double _logb (double __x)
      : "=t" (__junk), "=u" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index 84dc86f..be48dbf 100644 (file)
@@ -28,4 +28,4 @@ _chmod(const char *filename, mode_t mode)
                 return -1;
 
         return 1;
-}
\ No newline at end of file
+}
index 1c69347..90b9921 100644 (file)
@@ -19,4 +19,4 @@ int _utime(const char* filename, struct _utimbuf* buf)
        return -1;
   return ret;
   
-}
\ No newline at end of file
+}
index 7a323ae..321330b 100644 (file)
@@ -41,4 +41,4 @@ size_t        _msize (void* pBlock)
    psub=pfrag->Sub;
    pbucket=psub->Bucket;
    return pbucket->Size;
-}
\ No newline at end of file
+}
index 1eed228..11d9907 100644 (file)
@@ -26,4 +26,4 @@ int   _heapset (unsigned int unFill)
 int _heapwalk ( struct _heapinfo *entry)
 {
        return 0;
-}
\ No newline at end of file
+}
index 3470782..776ddd2 100644 (file)
@@ -23,4 +23,4 @@
 double acos (double __x)
 {
   return atan2 (sqrt (1.0 - __x * __x), __x);
-}
\ No newline at end of file
+}
index 6aeba7d..4109811 100644 (file)
@@ -23,4 +23,4 @@
 double asin (double __x)
 {
   return atan2 (__x, sqrt (1.0 - __x * __x));
-}
\ No newline at end of file
+}
index 20ef672..853385b 100644 (file)
@@ -29,4 +29,4 @@ double atan (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index 30b8001..f23be33 100644 (file)
@@ -9,4 +9,4 @@ double atan2 (double __y, double __x)
      : "=t" (__value) : "0" (__x), "u" (__y));
 
   return __value;
-}
\ No newline at end of file
+}
index 56cf856..eedff4f 100644 (file)
@@ -20,4 +20,4 @@ double ceil (double __x)
 long double ceill (long double __x)
 {
        return floor(__x)+1;
-}
\ No newline at end of file
+}
index f56c268..a2a8bdc 100644 (file)
@@ -29,4 +29,4 @@ double fabs (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index 8e178d9..5618cf3 100644 (file)
@@ -32,4 +32,4 @@ double fmod (double __x, double __y)
      : "=t" (__value) : "0" (__x), "u" (__y) : "ax", "cc");
 
   return __value;
-}
\ No newline at end of file
+}
index fe3c422..7512077 100644 (file)
@@ -8,4 +8,4 @@ double _j0(double x)
 double _y0(double x) 
 {
        return x;
-}
\ No newline at end of file
+}
index 76432b9..90e2fb1 100644 (file)
@@ -8,4 +8,4 @@ double _j1(double x)
 double _y1(double x) 
 {
        return x;
-}
\ No newline at end of file
+}
index b3a7181..b641a81 100644 (file)
@@ -8,4 +8,4 @@ double _jn(int n, double x)
 double _yn(int n, double x) 
 {
        return x;
-}
\ No newline at end of file
+}
index f96c3c3..4599fd5 100644 (file)
@@ -28,4 +28,4 @@ double ldexp (double __x, int __y)
      : "=t" (__value) : "0" (__x), "u" ((double) __y));
 
   return __value;
-}
\ No newline at end of file
+}
index b8cf142..c19c30f 100644 (file)
@@ -30,4 +30,4 @@ double log (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index 64a6b17..b57b1a5 100644 (file)
@@ -31,4 +31,4 @@ double log10 (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index be9e0b3..80d7630 100644 (file)
@@ -29,4 +29,4 @@ double sin (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index f157eab..a17cec1 100644 (file)
@@ -29,4 +29,4 @@ double sqrt (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index 5c7686d..65b6010 100644 (file)
@@ -81,4 +81,4 @@ double        _CIsqrt (double x)
 double _CIfmod (double x, double y)
 {
        return fmod(x,y);
-}
\ No newline at end of file
+}
index bd9dfa9..b61ff8b 100644 (file)
@@ -14,4 +14,4 @@
 int _ismbbkana(unsigned char c)      
 {
        return ((_jctype+1)[(unsigned char)(c)] & (_KNJ_M|_KNJ_P));
-}
\ No newline at end of file
+}
index dcaaab8..3884552 100644 (file)
@@ -3,4 +3,4 @@
 int _ismbbkalpha(unsigned char c)
 {
        return (0xA7 <= c <= 0xDF);
-}
\ No newline at end of file
+}
index 470d469..e515354 100644 (file)
@@ -12,4 +12,4 @@
 int _ismbbkpunct( unsigned int c )
 {
        return  ((_jctype+1)[(unsigned char)(c)] & (_KNJ_P));
-}
\ No newline at end of file
+}
index 8d71a22..6026c34 100644 (file)
@@ -5,4 +5,4 @@ int isleadbyte(char *mbstr)
 {
        return 0;
        //return IsDBCSLeadByteEx(0,*c);
-}
\ No newline at end of file
+}
index 2747a5a..ad8c8c6 100644 (file)
@@ -103,4 +103,4 @@ int _ismbcl1(unsigned int c)
 int _ismbcl2(unsigned int c)
 {
         return 0;
-}
\ No newline at end of file
+}
index 587bbad..6b3469f 100644 (file)
@@ -5,4 +5,4 @@
 int _ismbbgraph(unsigned char c)
 {
        return (isgraph(c) || _ismbbkana(c));
-}
\ No newline at end of file
+}
index 26f53c9..64340ab 100644 (file)
@@ -13,4 +13,4 @@
 int _ismbbkalnum( unsigned int c )
 {
        return  ((_jctype+1)[(unsigned char)(c)] & (_KNJ_P));
-}
\ No newline at end of file
+}
index 3fb654c..76d4075 100644 (file)
@@ -5,4 +5,4 @@
 int _ismbbprint(unsigned char c)
 {
        return (isprint(c) || _ismbbkana(c));
-}
\ No newline at end of file
+}
index 8d37b42..f6d7b40 100644 (file)
@@ -36,4 +36,4 @@ int _ismbstrail( const unsigned char *str, const unsigned char *t)
        }
                
        return _ismbbtrail(*s);
-}
\ No newline at end of file
+}
index 9ed1fd0..a34e311 100644 (file)
@@ -21,4 +21,4 @@ unsigned short _mbcjistojms(unsigned short c)
     return ((c1 << 8) | c2);
   }
   return 0;
-}
\ No newline at end of file
+}
index 087be9b..f3496aa 100644 (file)
@@ -22,4 +22,4 @@ unsigned short _mbcjmstojis(unsigned short c)
     return ((c1 << 8) | c2);
   }
   return 0;
-}
\ No newline at end of file
+}
index 0c74eb0..06d6de8 100644 (file)
@@ -48,4 +48,4 @@ int _mbsbtype( const unsigned char *str, size_t n )
        if ( str == NULL )
                return -1;
        return _mbbtype(*(str+n),1);
-}
\ No newline at end of file
+}
index 65dbd04..d78af8d 100644 (file)
@@ -9,4 +9,4 @@ void _mbccpy(unsigned char *dst, const unsigned char *src)
                return;
                
        memcpy(dst,src,_mbclen2(*src));
-}
\ No newline at end of file
+}
index 88c5860..c579932 100644 (file)
@@ -25,6 +25,3 @@ int mblen( const char *s, size_t count )
                return -1;
        return l;
 }
-
-
-
index bed2d66..62b3d05 100644 (file)
@@ -3,4 +3,4 @@
 unsigned char * _mbscat(unsigned char *dst, const unsigned char *src)
 {
        return strcat(dst,src);
-}
\ No newline at end of file
+}
index 5efab5d..f9be9c8 100644 (file)
@@ -3,4 +3,4 @@
 unsigned char * _mbschr(const unsigned char *str, unsigned int c)
 {
        return strchr(str,c);
-}
\ No newline at end of file
+}
index 1f121f0..ad48d16 100644 (file)
@@ -4,4 +4,4 @@
 int _mbscmp(const unsigned char *str1, const unsigned char *str2)
 {
        return strcmp(str1,str2);
-}
\ No newline at end of file
+}
index 669c6de..d3236cd 100644 (file)
@@ -92,4 +92,4 @@ int _mbsbcoll(const unsigned char *str1, const unsigned char *str2)
                        return colldif(*s1, *s2);
        } ;
        return 0;
-}
\ No newline at end of file
+}
index 035c76d..1c66e61 100644 (file)
@@ -4,4 +4,4 @@
 unsigned char * _mbscpy(unsigned char *dst, const unsigned char *str)
 {
        return strcpy(dst,str);
-}
\ No newline at end of file
+}
index 69a437b..00b58f3 100644 (file)
@@ -11,4 +11,4 @@ unsigned char * _mbsdec(const unsigned char *str, const unsigned char *cur)
                s--;
 
        return s; 
-}
\ No newline at end of file
+}
index 65c1c7e..ac50252 100644 (file)
@@ -22,4 +22,4 @@ unsigned char * _mbsdup(const unsigned char *_s)
                return 0;
        _mbscpy(rv, _s);
        return rv;
-}
\ No newline at end of file
+}
index cff8191..f8103c5 100644 (file)
@@ -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));
-}
\ No newline at end of file
+}
index dd58362..3eca134 100644 (file)
@@ -12,4 +12,4 @@ size_t _mbslen(const unsigned char *str)
                
        for (s = (unsigned char *)str; *s; s+=_mbclen2(*s),i++);
        return i;
-}
\ No newline at end of file
+}
index 694724a..cdbdf5f 100644 (file)
@@ -37,4 +37,4 @@ unsigned char * _mbslwr(unsigned char *x)
                }
         }
         return x;
-}
\ No newline at end of file
+}
index 05ae286..1e30c9b 100644 (file)
@@ -26,4 +26,4 @@ size_t _mbsnbcnt(const unsigned char *str, size_t n)
        }
        
        return (size_t)(s - str);
-}
\ No newline at end of file
+}
index 88eb41d..00bd789 100644 (file)
@@ -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;
-}
\ No newline at end of file
+}
index f1a2703..157f4ef 100644 (file)
@@ -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;
-}
\ No newline at end of file
+}
index 220d17f..41fe445 100644 (file)
@@ -74,4 +74,4 @@ unsigned char * _mbsnbcpy(unsigned char *str1, const unsigned char *str2, size_t
                }
        } while (n > 0);
        return str1;
-}
\ No newline at end of file
+}
index d3746d8..5d3bb0a 100644 (file)
@@ -15,4 +15,4 @@ unsigned int _mbsnextc (const unsigned char *src)
                return *short_src;
        return 0;
                
-}
\ No newline at end of file
+}
index 12f7806..4b066e8 100644 (file)
@@ -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;
-}
\ No newline at end of file
+}
index 3fb6e4f..3fb1235 100644 (file)
@@ -10,4 +10,4 @@ unsigned char * _mbsninc(const unsigned char *str, size_t n)
        }
        
        return s;
-}
\ No newline at end of file
+}
index a30ad4d..6c78d31 100644 (file)
@@ -61,4 +61,4 @@ unsigned char * _mbsnbset(unsigned char *src, unsigned int val, size_t count)
        }
 
        return src;
-}
\ No newline at end of file
+}
index 8112be9..7b6e327 100644 (file)
@@ -12,4 +12,4 @@ unsigned char * _mbspbrk(const unsigned char *s1, const unsigned char *s2)
        return (unsigned char *)((char *)s1 - (char *)1);
   }
   return 0;
-}
\ No newline at end of file
+}
index 6a9eb1e..57cc335 100644 (file)
@@ -25,4 +25,4 @@ unsigned char * _mbsrev(unsigned char *s)
        
 
        return s;
-}
\ No newline at end of file
+}
index 9cd0498..6ad7fef 100644 (file)
@@ -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);
-}
\ No newline at end of file
+}
index ee22b4f..d8ec9e1 100644 (file)
@@ -11,4 +11,4 @@ unsigned char * _mbsspnp(const unsigned char *s1, const unsigned char *s2)
     if (sc == c)
       goto cont;
   return (unsigned char *)p;
-}
\ No newline at end of file
+}
index f6c850d..321b36b 100644 (file)
@@ -17,4 +17,4 @@ unsigned char *_mbsstr(const unsigned char *src1,const unsigned char *src2)
                 src1 = (unsigned char *)_mbsinc(src1);
         }
         return NULL;
-}
\ No newline at end of file
+}
index b27cf76..cc2f0cb 100644 (file)
@@ -50,4 +50,4 @@ unsigned char * _mbstok(unsigned char *s, const unsigned char *delim)
     } while (sc != 0);
   }
   /* NOTREACHED */
-}
\ No newline at end of file
+}
index 662595e..7cfd19f 100644 (file)
@@ -13,4 +13,4 @@ size_t _mbstrlen( const char *string )
                i++;
        }
        return i;
-}
\ No newline at end of file
+}
index 5ca7ae5..90e5b0f 100644 (file)
@@ -47,4 +47,4 @@ unsigned char * _mbsupr(unsigned char *x)
                }
         }
         return x;
-}
\ No newline at end of file
+}
index f522dee..4294742 100644 (file)
@@ -2,4 +2,4 @@
 int _purecall(void)
 {
          return 0;
-}
\ No newline at end of file
+}
index 903fe2e..c2a12d3 100644 (file)
@@ -25,4 +25,4 @@ void  _endthread(void)
        //fixme ExitThread
        //ExitThread(0);
        for(;;);
-}
\ No newline at end of file
+}
index 404ac06..3b5c9aa 100644 (file)
@@ -9,4 +9,4 @@ unsigned long __threadid (void)
 void *__threadhandle(void)
 {
         return GetCurrentThread();
-}
\ No newline at end of file
+}
index 3028e9a..a2e5497 100644 (file)
@@ -8,4 +8,4 @@ int _XcptFilter (
 {
        //fixme XcptFilter
 //     return UnhandledExceptionFilter(ExceptionInfo);
-}
\ No newline at end of file
+}
index a19f710..d32f760 100644 (file)
@@ -3,4 +3,4 @@
 void **__pxcptinfoptrs (void)
 {
         return NULL;
-}
\ No newline at end of file
+}
index 6d7197d..0dc66f2 100644 (file)
@@ -108,4 +108,4 @@ int fflush(FILE *f)
 int _flushall( void )
 {
        return fflush(NULL);
-}
\ No newline at end of file
+}
index 8c925d4..392f7e2 100644 (file)
@@ -10,4 +10,4 @@ int   _fgetchar (void)
 int    _fgetwchar (void)
 {
        return _getch();
-}
\ No newline at end of file
+}
index 574525a..2a0feb6 100644 (file)
@@ -176,4 +176,4 @@ int cntcr(char *bufp, int bufsiz)
        }
 
        return cr;
-}
\ No newline at end of file
+}
index 4dcc8d7..7796416 100644 (file)
@@ -81,4 +81,4 @@ size_t fwrite(const void *vptr, size_t size, size_t count, FILE *iop)
   
 }
 
-#endif
\ No newline at end of file
+#endif
index 848622d..99ef471 100644 (file)
@@ -72,4 +72,4 @@ ungetwc(wchar_t c, FILE *f)
   *((wchar_t *)(f->_ptr)) = c;
 
   return c;
-}
\ No newline at end of file
+}
index 362c29f..52e899e 100644 (file)
@@ -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);
index f8b77cf..087c8b4 100644 (file)
@@ -135,4 +135,4 @@ _ultoa(unsigned long value, char *string, int radix)
     *sp++ = *--tp;
   *sp = 0;
   return string;
-}
\ No newline at end of file
+}
index 26cf823..6e0f558 100644 (file)
@@ -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;
-}
\ No newline at end of file
+}
index 608aa73..7a67cb6 100644 (file)
@@ -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));
-}
\ No newline at end of file
+}
index 4742dd3..832672a 100644 (file)
@@ -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[] =
index 68abdcf..009ddc2 100644 (file)
@@ -25,4 +25,4 @@ char* _strset (char* szToFill, int szFill)
                
        }
        return t;
-}
\ No newline at end of file
+}
index a17d34b..cde6bfb 100644 (file)
@@ -36,4 +36,4 @@ int     _futime (int nHandle, struct _utimbuf *pTimes)
         }
 
         return 0;
-}
\ No newline at end of file
+}
index 466451f..2289ad4 100644 (file)
@@ -64,4 +64,4 @@ unsigned int _setsystime(struct tm *tp, unsigned int ms)
                return -1;
 
        return 0;
-}
\ No newline at end of file
+}
index b9b2565..ca9b013 100644 (file)
@@ -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;
-}
\ No newline at end of file
+}
index 243fe90..c5c65df 100644 (file)
@@ -261,4 +261,4 @@ wcsftime(wchar_t *s, size_t maxsize, const wchar_t *format, const struct tm *t)
   free(f);
   free(x);
   return 0;
-}
\ No newline at end of file
+}
index c35dc47..82497a0 100644 (file)
@@ -26,4 +26,4 @@ char *_strtime(char* buf)
        d = localtime(&t);
        sprintf(dt,"%d:%d:%d",d->tm_hour,d->tm_min,d->tm_sec);
        return dt;
-}
\ No newline at end of file
+}
index f364366..ccef388 100644 (file)
@@ -13,4 +13,4 @@ wchar_t *wcspbrk(const wchar_t *s1, const wchar_t *s2)
       }
   }
   return 0;
-}
\ No newline at end of file
+}
index f6b0613..e4b2ee9 100644 (file)
@@ -24,4 +24,4 @@ wchar_t* _wcsset (wchar_t* wsToFill, wchar_t wcFill)
                
        }
        return t;
-}
\ No newline at end of file
+}
index c549979..91ae8e6 100644 (file)
@@ -20,4 +20,4 @@ size_t wcsxfrm(wchar_t *dst,const wchar_t *src, size_t n)
     *dst = 0;
   }
   return r;
-}
\ No newline at end of file
+}
index 003f7c8..6aeb3d1 100644 (file)
@@ -8,4 +8,4 @@ int _wtoi( const wchar_t *str )
 long _wtol( const wchar_t *str )
 {
        return (int)wcstol(str, 0, 10);
-}
\ No newline at end of file
+}
index baa889e..e2b6e66 100644 (file)
@@ -22,4 +22,4 @@ unsigned long _getdrives(void)
     //fixme get logical drives
     //return GetLogicalDrives();
      return 5;  // drive A and C
-}
\ No newline at end of file
+}
index 9c91383..2efd11a 100644 (file)
@@ -4,4 +4,4 @@ int _abnormal_termination(void)
 {
        printf("Abnormal Termination\n");
 //     return AbnormalTermination();
-}
\ No newline at end of file
+}
index a702265..b9f8b36 100644 (file)
@@ -16,4 +16,4 @@ struct _CONTEXT *ContextRecord,
 void *DispatcherContext)
 {
        printf("_except_handler2()\n");
-}
\ No newline at end of file
+}
index 0036504..5f42647 100644 (file)
@@ -16,4 +16,4 @@ struct _CONTEXT *ContextRecord,
 void *DispatcherContext)
 {
        printf("_except_handler3()\n");
-}
\ No newline at end of file
+}
index 4ff7e29..5d03db2 100644 (file)
@@ -25,4 +25,4 @@ int _fpieee_flt(
         )
 {
        return 0;
-}
\ No newline at end of file
+}
index 28257d6..140a104 100644 (file)
@@ -28,4 +28,4 @@ double _logb (double __x)
      : "=t" (__junk), "=u" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index 11e7cad..8932834 100644 (file)
@@ -50,4 +50,4 @@ int _wchmod(const wchar_t *filename, mode_t mode)
      return -1;
 
   return 1;
-}
\ No newline at end of file
+}
index 34848e4..4f03d43 100644 (file)
@@ -14,4 +14,4 @@ __int64 _lseeki64(int _fildes, __int64 _offset, int _whence)
 
   lo_pos = SetFilePointer((HANDLE)filehnd(_fildes), _offset, &hi_pos, _whence);
   return((((__int64)hi_pos) << 32) + lo_pos);
-}
\ No newline at end of file
+}
index 6619c30..9bde5e9 100644 (file)
@@ -23,4 +23,4 @@
 double acos (double __x)
 {
   return atan2 (sqrt (1.0 - __x * __x), __x);
-}
\ No newline at end of file
+}
index eedd338..5f912ba 100644 (file)
@@ -23,4 +23,4 @@
 double asin (double __x)
 {
   return atan2 (__x, sqrt (1.0 - __x * __x));
-}
\ No newline at end of file
+}
index c7a4728..d1df503 100644 (file)
@@ -31,4 +31,4 @@ double atan (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index e9ec855..f430c27 100644 (file)
@@ -12,4 +12,4 @@ double atan2 (double __y, double __x)
      : "=t" (__value) : "0" (__x), "u" (__y));
 
   return __value;
-}
\ No newline at end of file
+}
index fa0679a..2e1587a 100644 (file)
@@ -30,4 +30,4 @@ double fabs (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index 7c6cecd..823fc00 100644 (file)
@@ -33,4 +33,4 @@ double fmod (double __x, double __y)
      : "=t" (__value) : "0" (__x), "u" (__y) : "ax", "cc");
 
   return __value;
-}
\ No newline at end of file
+}
index 1f8bd09..fa0f618 100644 (file)
@@ -8,4 +8,4 @@ double _j1(double x)
 double _y1(double x)
 {
   return x;
-}
\ No newline at end of file
+}
index b3a7181..b641a81 100644 (file)
@@ -8,4 +8,4 @@ double _jn(int n, double x)
 double _yn(int n, double x) 
 {
        return x;
-}
\ No newline at end of file
+}
index 22cda21..65e9e25 100644 (file)
@@ -30,4 +30,4 @@ double ldexp (double __x, int __y)
      : "=t" (__value) : "0" (__x), "u" ((double) __y));
 
   return __value;
-}
\ No newline at end of file
+}
index 1788696..e9b7cb6 100644 (file)
@@ -32,4 +32,4 @@ double log (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index 19258c2..e198837 100644 (file)
@@ -32,4 +32,4 @@ double log10 (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index 18ff3cf..97e58a3 100644 (file)
@@ -30,4 +30,4 @@ double sin (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index d775407..47e5e5f 100644 (file)
@@ -29,4 +29,4 @@ double sqrt (double __x)
      : "=t" (__value) : "0" (__x));
 
   return __value;
-}
\ No newline at end of file
+}
index a367bc4..a43b9fc 100644 (file)
@@ -81,4 +81,4 @@ double        _CIsqrt (double x)
 double _CIfmod (double x, double y)
 {
        return fmod(x,y);
-}
\ No newline at end of file
+}
index ef6908f..f7d028b 100644 (file)
@@ -14,4 +14,4 @@
 int _ismbbkana(unsigned char c)
 {
   return ((_jctype+1)[(unsigned char)(c)] & (_KNJ_M|_KNJ_P));
-}
\ No newline at end of file
+}
index e0d97c7..fc04c8d 100644 (file)
@@ -12,4 +12,4 @@
 int _ismbbkpunct( unsigned int c )
 {
   return ((_jctype+1)[(unsigned char)(c)] & (_KNJ_P));
-}
\ No newline at end of file
+}
index d5560cf..08ff0a6 100644 (file)
@@ -5,4 +5,4 @@ int isleadbyte(char *mbstr)
 {
        return 0;
        //return IsDBCSLeadByteEx(0,*c);
-}
\ No newline at end of file
+}
index 01509c6..85c2701 100644 (file)
@@ -5,4 +5,4 @@
 int _ismbbalnum(unsigned char c)
 {
   return (isalnum(c) || _ismbbkalnum(c));
-}
\ No newline at end of file
+}
index cae3463..6c2ece2 100644 (file)
@@ -102,4 +102,4 @@ int _ismbcl1(unsigned int c)
 int _ismbcl2(unsigned int c)
 {
   return 0;
-}
\ No newline at end of file
+}
index ca458d6..d86781f 100644 (file)
@@ -5,4 +5,4 @@
 int _ismbbgraph(unsigned char c)
 {
   return (isgraph(c) || _ismbbkana(c));
-}
\ No newline at end of file
+}
index 8a5d639..446a598 100644 (file)
@@ -13,4 +13,4 @@
 int _ismbbkalnum( unsigned int c )
 {
   return ((_jctype+1)[(unsigned char)(c)] & (_KNJ_P));
-}
\ No newline at end of file
+}
index 15edc80..8b6d673 100644 (file)
@@ -10,4 +10,4 @@ int _ismbbpunct(unsigned char c)
 {
 // (0xA1 <= c <= 0xA6)
   return (ispunct(c) || _ismbbkana(c));
-}
\ No newline at end of file
+}
index 067005a..aeeff7e 100644 (file)
@@ -36,4 +36,4 @@ int _ismbstrail( const unsigned char *str, const unsigned char *t)
        }
                
        return _ismbbtrail(*s);
-}
\ No newline at end of file
+}
index 188905b..c05d80e 100644 (file)
@@ -21,4 +21,4 @@ unsigned short _mbcjistojms(unsigned short c)
     return ((c1 << 8) | c2);
   }
   return 0;
-}
\ No newline at end of file
+}
index d53888e..62c948d 100644 (file)
@@ -22,4 +22,4 @@ unsigned short _mbcjmstojis(unsigned short c)
     return ((c1 << 8) | c2);
   }
   return 0;
-}
\ No newline at end of file
+}
index 7dcb288..6cf434e 100644 (file)
@@ -9,4 +9,4 @@ void _mbccpy(unsigned char *dst, const unsigned char *src)
     return;
 
   memcpy(dst,src,_mbclen2(*src));
-}
\ No newline at end of file
+}
index 0ab0872..dc6a982 100644 (file)
@@ -3,4 +3,4 @@
 unsigned char * _mbscat(unsigned char *dst, const unsigned char *src)
 {
   return strcat(dst,src);
-}
\ No newline at end of file
+}
index 33b6d49..70c4c67 100644 (file)
@@ -3,4 +3,4 @@
 unsigned char * _mbschr(const unsigned char *str, unsigned int c)
 {
   return strchr(str,c);
-}
\ No newline at end of file
+}
index 86c05c2..3bc0d98 100644 (file)
@@ -4,4 +4,4 @@
 int _mbscmp(const unsigned char *str1, const unsigned char *str2)
 {
   return strcmp(str1,str2);
-}
\ No newline at end of file
+}
index c29b10e..247900a 100644 (file)
@@ -4,4 +4,4 @@
 unsigned char * _mbscpy(unsigned char *dst, const unsigned char *str)
 {
   return strcpy(dst,str);
-}
\ No newline at end of file
+}
index ba94cf6..0836f15 100644 (file)
@@ -11,4 +11,4 @@ unsigned char * _mbsdec(const unsigned char *str, const unsigned char *cur)
                s--;
 
        return s; 
-}
\ No newline at end of file
+}
index 9195f38..00dc9d0 100644 (file)
@@ -22,4 +22,4 @@ unsigned char * _mbsdup(const unsigned char *_s)
                return 0;
        _mbscpy(rv, _s);
        return rv;
-}
\ No newline at end of file
+}
index dbd861f..db88fed 100644 (file)
@@ -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));
-}
\ No newline at end of file
+}
index f656819..06386b2 100644 (file)
@@ -12,4 +12,4 @@ size_t _mbslen(const unsigned char *str)
                
        for (s = (unsigned char *)str; *s; s+=_mbclen2(*s),i++);
        return i;
-}
\ No newline at end of file
+}
index 22bee36..a875ab0 100644 (file)
@@ -56,3 +56,4 @@ unsigned char * _mbsnbcat(unsigned char *dst, const unsigned char *src, size_t n
        }
        return dst;
 }
+
index d1052b2..daa4484 100644 (file)
@@ -26,4 +26,4 @@ size_t _mbsnbcnt(const unsigned char *str, size_t n)
        }
        
        return (size_t)(s - str);
-}
\ No newline at end of file
+}
index 9e3fc8e..8e1011b 100644 (file)
@@ -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;
-}
\ No newline at end of file
+}
index 41573d6..e32cbd0 100644 (file)
@@ -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;
-}
\ No newline at end of file
+}
index dfce648..a2e21c0 100644 (file)
@@ -74,4 +74,4 @@ unsigned char * _mbsnbcpy(unsigned char *str1, const unsigned char *str2, size_t
                }
        } while (n > 0);
        return str1;
-}
\ No newline at end of file
+}
index 9a1f825..9b9c4f7 100644 (file)
@@ -13,4 +13,4 @@ unsigned int _mbsnextc (const unsigned char *src)
   else
      return *short_src;
   return 0;
-}
\ No newline at end of file
+}
index 7b54513..ef34bd1 100644 (file)
@@ -37,3 +37,4 @@ int _mbsnbicmp(const unsigned char *s1, const unsigned char *s2, size_t n)
   } while (n > 0);
   return 0;
 }
+
index e79e5d2..c163636 100644 (file)
@@ -8,4 +8,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;
-}
\ No newline at end of file
+}
index 09c5e4c..3cb3a49 100644 (file)
@@ -10,4 +10,4 @@ unsigned char * _mbsninc(const unsigned char *str, size_t n)
        }
 
        return s;
-}
\ No newline at end of file
+}
index b762eef..75befef 100644 (file)
@@ -61,4 +61,4 @@ unsigned char * _mbsnbset(unsigned char *src, unsigned int val, size_t count)
        }
 
        return src;
-}
\ No newline at end of file
+}
index bb372fd..5509c9d 100644 (file)
@@ -25,4 +25,4 @@ unsigned char * _mbsrev(unsigned char *s)
        
 
        return s;
-}
\ No newline at end of file
+}
index 796d90f..c9ca1ac 100644 (file)
@@ -13,4 +13,4 @@ size_t _mbsspn(const unsigned char *s1, const unsigned char *s2)
       goto cont;
   return (size_t)(p - 1) - (size_t)s1;
 // - (char *)s1);
-}
\ No newline at end of file
+}
index 7329ba5..37b8f36 100644 (file)
@@ -12,4 +12,4 @@ unsigned char * _mbsspnp(const unsigned char *s1, const unsigned char *s2)
     if (sc == c)
       goto cont;
   return (unsigned char *)p;
-}
\ No newline at end of file
+}
index 9af8248..ba0b862 100644 (file)
@@ -17,4 +17,4 @@ unsigned char *_mbsstr(const unsigned char *src1,const unsigned char *src2)
       src1 = (unsigned char *)_mbsinc(src1);
     }
   return NULL;
-}
\ No newline at end of file
+}
index 84e0104..fcd2f65 100644 (file)
@@ -50,4 +50,4 @@ unsigned char * _mbstok(unsigned char *s, const unsigned char *delim)
     } while (sc != 0);
   }
   /* NOTREACHED */
-}
\ No newline at end of file
+}
index ad9631c..aa35677 100644 (file)
@@ -13,4 +13,4 @@ size_t _mbstrlen( const char *string )
                i++;
        }
        return i;
-}
\ No newline at end of file
+}
index d93cf7a..2ed34ce 100644 (file)
@@ -8,4 +8,4 @@ int _spawnvpe(int nMode, const char* szPath, char* const* szaArgv, char* const*
 {
   return spawnve(nMode, szPath, szaArgv, szaEnv);
 }
-#endif
\ No newline at end of file
+#endif
index cf4b6c6..bd97858 100644 (file)
@@ -9,4 +9,4 @@ unsigned long __threadid (void)
 void *__threadhandle(void)
 {
    return GetCurrentThread();
-}
\ No newline at end of file
+}
index fe3e767..9509522 100644 (file)
@@ -13,4 +13,4 @@ void *_lsearch(const void *key, void *base, size_t *nelp, size_t width,
   memcpy(base + (*nelp*width), key, width);
   (*nelp)++;
   return base;
-}
\ No newline at end of file
+}
index fc09c8c..f7b3660 100644 (file)
@@ -108,4 +108,4 @@ int fflush(FILE *f)
 int _flushall( void )
 {
        return fflush(NULL);
-}
\ No newline at end of file
+}
index 2b130a2..a80ce3a 100644 (file)
@@ -9,4 +9,4 @@ int _fgetchar(void)
 int _fgetwchar(void)
 {
   return _getch();
-}
\ No newline at end of file
+}
index 2e8c1d6..4af1ee9 100644 (file)
@@ -79,7 +79,7 @@ _flsbuf(int c, FILE *f)
     c1 = c;           
     rn = 1;           
     base = &c1;       
-    f->_cnt = 0;      
+    f->_cnt = 0;
   }                   
   else /* _IOFBF */
   {
@@ -106,7 +106,7 @@ _flsbuf(int c, FILE *f)
     base += n;
   }
 
-  
+
   if ((f->_flag&(_IOLBF|_IONBF)) == 0)
   {
     f->_cnt--;
@@ -176,4 +176,4 @@ int cntcr(char *bufp, int bufsiz)
        }
 
        return cr;
-}
\ No newline at end of file
+}
index ab45c80..4beda1c 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include <stdarg.h>
 #include <msvcrt/stdio.h>
-#include <msvcrt/stdarg.h>
 #include <msvcrt/malloc.h>
 #include <msvcrt/internal/file.h>
 
@@ -12,7 +12,7 @@ int _isinf(double x);
 
 
 int
-__vfprintf (FILE *fp, const char *fmt0, va_list argp);
+__vfprintf (FILE *fp, const char *fmt0, va_list args);
 
 int
 vfprintf(FILE *f, const char *fmt, va_list ap)
@@ -404,7 +404,7 @@ static void numberfl(FILE * f, long double __n, char exp_sign,  int size, int pr
                // # flags forces a . and prevents trucation of trailing zero's
                if ( precision > 0 ) {
                        //frac = modfl(__n,&intr);
-       
+
                        i = precision-1;
                        while ( i >= 0  ) {
                                frac*=10.0L;
index a802416..909901b 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-
+#include <stdarg.h>
 #include <msvcrt/errno.h>
 #include <limits.h>
 #include <msvcrt/ctype.h>
-#include <msvcrt/stdarg.h>
 #include <msvcrt/stdio.h>
 #include <msvcrt/stdlib.h>
 #include <msvcrt/string.h>
index b77fb19..96c8859 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+#include <stdarg.h>
 #include <msvcrt/stdio.h>
-#include <msvcrt/stdarg.h>
 #include <msvcrt/malloc.h>
 #include <msvcrt/internal/file.h>
 
index 7951245..38f03db 100644 (file)
@@ -8,4 +8,4 @@ int _wtoi( const wchar_t *str )
 long _wtol( const wchar_t *str )
 {
        return (int)wcstol(str, 0, 10);
-}
\ No newline at end of file
+}
index 9d641b1..42fd26b 100644 (file)
@@ -6,4 +6,4 @@ _memccpy (void *to, const void *from,int c,size_t count)
 {
        memcpy(to,from,count);
        return memchr(to,c,count);
-}
\ No newline at end of file
+}
index 266cfb3..8c51739 100644 (file)
@@ -25,4 +25,4 @@ char* _strset (char* szToFill, int szFill)
                
        }
        return t;
-}
\ No newline at end of file
+}
index c45f4c4..96831ed 100644 (file)
@@ -261,4 +261,4 @@ wcsftime(wchar_t *s, size_t maxsize, const wchar_t *format, const struct tm *t)
   free(f);
   free(x);
   return 0;
-}
\ No newline at end of file
+}
index ddde6d6..cfdcfd7 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.65 2001/08/21 20:13:06 chorns Exp $
+# $Id: makefile,v 1.66 2001/09/23 22:14:09 chorns Exp $
 
 PATH_TO_TOP = ../..
 
@@ -9,7 +9,8 @@ TARGET_NAME = ntdll
 TARGET_CFLAGS = -D__NTDLL__
 
 TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
-  -Wl,--section-alignment,0x1000
+  -Wl,--section-alignment,0x1000 \
+  -nostartfiles
 
 TARGET_GCCLIBS = gcc
 
index fae6194..9fe3058 100644 (file)
@@ -6,4 +6,4 @@ _memccpy (void *to, const void *from,int c,size_t count)
 {
        memcpy(to,from,count);
        return memchr(to,c,count);
-}
\ No newline at end of file
+}
index b59621a..b26ba92 100644 (file)
@@ -10,4 +10,4 @@ void * memset(void *src,int val,size_t count)
                count--;
        }
        return src;
-}
\ No newline at end of file
+}
index 237ca02..e2adfc7 100644 (file)
@@ -54,6 +54,7 @@ NtSystemDebugControl(DEBUG_CONTROL_CODE ControlCode,
 #ifdef KDBG
       LdrLoadUserModuleSymbols((PLDR_MODULE)InputBuffer);
 #endif /* KDBG */
+      break;
   }
   return STATUS_SUCCESS;
 }
index 1b14301..2a370b2 100644 (file)
@@ -1 +1 @@
-typedef ULONG HCLIP;
\ No newline at end of file
+typedef ULONG HCLIP;
index f026f90..d3f9a24 100644 (file)
@@ -29,7 +29,8 @@ rcopy$(EXE_POSTFIX): rcopy.c
 endif
 
 rdel$(EXE_POSTFIX): rdel.c
-       $(HOST_CC) $(CFLAGS) -liberty rdel.c -o rdel$(EXE_POSTFIX)
+       $(HOST_CC) $(CFLAGS) rdel.c -o rdel$(EXE_POSTFIX)
+#      $(HOST_CC) $(CFLAGS) -liberty rdel.c -o rdel$(EXE_POSTFIX)
 
 ifeq ($(HOST),mingw32-linux)
 rmkdir$(EXE_POSTFIX): rmkdir.c