Speed up compilation of advapi32
Modified: trunk/reactos/lib/advapi32/advapi32.h
Modified: trunk/reactos/lib/advapi32/advapi32.xml
Modified: trunk/reactos/lib/advapi32/crypt/crypt.c
Modified: trunk/reactos/lib/advapi32/crypt/crypt.h
Modified: trunk/reactos/lib/advapi32/crypt/crypt_md4.c
Modified: trunk/reactos/lib/advapi32/crypt/crypt_md5.c
_____
Modified: trunk/reactos/lib/advapi32/advapi32.h
--- trunk/reactos/lib/advapi32/advapi32.h 2005-11-27 12:28:45 UTC
(rev 19682)
+++ trunk/reactos/lib/advapi32/advapi32.h 2005-11-27 12:57:35 UTC
(rev 19683)
@@ -5,6 +5,8 @@
* PURPOSE: Win32 Advanced API Libary Header
* PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
*/
+#ifndef __ADVAPI32_H
+#define __ADVAPI32_H
/* INCLUDES
******************************************************************/
@@ -140,4 +142,4 @@
DWORD CheckNtMartaPresent(VOID);
-/* EOF */
+#endif /* __ADVAPI32_H */
_____
Modified: trunk/reactos/lib/advapi32/advapi32.xml
--- trunk/reactos/lib/advapi32/advapi32.xml 2005-11-27 12:28:45 UTC
(rev 19682)
+++ trunk/reactos/lib/advapi32/advapi32.xml 2005-11-27 12:57:35 UTC
(rev 19683)
@@ -13,42 +13,52 @@
<library>wine</library>
<pch>advapi32.h</pch>
<directory name="crypt">
- <file>crypt.c</file>
- <file>crypt_des.c</file>
- <file>crypt_lmhash.c</file>
- <file>crypt_md4.c</file>
- <file>crypt_md5.c</file>
- <file>crypt_sha.c</file>
+ <compilationunit name="crypt_unit.c">
+ <file>crypt.c</file>
+ <file>crypt_des.c</file>
+ <file>crypt_lmhash.c</file>
+ <file>crypt_md4.c</file>
+ <file>crypt_md5.c</file>
+ <file>crypt_sha.c</file>
+ </compilationunit>
</directory>
<directory name="misc">
- <file>dllmain.c</file>
- <file>hwprofiles.c</file>
- <file>logon.c</file>
- <file>msi.c</file>
- <file>shutdown.c</file>
- <file>sysfunc.c</file>
+ <compilationunit name="misc.c">
+ <file>dllmain.c</file>
+ <file>hwprofiles.c</file>
+ <file>logon.c</file>
+ <file>msi.c</file>
+ <file>shutdown.c</file>
+ <file>sysfunc.c</file>
+ </compilationunit>
</directory>
<directory name="reg">
<file>reg.c</file>
</directory>
<directory name="sec">
- <file>ac.c</file>
- <file>audit.c</file>
- <file>lsa.c</file>
- <file>misc.c</file>
- <file>sec.c</file>
- <file>sid.c</file>
- <file>trustee.c</file>
+ <compilationunit name="sec_unit.c">
+ <file>ac.c</file>
+ <file>audit.c</file>
+ <file>lsa.c</file>
+ <file>misc.c</file>
+ <file>sec.c</file>
+ <file>sid.c</file>
+ <file>trustee.c</file>
+ </compilationunit>
</directory>
<directory name="service">
- <file>eventlog.c</file>
- <file>scm.c</file>
- <file>sctrl.c</file>
- <file>undoc.c</file>
+ <compilationunit name="service.c">
+ <file>eventlog.c</file>
+ <file>scm.c</file>
+ <file>sctrl.c</file>
+ <file>undoc.c</file>
+ </compilationunit>
</directory>
<directory name="token">
- <file>privilege.c</file>
- <file>token.c</file>
+ <compilationunit name="token_unit.c">
+ <file>privilege.c</file>
+ <file>token.c</file>
+ </compilationunit>
</directory>
<file>advapi32.rc</file>
</module>
_____
Modified: trunk/reactos/lib/advapi32/crypt/crypt.c
--- trunk/reactos/lib/advapi32/crypt/crypt.c 2005-11-27 12:28:45 UTC
(rev 19682)
+++ trunk/reactos/lib/advapi32/crypt/crypt.c 2005-11-27 12:57:35 UTC
(rev 19683)
@@ -32,7 +32,22 @@
#define NDEBUG
#include <debug.h>
+/*
+ * Note: this code is harmless on little-endian machines.
+ */
+VOID byteReverse(unsigned char *buf, unsigned longs)
+{
+ unsigned int t;
+ do
+ {
+ t = (unsigned int)((unsigned)buf[3] << 8 | buf[2]) << 16 |
+ ((unsigned)buf[1] << 8 | buf[0]);
+ *(unsigned int *)buf = t;
+ buf += 4;
+ } while (--longs);
+}
+
HWND crypt_hWindow = 0;
#define CRYPT_ReturnLastError(err) {SetLastError(err); return FALSE;}
_____
Modified: trunk/reactos/lib/advapi32/crypt/crypt.h
--- trunk/reactos/lib/advapi32/crypt/crypt.h 2005-11-27 12:28:45 UTC
(rev 19682)
+++ trunk/reactos/lib/advapi32/crypt/crypt.h 2005-11-27 12:57:35 UTC
(rev 19683)
@@ -83,4 +83,6 @@
extern unsigned char *CRYPT_DEShash( unsigned char *dst, const unsigned
char *key,
const unsigned char *src );
+extern VOID byteReverse(unsigned char *buf, unsigned longs);
+
#endif /* __WINE_CRYPT_H_ */
_____
Modified: trunk/reactos/lib/advapi32/crypt/crypt_md4.c
--- trunk/reactos/lib/advapi32/crypt/crypt_md4.c 2005-11-27
12:28:45 UTC (rev 19682)
+++ trunk/reactos/lib/advapi32/crypt/crypt_md4.c 2005-11-27
12:57:35 UTC (rev 19683)
@@ -137,22 +137,6 @@
}
/*
- * Note: this code is harmless on little-endian machines.
- */
-static VOID byteReverse(unsigned char *buf, unsigned longs)
-{
- unsigned int t;
-
- do
- {
- t = (unsigned int)((unsigned)buf[3] << 8 | buf[2]) << 16 |
- ((unsigned)buf[1] << 8 | buf[0]);
- *(unsigned int *)buf = t;
- buf += 4;
- } while (--longs);
-}
-
-/*
* Start MD4 accumulation. Set bit count to 0 and buffer to mysterious
* initialization constants.
*/
_____
Modified: trunk/reactos/lib/advapi32/crypt/crypt_md5.c
--- trunk/reactos/lib/advapi32/crypt/crypt_md5.c 2005-11-27
12:28:45 UTC (rev 19682)
+++ trunk/reactos/lib/advapi32/crypt/crypt_md5.c 2005-11-27
12:57:35 UTC (rev 19683)
@@ -147,22 +147,6 @@
}
/*
- * Note: this code is harmless on little-endian machines.
- */
-static VOID byteReverse(unsigned char *buf, unsigned longs)
-{
- unsigned int t;
-
- do
- {
- t = (unsigned int)((unsigned)buf[3] << 8 | buf[2]) << 16 |
- ((unsigned)buf[1] << 8 | buf[0]);
- *(unsigned int *)buf = t;
- buf += 4;
- } while (--longs);
-}
-
-/*
* Start MD5 accumulation. Set bit count to 0 and buffer to mysterious
* initialization constants.
*/
Show replies by date