111 lines
3.3 KiB
C
111 lines
3.3 KiB
C
/*
|
|
* Copyright 2010 Piotr Caban for CodeWeavers
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include "msvcp90.h"
|
|
#include "windef.h"
|
|
#include "winbase.h"
|
|
#include "wine/debug.h"
|
|
WINE_DEFAULT_DEBUG_CHANNEL(msvcp90);
|
|
|
|
typedef struct _locale_facet {
|
|
const vtable_ptr *vtable;
|
|
MSVCP_size_t refs;
|
|
} locale_facet;
|
|
|
|
static const vtable_ptr MSVCP_locale_facet_vtable[];
|
|
|
|
/* ??_Ffacet@locale@std@@QAEXXZ */
|
|
/* ??_Ffacet@locale@std@@QEAAXXZ */
|
|
DEFINE_THISCALL_WRAPPER(locale_facet_ctor, 4)
|
|
locale_facet* __thiscall locale_facet_ctor(locale_facet *this)
|
|
{
|
|
FIXME("(%p) stub\n", this);
|
|
this->vtable = MSVCP_locale_facet_vtable;
|
|
return NULL;
|
|
}
|
|
|
|
/* ??0facet@locale@std@@IAE@I@Z */
|
|
/* ??0facet@locale@std@@IEAA@_K@Z */
|
|
DEFINE_THISCALL_WRAPPER(locale_facet_ctor_refs, 8)
|
|
locale_facet* __thiscall locale_facet_ctor_refs(locale_facet *this, MSVCP_size_t refs)
|
|
{
|
|
FIXME("(%p %lu) stub\n", this, refs);
|
|
return NULL;
|
|
}
|
|
|
|
/* ??1facet@locale@std@@UAE@XZ */
|
|
/* ??1facet@locale@std@@UEAA@XZ */
|
|
DEFINE_THISCALL_WRAPPER(locale_facet_dtor, 4)
|
|
void __thiscall locale_facet_dtor(locale_facet *this)
|
|
{
|
|
FIXME("(%p) stub\n", this);
|
|
}
|
|
|
|
DEFINE_THISCALL_WRAPPER(MSVCP_locale_facet_vector_dtor, 8)
|
|
locale_facet* __thiscall MSVCP_locale_facet_vector_dtor(locale_facet *this, unsigned int flags)
|
|
{
|
|
TRACE("(%p %x) stub\n", this, flags);
|
|
if(flags & 2) {
|
|
/* we have an array, with the number of elements stored before the first object */
|
|
int i, *ptr = (int *)this-1;
|
|
|
|
for(i=*ptr-1; i>=0; i--)
|
|
locale_facet_dtor(this+i);
|
|
MSVCRT_operator_delete(ptr);
|
|
} else {
|
|
locale_facet_dtor(this);
|
|
if(flags & 1)
|
|
MSVCRT_operator_delete(this);
|
|
}
|
|
|
|
return this;
|
|
}
|
|
|
|
/* ?_Incref@facet@locale@std@@QAEXXZ */
|
|
/* ?_Incref@facet@locale@std@@QEAAXXZ */
|
|
DEFINE_THISCALL_WRAPPER(locale_facet__Incref, 4)
|
|
void __thiscall locale_facet__Incref(locale_facet *this)
|
|
{
|
|
FIXME("(%p) stub\n", this);
|
|
}
|
|
|
|
/* ?_Decref@facet@locale@std@@QAEPAV123@XZ */
|
|
/* ?_Decref@facet@locale@std@@QEAAPEAV123@XZ */
|
|
DEFINE_THISCALL_WRAPPER(locale_facet__Decref, 4)
|
|
locale_facet* __thiscall locale_facet__Decref(locale_facet *this)
|
|
{
|
|
FIXME("(%p) stub\n", this);
|
|
return NULL;
|
|
}
|
|
|
|
/* ?_Getcat@facet@locale@std@@SAIPAPBV123@PBV23@@Z */
|
|
/* ?_Getcat@facet@locale@std@@SA_KPEAPEBV123@PEBV23@@Z */
|
|
MSVCP_size_t __cdecl locale_facet__Getcat(const locale_facet **facet, const /*locale*/void *loc)
|
|
{
|
|
FIXME("(%p %p) stub\n", facet, loc);
|
|
return 0;
|
|
}
|
|
|
|
static const vtable_ptr MSVCP_locale_facet_vtable[] = {
|
|
(vtable_ptr)THISCALL_NAME(MSVCP_locale_facet_vector_dtor)
|
|
};
|