From 03664157d69ec5523a5e996f0a8f1cd163db1159 Mon Sep 17 00:00:00 2001 From: Casper Hornstrup Date: Sun, 15 Aug 2004 17:03:15 +0000 Subject: [PATCH] 2004-08-15 Casper S. Hornstrup * lib/advapi32/.cvsignore: Ignore *.gch. * lib/advapi32/advapi32.h: New file. * lib/advapi32/*/*.c: Use pre-compiled header. svn path=/trunk/; revision=10553 --- reactos/ChangeLog | 6 ++++++ reactos/lib/advapi32/.cvsignore | 1 + reactos/lib/advapi32/advapi32.h | 9 +++++++++ reactos/lib/advapi32/makefile | 4 +++- reactos/lib/advapi32/misc/dllmain.c | 6 ++---- reactos/lib/advapi32/misc/hwprofiles.c | 6 +++--- reactos/lib/advapi32/misc/logon.c | 8 ++------ reactos/lib/advapi32/misc/shutdown.c | 7 ++----- reactos/lib/advapi32/misc/sysfunc.c | 5 +++-- reactos/lib/advapi32/reg/reg.c | 11 ++--------- reactos/lib/advapi32/sec/ac.c | 6 ++---- reactos/lib/advapi32/sec/audit.c | 6 ++---- reactos/lib/advapi32/sec/lsa.c | 6 ++---- reactos/lib/advapi32/sec/misc.c | 6 ++---- reactos/lib/advapi32/sec/sec.c | 7 ++----- reactos/lib/advapi32/sec/sid.c | 6 ++---- reactos/lib/advapi32/service/eventlog.c | 6 +----- reactos/lib/advapi32/service/scm.c | 9 ++------- reactos/lib/advapi32/service/sctrl.c | 9 ++------- reactos/lib/advapi32/service/undoc.c | 5 +++-- reactos/lib/advapi32/token/privilege.c | 6 ++---- reactos/lib/advapi32/token/token.c | 7 +++---- 22 files changed, 58 insertions(+), 84 deletions(-) create mode 100644 reactos/lib/advapi32/advapi32.h diff --git a/reactos/ChangeLog b/reactos/ChangeLog index a70f6f2bf58..234a2cf9401 100644 --- a/reactos/ChangeLog +++ b/reactos/ChangeLog @@ -1,3 +1,9 @@ +2004-08-15 Casper S. Hornstrup + + * lib/advapi32/.cvsignore: Ignore *.gch. + * lib/advapi32/advapi32.h: New file. + * lib/advapi32/*/*.c: Use pre-compiled header. + 2004-08-15 Casper S. Hornstrup * ntoskrnl/include/.cvsignore: New file. diff --git a/reactos/lib/advapi32/.cvsignore b/reactos/lib/advapi32/.cvsignore index 1f43e3d52d8..02b5d09a107 100644 --- a/reactos/lib/advapi32/.cvsignore +++ b/reactos/lib/advapi32/.cvsignore @@ -7,3 +7,4 @@ temp.exp *.map *.tmp *.o +*.gch diff --git a/reactos/lib/advapi32/advapi32.h b/reactos/lib/advapi32/advapi32.h new file mode 100644 index 00000000000..cb1c067ef6b --- /dev/null +++ b/reactos/lib/advapi32/advapi32.h @@ -0,0 +1,9 @@ +#include +#include +#include +#include +#include +#define NTOS_MODE_USER +#include +#include +#include diff --git a/reactos/lib/advapi32/makefile b/reactos/lib/advapi32/makefile index 9a96ad9753c..574c29c1a02 100644 --- a/reactos/lib/advapi32/makefile +++ b/reactos/lib/advapi32/makefile @@ -1,4 +1,4 @@ -# $Id: makefile,v 1.41 2004/06/17 09:07:12 ekohl Exp $ +# $Id: makefile,v 1.42 2004/08/15 17:03:14 chorns Exp $ PATH_TO_TOP = ../.. @@ -6,6 +6,8 @@ TARGET_TYPE = dynlink TARGET_NAME = advapi32 +TARGET_PCH = advapi32.h + TARGET_CFLAGS = -Wall -Werror -fno-builtin -D__USE_W32API # TARGET_CFLAGS += -DUNICODE diff --git a/reactos/lib/advapi32/misc/dllmain.c b/reactos/lib/advapi32/misc/dllmain.c index aa2607998ce..56c3e13f1f9 100644 --- a/reactos/lib/advapi32/misc/dllmain.c +++ b/reactos/lib/advapi32/misc/dllmain.c @@ -1,4 +1,4 @@ -/* $Id: dllmain.c,v 1.7 2003/02/02 19:26:07 hyperion Exp $ +/* $Id: dllmain.c,v 1.8 2004/08/15 17:03:14 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -9,9 +9,7 @@ * Created ??? */ -#include -#include - +#include "advapi32.h" #define NDEBUG #include diff --git a/reactos/lib/advapi32/misc/hwprofiles.c b/reactos/lib/advapi32/misc/hwprofiles.c index d89b9d8bbff..adc5357f43b 100644 --- a/reactos/lib/advapi32/misc/hwprofiles.c +++ b/reactos/lib/advapi32/misc/hwprofiles.c @@ -1,4 +1,4 @@ -/* $Id: hwprofiles.c,v 1.2 2004/06/17 09:07:12 ekohl Exp $ +/* $Id: hwprofiles.c,v 1.3 2004/08/15 17:03:14 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -8,8 +8,8 @@ * UPDATE HISTORY: * 20042502 */ -#include -#include + +#include "advapi32.h" #include /****************************************************************************** diff --git a/reactos/lib/advapi32/misc/logon.c b/reactos/lib/advapi32/misc/logon.c index 0dfab319806..c7e045e92ff 100644 --- a/reactos/lib/advapi32/misc/logon.c +++ b/reactos/lib/advapi32/misc/logon.c @@ -1,4 +1,4 @@ -/* $Id: logon.c,v 1.10 2004/08/10 21:18:16 gvg Exp $ +/* $Id: logon.c,v 1.11 2004/08/15 17:03:14 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -7,11 +7,7 @@ * PROGRAMMER: Eric Kohl */ -#define NTOS_MODE_USER -#include -#include -#include - +#include "advapi32.h" #define NDEBUG #include diff --git a/reactos/lib/advapi32/misc/shutdown.c b/reactos/lib/advapi32/misc/shutdown.c index d87b088b19d..7c7b2bd792a 100644 --- a/reactos/lib/advapi32/misc/shutdown.c +++ b/reactos/lib/advapi32/misc/shutdown.c @@ -1,4 +1,4 @@ -/* $Id: shutdown.c,v 1.11 2004/01/20 01:40:18 ekohl Exp $ +/* $Id: shutdown.c,v 1.12 2004/08/15 17:03:14 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -10,10 +10,7 @@ * 19990515 EA */ -#include - -#define NTOS_MODE_USER -#include +#include "advapi32.h" #define USZ {0,0,0} diff --git a/reactos/lib/advapi32/misc/sysfunc.c b/reactos/lib/advapi32/misc/sysfunc.c index 94c29145eac..e6c09a5cf7c 100644 --- a/reactos/lib/advapi32/misc/sysfunc.c +++ b/reactos/lib/advapi32/misc/sysfunc.c @@ -1,4 +1,4 @@ -/* $Id: sysfunc.c,v 1.7 2003/07/10 15:05:55 chorns Exp $ +/* $Id: sysfunc.c,v 1.8 2004/08/15 17:03:14 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -9,7 +9,8 @@ * 19990413 EA created * 19990415 EA */ -#include + +#include "advapi32.h" /********************************************************************** * SystemFunction001 diff --git a/reactos/lib/advapi32/reg/reg.c b/reactos/lib/advapi32/reg/reg.c index a817964a571..116b5cee8ee 100644 --- a/reactos/lib/advapi32/reg/reg.c +++ b/reactos/lib/advapi32/reg/reg.c @@ -1,4 +1,4 @@ -/* $Id: reg.c,v 1.53 2004/07/18 23:52:30 navaraf Exp $ +/* $Id: reg.c,v 1.54 2004/08/15 17:03:14 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -12,14 +12,7 @@ /* INCLUDES *****************************************************************/ -#define NTOS_MODE_USER -#include -#include -#include -#include -#include -#include - +#include "advapi32.h" #define NDEBUG #include diff --git a/reactos/lib/advapi32/sec/ac.c b/reactos/lib/advapi32/sec/ac.c index ebb83d7c1e9..78e6259da9c 100644 --- a/reactos/lib/advapi32/sec/ac.c +++ b/reactos/lib/advapi32/sec/ac.c @@ -1,4 +1,4 @@ -/* $Id: ac.c,v 1.9 2004/02/25 14:25:11 ekohl Exp $ +/* $Id: ac.c,v 1.10 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -6,9 +6,7 @@ * PURPOSE: ACL/ACE functions */ -#define NTOS_MODE_USER -#include -#include +#include "advapi32.h" /* --- ACL --- */ diff --git a/reactos/lib/advapi32/sec/audit.c b/reactos/lib/advapi32/sec/audit.c index d8320a7ea4f..cfbfdeec4f7 100644 --- a/reactos/lib/advapi32/sec/audit.c +++ b/reactos/lib/advapi32/sec/audit.c @@ -1,4 +1,4 @@ -/* $Id: audit.c,v 1.2 2003/07/20 22:11:58 ekohl Exp $ +/* $Id: audit.c,v 1.3 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -11,9 +11,7 @@ /* INCLUDES *****************************************************************/ -#define NTOS_MODE_USER -#include -#include +#include "advapi32.h" /* FUNCTIONS ****************************************************************/ diff --git a/reactos/lib/advapi32/sec/lsa.c b/reactos/lib/advapi32/sec/lsa.c index fb5a6722aad..81ca059619c 100644 --- a/reactos/lib/advapi32/sec/lsa.c +++ b/reactos/lib/advapi32/sec/lsa.c @@ -1,4 +1,4 @@ -/* $Id: lsa.c,v 1.11 2004/06/17 09:07:12 ekohl Exp $ +/* $Id: lsa.c,v 1.12 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -12,9 +12,7 @@ * */ -#define NTOS_MODE_USER -#include -#include +#include "advapi32.h" #include #define NDEBUG diff --git a/reactos/lib/advapi32/sec/misc.c b/reactos/lib/advapi32/sec/misc.c index 84ad8294c0a..79dbd843617 100644 --- a/reactos/lib/advapi32/sec/misc.c +++ b/reactos/lib/advapi32/sec/misc.c @@ -1,4 +1,4 @@ -/* $Id: misc.c,v 1.21 2004/07/10 14:38:24 weiden Exp $ +/* $Id: misc.c,v 1.22 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -6,9 +6,7 @@ * PURPOSE: Miscellaneous security functions */ -#define NTOS_MODE_USER -#include -#include +#include "advapi32.h" #include #define NDEBUG diff --git a/reactos/lib/advapi32/sec/sec.c b/reactos/lib/advapi32/sec/sec.c index 447fde72064..ead1ddda1a0 100644 --- a/reactos/lib/advapi32/sec/sec.c +++ b/reactos/lib/advapi32/sec/sec.c @@ -1,4 +1,4 @@ -/* $Id: sec.c,v 1.21 2004/07/11 13:33:40 ekohl Exp $ +/* $Id: sec.c,v 1.22 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -11,10 +11,7 @@ * Created 01/11/98 */ -#define NTOS_MODE_USER -#include -#include - +#include "advapi32.h" #include /* diff --git a/reactos/lib/advapi32/sec/sid.c b/reactos/lib/advapi32/sec/sid.c index b93033464a0..3b452158e47 100644 --- a/reactos/lib/advapi32/sec/sid.c +++ b/reactos/lib/advapi32/sec/sid.c @@ -1,4 +1,4 @@ -/* $Id: sid.c,v 1.13 2004/06/20 23:39:07 gdalsnes Exp $ +/* $Id: sid.c,v 1.14 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -6,10 +6,8 @@ * PURPOSE: Security ID functions */ +#include "advapi32.h" #include -#define NTOS_MODE_USER -#include -#include /* diff --git a/reactos/lib/advapi32/service/eventlog.c b/reactos/lib/advapi32/service/eventlog.c index 4c8266b69d6..e7df03109a9 100644 --- a/reactos/lib/advapi32/service/eventlog.c +++ b/reactos/lib/advapi32/service/eventlog.c @@ -20,11 +20,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define NTOS_MODE_USER -#include -#include -#include - +#include "advapi32.h" #define NDEBUG #include diff --git a/reactos/lib/advapi32/service/scm.c b/reactos/lib/advapi32/service/scm.c index ba7cfb8325c..f26cd962919 100644 --- a/reactos/lib/advapi32/service/scm.c +++ b/reactos/lib/advapi32/service/scm.c @@ -1,4 +1,4 @@ -/* $Id: scm.c,v 1.22 2004/07/03 17:40:21 navaraf Exp $ +/* $Id: scm.c,v 1.23 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -12,12 +12,7 @@ /* INCLUDES ******************************************************************/ -#define NTOS_MODE_USER -#include -#include -#include -#include - +#include "advapi32.h" #define DBG #include diff --git a/reactos/lib/advapi32/service/sctrl.c b/reactos/lib/advapi32/service/sctrl.c index e14b7f7c68d..8c64b4bb75a 100644 --- a/reactos/lib/advapi32/service/sctrl.c +++ b/reactos/lib/advapi32/service/sctrl.c @@ -1,4 +1,4 @@ -/* $Id: sctrl.c,v 1.13 2004/01/20 01:40:19 ekohl Exp $ +/* $Id: sctrl.c,v 1.14 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -12,12 +12,7 @@ /* INCLUDES ******************************************************************/ -#define NTOS_MODE_USER -#include -#include -#include -#include - +#include "advapi32.h" #define NDEBUG #include diff --git a/reactos/lib/advapi32/service/undoc.c b/reactos/lib/advapi32/service/undoc.c index f9d12280fac..ded1983ede9 100644 --- a/reactos/lib/advapi32/service/undoc.c +++ b/reactos/lib/advapi32/service/undoc.c @@ -1,4 +1,4 @@ -/* $Id: undoc.c,v 1.3 2002/09/08 10:22:37 chorns Exp $ +/* $Id: undoc.c,v 1.4 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -12,7 +12,8 @@ /* INCLUDES ******************************************************************/ -#include +#include "advapi32.h" + /* FUNCTIONS *****************************************************************/ diff --git a/reactos/lib/advapi32/token/privilege.c b/reactos/lib/advapi32/token/privilege.c index 3f256ca1a97..9909885b86e 100644 --- a/reactos/lib/advapi32/token/privilege.c +++ b/reactos/lib/advapi32/token/privilege.c @@ -1,4 +1,4 @@ -/* $Id: privilege.c,v 1.8 2004/06/17 09:07:12 ekohl Exp $ +/* $Id: privilege.c,v 1.9 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -9,9 +9,7 @@ * 20010317 ea stubs */ -#define NTOS_MODE_USER -#include -#include +#include "advapi32.h" /********************************************************************** diff --git a/reactos/lib/advapi32/token/token.c b/reactos/lib/advapi32/token/token.c index de3c63dd10a..ed6c32f2a6b 100644 --- a/reactos/lib/advapi32/token/token.c +++ b/reactos/lib/advapi32/token/token.c @@ -1,4 +1,4 @@ -/* $Id: token.c,v 1.12 2004/07/12 12:05:49 ekohl Exp $ +/* $Id: token.c,v 1.13 2004/08/15 17:03:15 chorns Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -9,9 +9,8 @@ * Created 01/11/98 */ -#define NTOS_MODE_USER -#include -#include +#include "advapi32.h" + /* * @implemented