From ccd2b31f85454a68ef89f1905368b8b73fbfab15 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Fri, 1 Jun 2001 00:54:36 +0000 Subject: [PATCH] use precomp hdrs --- panda/src/chancfg/Sources.pp | 2 ++ panda/src/chancfg/chancfg.cxx | 17 ++---------- panda/src/chancfg/chancfg_headers.h | 40 +++++++++++++++++++++++++++++ panda/src/chancfg/chanlayout.cxx | 7 ++--- panda/src/chancfg/chanparse.cxx | 5 ++-- panda/src/chancfg/chansetup.cxx | 7 ++--- panda/src/chancfg/chanwindow.cxx | 7 ++--- panda/src/chat/Sources.pp | 2 ++ panda/src/chat/chatHelpers.cxx | 3 ++- panda/src/chat/chatInput.cxx | 9 ++----- panda/src/chat/chat_headers.h | 30 ++++++++++++++++++++++ panda/src/chat/config_chat.cxx | 6 ++--- 12 files changed, 90 insertions(+), 45 deletions(-) create mode 100644 panda/src/chancfg/chancfg_headers.h create mode 100644 panda/src/chat/chat_headers.h diff --git a/panda/src/chancfg/Sources.pp b/panda/src/chancfg/Sources.pp index 9a9f0db084..cc8a70713e 100644 --- a/panda/src/chancfg/Sources.pp +++ b/panda/src/chancfg/Sources.pp @@ -21,6 +21,8 @@ #define INSTALL_CONFIG \ layout_db setup_db window_db + #define PRECOMPILED_HEADER chancfg_headers.h + #define IGATESCAN chancfg.h #end lib_target diff --git a/panda/src/chancfg/chancfg.cxx b/panda/src/chancfg/chancfg.cxx index ed5215aa41..53bc0a1a52 100644 --- a/panda/src/chancfg/chancfg.cxx +++ b/panda/src/chancfg/chancfg.cxx @@ -16,24 +16,11 @@ // //////////////////////////////////////////////////////////////////// -#include "chancfg.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "chancfg_headers.h" +#pragma hdrstop #include - Configure(chanconfig); ConfigureFn(chanconfig) { diff --git a/panda/src/chancfg/chancfg_headers.h b/panda/src/chancfg/chancfg_headers.h new file mode 100644 index 0000000000..5ffdaf7480 --- /dev/null +++ b/panda/src/chancfg/chancfg_headers.h @@ -0,0 +1,40 @@ +// Filename: xxx_headers.h +// Created by: georges (30May01) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved +// +// All use of this software is subject to the terms of the Panda 3d +// Software license. You should have received a copy of this license +// along with this source code; you will also find a current copy of +// the license at http://www.panda3d.org/license.txt . +// +// To contact the maintainers of this program write to +// panda3d@yahoogroups.com . +// +//////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "chancfg.h" +#include "chanlayout.h" +#include "chanparse.h" +#include "chansetup.h" +#include "chanshare.h" +#include "chanwindow.h" + +#pragma hdrstop + diff --git a/panda/src/chancfg/chanlayout.cxx b/panda/src/chancfg/chanlayout.cxx index d6345ce734..2b3bacb8c7 100644 --- a/panda/src/chancfg/chanlayout.cxx +++ b/panda/src/chancfg/chanlayout.cxx @@ -16,11 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "chanlayout.h" -#include "chanparse.h" -#include "chanshare.h" - -#include +#include "chancfg_headers.h" +#pragma hdrstop LayoutType* LayoutDB = (LayoutType*)0; diff --git a/panda/src/chancfg/chanparse.cxx b/panda/src/chancfg/chanparse.cxx index 4d03b19724..836bb266a3 100644 --- a/panda/src/chancfg/chanparse.cxx +++ b/panda/src/chancfg/chanparse.cxx @@ -16,9 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "chanparse.h" - -#include +#include "chancfg_headers.h" +#pragma hdrstop const int ChanFileEOF = -1; diff --git a/panda/src/chancfg/chansetup.cxx b/panda/src/chancfg/chansetup.cxx index 5f1c6f0518..74d33830d5 100644 --- a/panda/src/chancfg/chansetup.cxx +++ b/panda/src/chancfg/chansetup.cxx @@ -16,11 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "chansetup.h" -#include "chanparse.h" -#include "chanshare.h" - -#include +#include "chancfg_headers.h" +#pragma hdrstop SetupType* SetupDB = (SetupType*)0; diff --git a/panda/src/chancfg/chanwindow.cxx b/panda/src/chancfg/chanwindow.cxx index 630f613c00..6a154e7a58 100644 --- a/panda/src/chancfg/chanwindow.cxx +++ b/panda/src/chancfg/chanwindow.cxx @@ -16,11 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "chanwindow.h" -#include "chanparse.h" -#include "chanshare.h" - -#include +#include "chancfg_headers.h" +#pragma hdrstop WindowType* WindowDB = (WindowType*)0; diff --git a/panda/src/chat/Sources.pp b/panda/src/chat/Sources.pp index d7444a55c1..70a60f9e53 100644 --- a/panda/src/chat/Sources.pp +++ b/panda/src/chat/Sources.pp @@ -13,6 +13,8 @@ #define INSTALL_HEADERS \ chatHelpers.h chatInput.I chatInput.h + #define PRECOMPILED_HEADER chat_headers.h + #define IGATESCAN all #end lib_target diff --git a/panda/src/chat/chatHelpers.cxx b/panda/src/chat/chatHelpers.cxx index 2f2c81357d..6047d16ca8 100644 --- a/panda/src/chat/chatHelpers.cxx +++ b/panda/src/chat/chatHelpers.cxx @@ -15,7 +15,8 @@ // panda3d@yahoogroups.com . // //////////////////////////////////////////////////////////////////// -#include "chatHelpers.h" +#include "chat_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Function: add_line_wraps diff --git a/panda/src/chat/chatInput.cxx b/panda/src/chat/chatInput.cxx index 89d1006f72..b2647d9d8c 100644 --- a/panda/src/chat/chatInput.cxx +++ b/panda/src/chat/chatInput.cxx @@ -15,13 +15,8 @@ // panda3d@yahoogroups.com . // //////////////////////////////////////////////////////////////////// -#include "chatInput.h" - -#include -#include -#include -#include -#include +#include "chat_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Static variables diff --git a/panda/src/chat/chat_headers.h b/panda/src/chat/chat_headers.h new file mode 100644 index 0000000000..f1fcd3915a --- /dev/null +++ b/panda/src/chat/chat_headers.h @@ -0,0 +1,30 @@ +// Filename: chat_headers.h +// Created by: georges (30May01) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved +// +// All use of this software is subject to the terms of the Panda 3d +// Software license. You should have received a copy of this license +// along with this source code; you will also find a current copy of +// the license at http://www.panda3d.org/license.txt . +// +// To contact the maintainers of this program write to +// panda3d@yahoogroups.com . +// +//////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include +#include +#include "chatHelpers.h" +#include "chatInput.h" +#include "config_chat.h" + +#pragma hdrstop + diff --git a/panda/src/chat/config_chat.cxx b/panda/src/chat/config_chat.cxx index c8bfb43deb..fcc0559b53 100644 --- a/panda/src/chat/config_chat.cxx +++ b/panda/src/chat/config_chat.cxx @@ -16,10 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "config_chat.h" -#include "chatInput.h" - -#include +#include "chat_headers.h" +#pragma hdrstop Configure(config_chat); NotifyCategoryDef(chat, "");