DCL 4.0
Loading...
Searching...
No Matches
LibState.cpp File Reference
#include <dcl/Config.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <dcl/Thread.h>
#include "LibState.h"

Go to the source code of this file.

Macros

#define __strlen(s)
#define __strcpy(d, s)
#define __strncpy(d, s, n)
#define __TRACE_THIS   0
#define __DCL_ASSERT_N(expr)

Functions

DCLCAPI size_t DCLGetNextPrimNumber (size_t _n)

Macro Definition Documentation

◆ __DCL_ASSERT_N

#define __DCL_ASSERT_N ( expr)

Definition at line 27 of file LibState.cpp.

◆ __strcpy

#define __strcpy ( d,
s )
Value:
wcscpy(d, s)

Definition at line 23 of file LibState.cpp.

◆ __strlen

#define __strlen ( s)
Value:
wcslen(s)

Definition at line 22 of file LibState.cpp.

◆ __strncpy

#define __strncpy ( d,
s,
n )
Value:
wcsncpy(d, s, n)
void CharsetConvertException *size_t n
Definition SQLField.cpp:253

Definition at line 24 of file LibState.cpp.

◆ __TRACE_THIS

#define __TRACE_THIS   0

Definition at line 26 of file LibState.cpp.

Function Documentation

◆ DCLGetNextPrimNumber()

DCLCAPI size_t DCLGetNextPrimNumber ( size_t _n)
extern

Definition at line 23 of file HashFun.cpp.

24{
25 size_t n = __countof(__prim_numbers, size_t);
26 for(size_t i = 0; i < n; i++)
27 {
28 if (_n < __prim_numbers[i])
29 return __prim_numbers[i];
30 }
31 return __prim_numbers[n - 1];
32}
#define __countof(array, type)
Definition Config.h:365