msvcrt: Move static function from header into file where it is
called
Andrew Talbot
Andrew.Talbot at talbotville.com
Mon Jan 15 15:56:05 CST 2007
This function is only called from within cpp.c, so it might as well reside there.
-- Andy.
---
Changelog:
msvcrt: Move static function from header into file where it is called.
diff -urN a/dlls/msvcrt/cpp.c b/dlls/msvcrt/cpp.c
--- a/dlls/msvcrt/cpp.c 2006-08-09 12:04:30.000000000 +0100
+++ b/dlls/msvcrt/cpp.c 2007-01-15 21:46:31.000000000 +0000
@@ -97,6 +97,12 @@
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 -urN a/dlls/msvcrt/cppexcept.h b/dlls/msvcrt/cppexcept.h
--- a/dlls/msvcrt/cppexcept.h 2006-12-15 17:26:01.000000000 +0000
+++ b/dlls/msvcrt/cppexcept.h 2007-01-15 21:46:46.000000000 +0000
@@ -135,12 +135,6 @@
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-patches
mailing list