* Build crtdll
* Add module attribute "mangledsymbols" to control --kill-at option for dlltool in order to allow preservation of mangled symbols
Added: branches/xmlbuildsystem/reactos/lib/crtdll/crtdll.xml
Deleted: branches/xmlbuildsystem/reactos/lib/crtdll/quad/
Modified: branches/xmlbuildsystem/reactos/lib/directory.xml
Added: branches/xmlbuildsystem/reactos/lib/msvcrt/crt.xml
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isalnum.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isascii.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/iscntrl.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isgraph.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isprint.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/ispunct.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isupper.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/math/pow.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/msvcrt.def
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/msvcrt.xml
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/stdio/sprintf.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/stdio/sscanf.c
Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/stdio/vsprintf.c
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/backend/mingw/modulehandler.cpp
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/module.cpp
Modified: branches/xmlbuildsystem/reactos/tools/rbuild/rbuild.h

Added: branches/xmlbuildsystem/reactos/lib/crtdll/crtdll.xml
--- branches/xmlbuildsystem/reactos/lib/crtdll/crtdll.xml	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/crtdll/crtdll.xml	2005-01-22 22:00:17 UTC (rev 13221)
@@ -0,0 +1,151 @@
+<module name="crtdll" type="win32dll" mangledsymbols="true">
+	<linkerflag>-nostartfiles</linkerflag>
+	<linkerflag>-lgcc</linkerflag>
+	<importlibrary definition="crtdll.def" />
+	<include base="crtdll">.</include>
+	<define name="_DISABLE_TIDENTS" />
+	<define name="__USE_W32API" />
+	<define name="_WIN32_IE">0x600</define>
+	<define name="_WIN32_WINNT">0x501</define>
+	<define name="__REACTOS__" />
+	<define name="USE_MSVCRT_PREFIX" />
+	<define name="_MSVCRT_LIB_" />
+	<library>string</library>
+	<library>kernel32</library>
+	<library>ntdll</library>
+	<library>crt</library>
+	<directory name="ctype">
+		<file>isctype.c</file>
+	</directory>
+	<directory name="except">
+		<file>abnorter.c</file>
+		<file>exhand2.c</file>
+		<file>matherr.c</file>
+		<file>unwind.c</file>
+	</directory>
+	<directory name="io">
+		<file>create.c</file>
+		<file>dup.c</file>
+		<file>eof.c</file>
+		<file>find.c</file>
+		<file>fmode.c</file>
+		<file>lseek.c</file>
+		<file>open.c</file>
+		<file>pipe.c</file>
+		<file>read.c</file>
+		<file>unlink.c</file>
+		<file>write.c</file>
+	</directory>
+	<directory name="math">
+		<file>acosh.c</file>
+		<file>asinh.c</file>
+		<file>atanh.c</file>
+		<file>ceil.c</file>
+		<file>floor.c</file>
+		<file>huge_val.c</file>
+	</directory>
+	<directory name="malloc">
+		<file>expand.c</file>
+		<file>heap.c</file>
+	</directory>
+	<directory name="misc">
+		<file>amsg.c</file>
+		<file>debug.c</file>
+		<file>dllmain.c</file>
+		<file>GetArgs.c</file>
+		<file>purecall.c</file>
+		<file>setnew.c</file>
+	</directory>
+	<directory name="process">
+		<file>_cwait.c</file>
+		<file>_system.c</file>
+		<file>spawnl.c</file>
+		<file>spawnlp.c</file>
+		<file>spawnlpe.c</file>
+		<file>spawnvp.c</file>
+		<file>spawnv.c</file>
+		<file>spawnve.c</file>
+		<file>spawnle.c</file>
+		<file>execl.c</file>
+		<file>execlp.c</file>
+		<file>execlpe.c</file>
+		<file>execvpe.c</file>
+		<file>execvp.c</file>
+		<file>execv.c</file>
+		<file>execle.c</file>
+		<file>execve.c</file>
+		<file>thread.c</file>
+	</directory>
+	<directory name="signal">
+		<file>xcptfil.c</file>
+		<file>xcptinfo.c</file>
+	</directory>
+	<directory name="stdio">
+		<file>getenv.c</file>
+		<file>ferror.c</file>
+		<file>fflush.c</file>
+		<file>fgetchar.c</file>
+		<file>fgets.c</file>
+		<file>filbuf.c</file>
+		<file>fileno.c</file>
+		<file>fopen.c</file>
+		<file>fputchar.c</file>
+		<file>fputs.c</file>
+		<file>fread.c</file>
+		<file>freopen.c</file>
+		<file>fscanf.c</file>
+		<file>frlist.c</file>
+		<file>fsopen.c</file>
+		<file>ftell.c</file>
+		<file>fwrite.c</file>
+		<file>getc.c</file>
+		<file>getchar.c</file>
+		<file>gets.c</file>
+		<file>getw.c</file>
+		<file>popen.c</file>
+		<file>printf.c</file>
+		<file>putc.c</file>
+		<file>putchar.c</file>
+		<file>puts.c</file>
+		<file>remove.c</file>
+		<file>setbuffe.c</file>
+		<file>setlineb.c</file>
+		<file>stdiohk.c</file>
+	</directory>
+	<directory name="stdlib">
+		<file>errno.c</file>
+		<file>fullpath.c</file>
+		<file>itow.c</file>
+		<file>malloc.c</file>
+		<file>mbstowcs.c</file>
+		<file>putenv.c</file>
+		<file>rand.c</file>
+		<file>wcstomb.c</file>
+	</directory>
+	<directory name="string">
+		<file>lasttok.c</file>
+		<file>strerror.c</file>
+	</directory>
+	<directory name="sys_stat">
+		<file>fstat.c</file>
+		<file>ftime.c</file>
+		<file>systime.c</file>
+		<file>stat.c</file>
+	</directory>
+	<directory name="tchar">
+		<file>strdec.c</file>
+		<file>strinc.c</file>
+		<file>strninc.c</file>
+		<file>strncnt.c</file>
+		<file>strnextc.c</file>
+		<file>strspnp.c</file>
+	</directory>
+	<directory name="time">
+		<file>tz_vars.c</file>
+	</directory>
+	<directory name="wchar">
+		<file>wlasttok.c</file>
+		<file>wcscoll.c</file>
+	</directory>
+	<file>crtdll.rc</file>
+</module>

Modified: branches/xmlbuildsystem/reactos/lib/directory.xml
--- branches/xmlbuildsystem/reactos/lib/directory.xml	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/directory.xml	2005-01-22 22:00:17 UTC (rev 13221)
@@ -28,6 +28,9 @@
 <directory name="cpl">
 	<xi:include href="cpl/directory.xml" />
 </directory>
+<directory name="crtdll">
+	<xi:include href="crtdll/crtdll.xml" />
+</directory>
 <directory name="dnsapi">
 	<xi:include href="dnsapi/dnsapi.xml" />
 </directory>
@@ -50,6 +53,7 @@
 	<xi:include href="libwine/libwine.xml" />
 </directory>
 <directory name="msvcrt">
+	<xi:include href="msvcrt/crt.xml" />
 	<xi:include href="msvcrt/msvcrt.xml" />
 </directory>
 <directory name="ntdll">

Added: branches/xmlbuildsystem/reactos/lib/msvcrt/crt.xml
--- branches/xmlbuildsystem/reactos/lib/msvcrt/crt.xml	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/crt.xml	2005-01-22 22:00:17 UTC (rev 13221)
@@ -0,0 +1,268 @@
+<module name="crt" type="staticlibrary">
+	<include base="crt">.</include>
+	<define name="_DISABLE_TIDENTS" />
+	<define name="__USE_W32API" />
+	<define name="_WIN32_IE">0x600</define>
+	<define name="_WIN32_WINNT">0x501</define>
+	<define name="__REACTOS__" />
+	<define name="USE_MSVCRT_PREFIX" />
+	<define name="_MSVCRT_LIB_" />
+	<define name="_MT" />
+	<directory name="ctype">
+		<file>ctype.c</file>
+		<file>isalnum.c</file>
+		<file>isascii.c</file>
+		<file>iscntrl.c</file>
+		<file>isgraph.c</file>
+		<file>isprint.c</file>
+		<file>ispunct.c</file>
+		<file>isupper.c</file>
+	</directory>
+	<directory name="direct">
+		<file>chdir.c</file>
+		<file>chdrive.c</file>
+		<file>getcwd.c</file>
+		<file>getdcwd.c</file>
+		<file>getdfree.c</file>
+		<file>getdrive.c</file>
+		<file>mkdir.c</file>
+		<file>rmdir.c</file>
+	</directory>
+	<directory name="float">
+		<file>chgsign.c</file>
+		<file>clearfp.c</file>
+		<file>cntrlfp.c</file>
+		<file>copysign.c</file>
+		<file>fpclass.c</file>
+		<file>fpecode.c</file>
+		<file>fpreset.c</file>
+		<file>isnan.c</file>
+		<file>logb.c</file>
+		<file>nafter.c</file>
+		<file>scalb.c</file>
+		<file>statfp.c</file>
+	</directory>
+	<directory name="io">
+		<file>access.c</file>
+		<file>chmod.c</file>
+		<file>chsize.c</file>
+		<file>close.c</file>
+		<file>commit.c</file>
+		<file>dup2.c</file>
+		<file>filelen.c</file>
+		<file>isatty.c</file>
+		<file>locking.c</file>
+		<file>mktemp.c</file>
+		<file>setmode.c</file>
+		<file>sopen.c</file>
+		<file>tell.c</file>
+		<file>umask.c</file>
+		<file>utime.c</file>
+		<file>write.c</file>
+	</directory>
+	<directory name="locale">
+		<file>locale.c</file>
+	</directory>
+	<directory name="math">
+		<file>acos.c</file>
+		<file>asin.c</file>
+		<file>atan2.c</file>
+		<file>atan.c</file>
+		<file>cabs.c</file>
+		<file>cos.c</file>
+		<file>cosh.c</file>
+		<file>exp.c</file>
+		<file>fabs.c</file>
+		<file>fmod.c</file>
+		<file>frexp.c</file>
+		<file>hypot.c</file>
+		<file>j0_y0.c</file>
+		<file>j1_y1.c</file>
+		<file>jn_yn.c</file>
+		<file>ldexp.c</file>
+		<file>log10.c</file>
+		<file>log.c</file>
+		<file>modf.c</file>
+		<file>pow.c</file>
+		<file>sin.c</file>
+		<file>sinh.c</file>
+		<file>sqrt.c</file>
+		<file>stubs.c</file>
+		<file>tan.c</file>
+		<file>tanh.c</file>
+	</directory>
+	<directory name="mbstring">
+		<file>hanzen.c</file>
+		<file>ischira.c</file>
+		<file>iskana.c</file>
+		<file>iskmoji.c</file>
+		<file>iskpun.c</file>
+		<file>islead.c</file>
+		<file>islwr.c</file>
+		<file>ismbal.c</file>
+		<file>ismbaln.c</file>
+		<file>ismbc.c</file>
+		<file>ismbgra.c</file>
+		<file>ismbkaln.c</file>
+		<file>ismblead.c</file>
+		<file>ismbpri.c</file>
+		<file>ismbpun.c</file>
+		<file>ismbtrl.c</file>
+		<file>isuppr.c</file>
+		<file>jistojms.c</file>
+		<file>jmstojis.c</file>
+		<file>mbbtype.c</file>
+		<file>mbccpy.c</file>
+		<file>mbclen.c</file>
+		<file>mbscat.c</file>
+		<file>mbschr.c</file>
+		<file>mbscmp.c</file>
+		<file>mbscoll.c</file>
+		<file>mbscpy.c</file>
+		<file>mbscspn.c</file>
+		<file>mbsdec.c</file>
+		<file>mbsdup.c</file>
+		<file>mbsicmp.c</file>
+		<file>mbsicoll.c</file>
+		<file>mbsinc.c</file>
+		<file>mbslen.c</file>
+		<file>mbslwr.c</file>
+		<file>mbsncat.c</file>
+		<file>mbsnccnt.c</file>
+		<file>mbsncmp.c</file>
+		<file>mbsncoll.c</file>
+		<file>mbsncpy.c</file>
+		<file>mbsnextc.c</file>
+		<file>mbsnicmp.c</file>
+		<file>mbsnicoll.c</file>
+		<file>mbsninc.c</file>
+		<file>mbsnset.c</file>
+		<file>mbspbrk.c</file>
+		<file>mbsrchr.c</file>
+		<file>mbsrev.c</file>
+		<file>mbsset.c</file>
+		<file>mbsspn.c</file>
+		<file>mbsspnp.c</file>
+		<file>mbsstr.c</file>
+		<file>mbstok.c</file>
+		<file>mbstrlen.c</file>
+		<file>mbsupr.c</file>
+	</directory>
+	<directory name="misc">
+		<file>amsg.c</file>
+		<file>assert.c</file>
+		<file>environ.c</file>
+		<file>initterm.c</file>
+	</directory>
+	<directory name="process">
+		<file>dll.c</file>
+		<file>procid.c</file>
+		<file>threadid.c</file>
+	</directory>
+	<directory name="search">
+		<file>lfind.c</file>
+		<file>lsearch.c</file>
+	</directory>
+	<directory name="setjmp">
+		<directory name="i386">
+			<file>setjmp.s</file>
+		</directory>
+	</directory>
+	<directory name="signal">
+		<file>signal.c</file>
+	</directory>
+	<directory name="stdio">
+		<file>allocfil.c</file>
+		<file>clearerr.c</file>
+		<file>fclose.c</file>
+		<file>fdopen.c</file>
+		<file>feof.c</file>
+		<file>fgetc.c</file>
+		<file>fgetpos.c</file>
+		<file>flsbuf.c</file>
+		<file>fprintf.c</file>
+		<file>fputc.c</file>
+		<file>fseek.c</file>
+		<file>fsetpos.c</file>
+		<file>fwalk.c</file>
+		<file>getw.c</file>
+		<file>putw.c</file>
+		<file>rename.c</file>
+		<file>rewind.c</file>
+		<file>rmtmp.c</file>
+		<file>scanf.c</file>
+		<file>setbuf.c</file>
+		<file>setvbuf.c</file>
+		<file>sprintf.c</file>
+		<file>sscanf.c</file>
+		<file>stdhnd.c</file>
+		<file>tempnam.c</file>
+		<file>tmpfile.c</file>
+		<file>tmpnam.c</file>
+		<file>ungetc.c</file>
+		<file>vfprintf.c</file>
+		<file>vfscanf.c</file>
+		<file>vfwprint.c</file>
+		<file>vprintf.c</file>
+		<file>vscanf.c</file>
+		<file>vsprintf.c</file>
+		<file>vsscanf.c</file>
+	</directory>
+	<directory name="stdlib">
+		<file>_exit.c</file>
+		<file>abort.c</file>
+		<file>abs.c</file>
+		<file>atexit.c</file>
+		<file>atof.c</file>
+		<file>atoi.c</file>
+		<file>atol.c</file>
+		<file>bsearch.c</file>
+		<file>div.c</file>
+		<file>ecvt.c</file>
+		<file>ecvtbuf.c</file>
+		<file>fcvt.c</file>
+		<file>fcvtbuf.c</file>
+		<file>gcvt.c</file>
+		<file>itoa.c</file>
+		<file>labs.c</file>
+		<file>ldiv.c</file>
+		<file>makepath.c</file>
+		<file>obsol.c</file>
+		<file>rot.c</file>
+		<file>senv.c</file>
+		<file>splitp.c</file>
+		<file>strtod.c</file>
+		<file>strtol.c</file>
+		<file>strtoul.c</file>
+		<file>swab.c</file>
+		<file>wcstod.c</file>
+	</directory>
+	<directory name="string">
+		<file>lasttok.c</file>
+		<file>strcoll.c</file>
+		<file>strdup.c</file>
+		<file>strrev.c</file>
+		<file>strset.c</file>
+		<file>strtok.c</file>
+		<file>strxfrm.c</file>
+	</directory>
+	<directory name="sys_stat">
+		<file>futime.c</file>
+	</directory>
+	<directory name="time">
+		<file>clock.c</file>
+		<file>ctime.c</file>
+		<file>difftime.c</file>
+		<file>strdate.c</file>
+		<file>strftime.c</file>
+		<file>strtime.c</file>
+		<file>time.c</file>
+	</directory>
+	<directory name="wstring">
+		<file>wcsdup.c</file>
+		<file>wcsrev.c</file>
+		<file>wcsset.c</file>
+		<file>wcstok.c</file>
+		<file>wcsxfrm.c</file>
+	</directory>
+</module>

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isalnum.c
--- branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isalnum.c	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isalnum.c	2005-01-22 22:00:17 UTC (rev 13221)
@@ -9,16 +9,6 @@
  */
 #include <msvcrt/ctype.h>
 
-
-#undef isalnum
-/*
- * @implemented
- */
-int isalnum(int c)
-{
-    return _isctype(c, _ALPHA | _DIGIT);
-}
-
 #undef iswalnum
 /*
  * @implemented

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isascii.c
--- branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isascii.c	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isascii.c	2005-01-22 22:00:17 UTC (rev 13221)
@@ -13,14 +13,6 @@
 /*
  * @implemented
  */
-int __isascii(int c)
-{
-    return (!((c)&(~0x7f)));
-}
-
-/*
- * @implemented
- */
 int iswascii(wint_t c)
 {
     return __isascii(c);

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/iscntrl.c
--- branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/iscntrl.c	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/iscntrl.c	2005-01-22 22:00:17 UTC (rev 13221)
@@ -1,16 +1,6 @@
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
 #include <msvcrt/ctype.h>
 
-
-#undef iscntrl
-/*
- * @implemented
- */
-int iscntrl(int c)
-{
-    return _isctype(c, _CONTROL);
-}
-
 #undef iswcntrl
 /*
  * @implemented

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isgraph.c
--- branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isgraph.c	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isgraph.c	2005-01-22 22:00:17 UTC (rev 13221)
@@ -1,15 +1,6 @@
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
 #include <msvcrt/ctype.h>
 
-#undef isgraph
-/*
- * @implemented
- */
-int isgraph(int c)
-{
-  return _isctype(c,_PUNCT | _ALPHA | _DIGIT);
-}
-
 #undef iswgraph
 /*
  * @implemented

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isprint.c
--- branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isprint.c	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isprint.c	2005-01-22 22:00:17 UTC (rev 13221)
@@ -1,18 +1,9 @@
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
 #include <msvcrt/ctype.h>
 
-#undef isprint
 /*
  * @implemented
  */
-int isprint(int c)
-{
-  return _isctype(c,_BLANK | _PUNCT | _ALPHA | _DIGIT);
-}
-
-/*
- * @implemented
- */
 int iswprint(wint_t c)
 {
   return iswctype((unsigned short)c,_BLANK | _PUNCT | _ALPHA | _DIGIT);

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/ispunct.c
--- branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/ispunct.c	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/ispunct.c	2005-01-22 22:00:17 UTC (rev 13221)
@@ -1,16 +1,6 @@
 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
 #include <msvcrt/ctype.h>
 
-
-#undef ispunct
-/*
- * @implemented
- */
-int ispunct(int c)
-{
-    return _isctype(c, _PUNCT);
-}
-
 #undef iswpunct
 /*
  * @implemented

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isupper.c
--- branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isupper.c	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/ctype/isupper.c	2005-01-22 22:00:17 UTC (rev 13221)
@@ -3,13 +3,6 @@
 
 
 #undef isupper
-/*
- * @implemented
- */
-int isupper(int c)
-{
-    return _isctype(c, _UPPER);
-}
 
 /*
  * @implemented

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/math/pow.c
--- branches/xmlbuildsystem/reactos/lib/msvcrt/math/pow.c	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/math/pow.c	2005-01-22 22:00:17 UTC (rev 13221)
@@ -20,77 +20,6 @@
 
 #include <msvcrt/math.h>
 
-double pow (double __x, double __y);
-
-double __log2 (double __x);
-
-double __log2 (double __x)
-{
-  register double __value;
-#ifdef __GNUC__
-  __asm __volatile__
-    ("fld1\n\t"
-     "fxch\n\t"
-     "fyl2x"
-     : "=t" (__value) : "0" (__x));
-#else
-  //__value = linkme_log2(__x);
-  __value = 0;
-#endif /*__GNUC__*/
-  return __value;
-}
-
-/*
- * @implemented
- */
-double pow (double __x, double __y)
-{
-  register double __value;
-#ifdef __GNUC__
-  register double __exponent;
-  long __p = (long) __y;
-
-  if (__x == 0.0 && __y > 0.0)
-    return 0.0;
-  if (__y == (double) __p)
-    {
-      double __r = 1.0;
-      if (__p == 0)
-        return 1.0;
-      if (__p < 0)
-        {
-          __p = -__p;
-          __x = 1.0 / __x;
-        }
-      while (1)
-        {
-          if (__p & 1)
-            __r *= __x;
-          __p >>= 1;
-          if (__p == 0)
-            return __r;
-          __x *= __x;
-        }
-      /* NOTREACHED */
-    }
-  __asm __volatile__
-    ("fmul      %%st(1)         # y * log2(x)\n\t"
-     "fst       %%st(1)\n\t"
-     "frndint                   # int(y * log2(x))\n\t"
-     "fxch\n\t"
-     "fsub      %%st(1)         # fract(y * log2(x))\n\t"
-     "f2xm1                     # 2^(fract(y * log2(x))) - 1\n\t"
-     : "=t" (__value), "=u" (__exponent) :  "0" (__log2 (__x)), "1" (__y));
-  __value += 1.0;
-  __asm __volatile__
-    ("fscale"
-     : "=t" (__value) : "0" (__value), "u" (__exponent));
-#else
-  __value = linkme_pow(__x, __y);
-#endif /*__GNUC__*/
-  return __value;
-}
-
 long double powl (long double __x,long double __y)
 {
 	return pow(__x,__y/2)*pow(__x,__y/2);

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/msvcrt.def
--- branches/xmlbuildsystem/reactos/lib/msvcrt/msvcrt.def	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/msvcrt.def	2005-01-22 22:00:17 UTC (rev 13221)
@@ -116,7 +116,7 @@
 __fpecode
 __getmainargs
 __initenv DATA
-__isascii
+__isascii=NTDLL.__isascii
 __iscsym
 __iscsymf
 __lc_codepage
@@ -493,10 +493,10 @@
 _setmode
 ;_setsystime
 _sleep
-_snprintf
+_snprintf=msvcrt__snprintf
 ;_snscanf
 ;_snwscanf
-_snwprintf
+_snwprintf=msvcrt__snwprintf
 _sopen
 _spawnl
 _spawnle
@@ -554,8 +554,8 @@
 ;_utime64
 ;_vscprintf
 ;_vscwprintf
-_vsnprintf
-_vsnwprintf
+_vsnprintf=msvcrt__vsnprintf
+_vsnwprintf=msvcrt__vsnwprintf
 _waccess
 _wasctime
 _wchdir
@@ -706,17 +706,17 @@
 getwchar
 gmtime
 is_wctype
-isalnum
+isalnum=NTDLL.isalnum
 isalpha
-iscntrl
+iscntrl=NTDLL.iscntrl
 isdigit
-isgraph
+isgraph=NTDLL.isgraph
 isleadbyte
 islower
-isprint
-ispunct
+isprint=NTDLL.isprint
+ispunct=NTDLL.ispunct
 isspace
-isupper
+isupper=NTDLL.isupper
 iswalnum
 iswalpha
 iswascii
@@ -751,7 +751,7 @@
 mktime
 modf
 perror
-pow
+pow=NTDLL.pow
 printf
 putc
 putchar
@@ -772,10 +772,10 @@
 signal
 sin
 sinh
-sprintf
+sprintf=msvcrt_sprintf
 sqrt
 srand
-sscanf
+sscanf=msvcrt_sscanf
 strcat
 strchr
 strcmp
@@ -797,7 +797,7 @@
 strtol
 strtoul
 strxfrm
-swprintf
+swprintf=msvcrt_swprintf
 swscanf
 system
 tan
@@ -814,7 +814,7 @@
 vfprintf
 vfwprintf
 vprintf
-vsprintf
+vsprintf=msvcrt_vsprintf
 vswprintf
 vwprintf
 wcscat

Modified: branches/xmlbuildsystem/reactos/lib/msvcrt/msvcrt.xml
--- branches/xmlbuildsystem/reactos/lib/msvcrt/msvcrt.xml	2005-01-22 20:59:49 UTC (rev 13220)
+++ branches/xmlbuildsystem/reactos/lib/msvcrt/msvcrt.xml	2005-01-22 22:00:17 UTC (rev 13221)
@@ -1,4 +1,4 @@
-<module name="msvcrt" type="win32dll">
+<module name="msvcrt" type="win32dll" mangledsymbols="true">
 	<linkerflag>-nostartfiles</linkerflag>
 	<linkerflag>--enable-stdcall-fixup</linkerflag>
 	<linkerflag>-lgcc</linkerflag>
@@ -16,46 +16,20 @@
 	<library>string</library>
 	<library>kernel32</library>
 	<library>ntdll</library>
-	<directory name="conio">
-		<file>cgets.c</file>
-		<file>cprintf.c</file>
-		<file>cputs.c</file>
-		<file>cscanf.c</file>
-		<file>getch.c</file>
-		<file>getche.c</file>
-		<file>kbhit.c</file>
-		<file>putch.c</file>
-		<file>ungetch.c</file>
-	</directory>
+	<library>crt</library>
 	<directory name="ctype">
-		<file>ctype.c</file>
-		<file>isalnum.c</file>
 		<file>isalpha.c</file>
-		<file>isascii.c</file>
-		<file>iscntrl.c</file>
 		<file>iscsym.c</file>
 		<file>isctype.c</file>
 		<file>isdigit.c</file>
-		<file>isgraph.c</file>
 		<file>islower.c</file>
-		<file>isprint.c</file>
-		<file>ispunct.c</file>
 		<file>isspace.c</file>
-		<file>isupper.c</file>
 		<file>isxdigit.c</file>
 		<file>toascii.c</file>
 		<file>tolower.c</file>
 		<file>toupper.c</file>
 	</directory>
 	<directory name="direct">
-		<file>chdir.c</file>
-		<file>chdrive.c</file>
-		<file>getcwd.c</file>
-		<file>getdcwd.c</file>
-		<file>getdfree.c</file>
-		<file>getdrive.c</file>
-		<file>mkdir.c</file>
-		<file>rmdir.c</file>
 		<file>wchdir.c</file>
 		<file>wgetcwd.c</file>
 		<file>wgetdcwd.c</file>
@@ -70,161 +44,41 @@
 		<file>unwind.c</file>
 		<file>xcptfil.c</file>
 	</directory>
-	<directory name="float">
-		<file>chgsign.c</file>
-		<file>clearfp.c</file>
-		<file>cntrlfp.c</file>
-		<file>copysign.c</file>
-		<file>fpclass.c</file>
-		<file>fpecode.c</file>
-		<file>fpreset.c</file>
-		<file>isnan.c</file>
-		<file>logb.c</file>
-		<file>nafter.c</file>
-		<file>scalb.c</file>
-		<file>statfp.c</file>
-	</directory>
 	<directory name="io">
-		<file>access.c</file>
-		<file>chmod.c</file>
-		<file>chsize.c</file>
-		<file>close.c</file>
-		<file>commit.c</file>
 		<file>create.c</file>
-		<file>dup2.c</file>
 		<file>dup.c</file>
 		<file>eof.c</file>
-		<file>filelen.c</file>
 		<file>fileleni.c</file>
 		<file>find.c</file>
 		<file>fmode.c</file>
-		<file>isatty.c</file>
-		<file>locking.c</file>
 		<file>lseek.c</file>
 		<file>lseeki64.c</file>
-		<file>mktemp.c</file>
 		<file>open.c</file>
 		<file>pipe.c</file>
 		<file>read.c</file>
-		<file>setmode.c</file>
-		<file>sopen.c</file>
 		<file>stubs.c</file>
-		<file>tell.c</file>
 		<file>telli64.c</file>
-		<file>umask.c</file>
 		<file>unlink.c</file>
-		<file>utime.c</file>
 		<file>waccess.c</file>
 		<file>wchmod.c</file>
 		<file>wcreate.c</file>
 		<file>wfind.c</file>
 		<file>wmktemp.c</file>
 		<file>wopen.c</file>
-		<file>write.c</file>
 		<file>wunlink.c</file>
 		<file>wutime.c</file>
 	</directory>
-	<directory name="locale">
-		<file>locale.c</file>
-	</directory>
 	<directory name="math">
-		<file>acos.c</file>
 		<file>adjust.c</file>
-		<file>asin.c</file>
-		<file>atan2.c</file>
-		<file>atan.c</file>
-		<file>cabs.c</file>
 		<file>ceil.c</file>
-		<file>cos.c</file>
-		<file>cosh.c</file>
-		<file>exp.c</file>
-		<file>fabs.c</file>
 		<file>floor.c</file>
-		<file>fmod.c</file>
-		<file>frexp.c</file>
 		<file>huge_val.c</file>
-		<file>hypot.c</file>
-		<file>j0_y0.c</file>
-		<file>j1_y1.c</file>
-		<file>jn_yn.c</file>
-		<file>ldexp.c</file>
-		<file>log10.c</file>
-		<file>log.c</file>
 		<file>math.c</file>
-		<file>modf.c</file>
-		<file>pow.c</file>
-		<file>sin.c</file>
-		<file>sinh.c</file>
-		<file>sqrt.c</file>
-		<file>stubs.c</file>
-		<file>tan.c</file>
-		<file>tanh.c</file>
 	</directory>
-	<directory name="mbstring">
-		<file>hanzen.c</file>
-		<file>ischira.c</file>
-		<file>iskana.c</file>
-		<file>iskmoji.c</file>
-		<file>iskpun.c</file>
-		<file>islead.c</file>
-		<file>islwr.c</file>
-		<file>ismbal.c</file>
-		<file>ismbaln.c</file>
-		<file>ismbc.c</file>
-		<file>ismbgra.c</file>
-		<file>ismbkaln.c</file>
-		<file>ismblead.c</file>
-		<file>ismbpri.c</file>
-		<file>ismbpun.c</file>
-		<file>ismbtrl.c</file>
-		<file>isuppr.c</file>
-		<file>jistojms.c</file>
-		<file>jmstojis.c</file>
-		<file>mbbtype.c</file>
-		<file>mbccpy.c</file>
-		<file>mbclen.c</file>
-		<file>mbscat.c</file>
-		<file>mbschr.c</file>
-		<file>mbscmp.c</file>
-		<file>mbscoll.c</file>
-		<file>mbscpy.c</file>
-		<file>mbscspn.c</file>
-		<file>mbsdec.c</file>
-		<file>mbsdup.c</file>
-		<file>mbsicmp.c</file>
-		<file>mbsicoll.c</file>
-		<file>mbsinc.c</file>
-		<file>mbslen.c</file>
-		<file>mbslwr.c</file>
-		<file>mbsncat.c</file>
-		<file>mbsnccnt.c</file>
-		<file>mbsncmp.c</file>
-		<file>mbsncoll.c</file>
-		<file>mbsncpy.c</file>
-		<file>mbsnextc.c</file>
-		<file>mbsnicmp.c</file>
-		<file>mbsnicoll.c</file>
-		<file>mbsninc.c</file>
-		<file>mbsnset.c</file>
-		<file>mbspbrk.c</file>
-		<file>mbsrchr.c</file>
-		<file>mbsrev.c</file>
-		<file>mbsset.c</file>
-		<file>mbsspn.c</file>
-		<file>mbsspnp.c</file>
-		<file>mbsstr.c</file>
-		<file>mbstok.c</file>
-		<file>mbstrlen.c</file>
-		<file>mbsupr.c</file>
-	</directory>
 	<directory name="misc">
-		<file>amsg.c</file>
-		<file>assert.c</file>
 		<file>crtmain.c</file>
 		<file>dllmain.c</file>
-		<file>environ.c</file>
 		<file>getargs.c</file>
-		<file>initterm.c</file>
 		<file>lock.c</file>
 		<file>purecall.c</file>
 		<file>stubs.c</file>
@@ -233,134 +87,58 @@
 	<directory name="process">
 		<file>_cwait.c</file>
[truncated at 1000 lines; 418 more skipped]