Andrew Talbot : msvcrt:
Move static function from header into file where it is called.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jan 16 05:22:23 CST 2007
Module: wine
Branch: master
Commit: 464a6eb431feb1afebbc64c3b2d8bb63e5790c03
URL: http://source.winehq.org/git/wine.git/?a=commit;h=464a6eb431feb1afebbc64c3b2d8bb63e5790c03
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Mon Jan 15 21:56:05 2007 +0000
msvcrt: Move static function from header into file where it is called.
---
dlls/msvcrt/cpp.c | 6 ++++++
dlls/msvcrt/cppexcept.h | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/msvcrt/cpp.c b/dlls/msvcrt/cpp.c
index 5ea595d..854566e 100644
--- a/dlls/msvcrt/cpp.c
+++ b/dlls/msvcrt/cpp.c
@@ -97,6 +97,12 @@ extern const vtable_ptr MSVCRT_bad_cast_
extern const vtable_ptr MSVCRT___non_rtti_object_vtable;
extern const vtable_ptr MSVCRT_type_info_vtable;
+/* get the vtable pointer for a C++ object */
+static inline const vtable_ptr *get_vtable( void *obj )
+{
+ return *(const vtable_ptr **)obj;
+}
+
static inline const rtti_object_locator *get_obj_locator( void *cppobj )
{
const vtable_ptr *vtable = get_vtable( cppobj );
diff --git a/dlls/msvcrt/cppexcept.h b/dlls/msvcrt/cppexcept.h
index d4c8068..bf607c9 100644
--- a/dlls/msvcrt/cppexcept.h
+++ b/dlls/msvcrt/cppexcept.h
@@ -135,12 +135,6 @@ typedef struct __cxx_exception_type
void _CxxThrowException(exception*,const cxx_exception_type*);
-/* get the vtable pointer for a C++ object */
-static inline const vtable_ptr *get_vtable( void *obj )
-{
- return *(const vtable_ptr **)obj;
-}
-
static inline const char *dbgstr_type_info( const type_info *info )
{
if (!info) return "{}";
More information about the wine-cvs
mailing list