24#include "wine/unicode.h"
176 char **strarrayU =
NULL;
185 char **
q = strarrayU;
262static inline DWORD bvarraylen(
struct berval **bv )
269static inline struct berval **bvarraydup(
struct berval **bv )
276 size =
sizeof(
struct berval *) * (bvarraylen( bv ) + 1);
282 while (*
p) *
q++ = bvdup( *
p++ );
289static inline void bvarrayfree(
struct berval **bv )
306 modW->mod_vals.modv_bvals = bvarraydup(
mod->mod_vals.modv_bvals );
319 modU->mod_op =
mod->mod_op;
323 modU->mod_vals.modv_bvals = bvarraydup(
mod->mod_vals.modv_bvals );
325 modU->mod_vals.modv_strvals =
strarrayWtoU(
mod->mod_vals.modv_strvals );
333 bvarrayfree(
mod->mod_vals.modv_bvals );
342 bvarrayfree(
mod->mod_vals.modv_bvals );
369 size =
sizeof(
LDAPModW*) * (modarraylenA( modarray ) + 1);
375 while (*
p) *
q++ = modAtoW( *
p++ );
389 size =
sizeof(
LDAPMod*) * (modarraylenW( modarray ) + 1);
395 while (*
p) *
q++ = modWtoU( *
p++ );
402static inline void modarrayfreeW(
LDAPModW **modarray )
407 while (*
p) modfreeW( *
p++ );
412static inline void modarrayfreeU(
LDAPMod **modarray )
417 while (*
p) modfreeU( *
p++ );
428 if (
control->ldctl_value.bv_val)
454 if (
control->ldctl_value.bv_val)
480 if (
control->ldctl_value.bv_val)
493 controlU->ldctl_value.bv_len =
len;
494 controlU->ldctl_value.bv_val =
val;
495 controlU->ldctl_iscritical =
control->ldctl_iscritical;
506 if (
control->ldctl_value.bv_val)
560 return p - controlarray;
567 return p - controlarray;
574 return p - controlarray;
590 while (*
p) *
q++ = controlAtoW( *
p++ );
594 return controlarrayW;
610 while (*
p) *
q++ = controlWtoA( *
p++ );
614 return controlarrayA;
630 while (*
p) *
q++ = controlWtoU( *
p++ );
634 return controlarrayU;
650 while (*
p) *
q++ = controlUtoW( *
p++ );
654 return controlarrayW;
657static inline void controlarrayfreeA(
LDAPControlA **controlarray )
662 while (*
p) controlfreeA( *
p++ );
667static inline void controlarrayfreeW(
LDAPControlW **controlarray )
672 while (*
p) controlfreeW( *
p++ );
677static inline void controlarrayfreeU(
LDAPControl **controlarray )
682 while (*
p) controlfreeU( *
p++ );
746static inline void sortkeyfreeU(
LDAPSortKey *sortkey )
760 return p - sortkeyarray;
767 return p - sortkeyarray;
783 while (*
p) *
q++ = sortkeyAtoW( *
p++ );
787 return sortkeyarrayW;
803 while (*
p) *
q++ = sortkeyWtoU( *
p++ );
807 return sortkeyarrayU;
810static inline void sortkeyarrayfreeW(
LDAPSortKeyW **sortkeyarray )
815 while (*
p) sortkeyfreeW( *
p++ );
820static inline void sortkeyarrayfreeU(
LDAPSortKey **sortkeyarray )
825 while (*
p) sortkeyfreeU( *
p++ );
std::map< E_MODULE, HMODULE > mod
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define WideCharToMultiByte
#define MultiByteToWideChar
GLdouble GLdouble GLdouble GLdouble q
#define memcpy(s1, s2, n)
static const WCHAR controlW[]
struct WLDAP32_berval ldctl_value
static const WCHAR modW[]
static char * strdupU(const char *src)
static LPSTR strWtoA(LPCWSTR str)
static DWORD strarraylenW(LPWSTR *strarray)
static DWORD strarraylenU(char **strarray)
static void strfreeU(char *str)
static DWORD strarraylenA(LPSTR *strarray)
static void strarrayfreeW(LPWSTR *strarray)
static void strfreeW(LPWSTR str)
ULONG map_error(int) DECLSPEC_HIDDEN
static void strarrayfreeU(char **strarray)
static char * strWtoU(LPCWSTR str)
HINSTANCE hwldap32 DECLSPEC_HIDDEN
static LPWSTR * strarrayUtoW(char **strarray)
static LPSTR * strarrayWtoA(LPWSTR *strarray)
static void strfreeA(LPSTR str)
static LPWSTR strAtoW(LPCSTR str)
static LPWSTR strUtoW(char *str)
static WCHAR * strdupW(const WCHAR *src)
static void strarrayfreeA(LPSTR *strarray)
static char ** strarrayWtoU(LPWSTR *strarray)
static LPWSTR * strarrayAtoW(LPSTR *strarray)