3#define WIN32_LEAN_AND_MEAN
14#ifndef DISABLE_HTMLHELP_SUPPORT
24#define WM_CLOSE_STATS (WM_APP+1)
25#define WM_HANDLE_CLIPBOARD (WM_APP+2)
26#define WM_INSERT_STAT (WM_APP+3)
27#define WM_LOAD_STAT (WM_APP+4)
28#define WM_START_CONV (WM_APP+5)
29#define WM_HANDLE_FROM (WM_APP+6)
30#define WM_HANDLE_TO (WM_APP+7)
33#ifdef ENABLE_MULTI_PRECISION
36#ifndef MPFR_DEFAULT_RND
37#define MPFR_DEFAULT_RND mpfr_get_default_rounding_mode ()
40#define LOCAL_EXP_SIZE 100000000L
43#define LOCAL_EXP_SIZE 10000L
47#define CALC_VERSION _T("1.12")
49#define MAX_CALC_SIZE 256
59#define calc_HtmlHelp calc_HtmlHelpA
61#define calc_HtmlHelp calc_HtmlHelpW
68#if (_WIN32_WINNT >= 0x0600)
97#define SIZEOF(_ar) (sizeof(_ar)/sizeof(_ar[1]))
123#ifdef ENABLE_MULTI_PRECISION
168#ifdef USE_KEYBOARD_HOOK
210#define CALC_E 2.718281828459045235360
211#define CALC_PI_2 1.570796326794896619231
212#define CALC_PI 3.141592653589793238462
213#define CALC_3_PI_2 4.712388980384689857694
214#define CALC_2_PI 6.283185307179586476925
216#define MODIFIER_INV 0x01
217#define MODIFIER_HYP 0x02
221#ifndef ENABLE_MULTI_PRECISION
unsigned long long UINT64
void rpn_2pi(calc_number_t *c)
BOOL(WINAPI * type_IsThemeBackgroundPartiallyTransparent)(HTHEME, int, int)
void run_operator(calc_node_t *result, calc_node_t *a, calc_node_t *b, unsigned int operation)
void rpn_ln(calc_number_t *c)
void start_rpn_engine(void)
void rpn_pi(calc_number_t *c)
void prepare_rpn_result_2(calc_number_t *rpn, TCHAR *buffer, int size, int base)
void rpn_free(calc_number_t *c)
HRESULT(WINAPI * type_DrawThemeBackground)(HTHEME, HDC, int, int, const RECT *, const RECT *)
void rpn_sinh(calc_number_t *c)
HTHEME(WINAPI * type_OpenThemeData)(HWND, const WCHAR *)
HWND(WINAPI * type_HtmlHelpA)(HWND, LPCSTR, UINT, DWORD)
type_DrawThemeParentBackground calc_DrawThemeParentBackground
void rpn_frac(calc_number_t *c)
BOOL(WINAPI * type_IsAppThemed)(void)
void apply_int_mask(calc_number_t *a)
void convert_text2number_2(calc_number_t *a)
void rpn_tan(calc_number_t *c)
type_OpenThemeData calc_OpenThemeData
void rpn_dec2dms(calc_number_t *c)
void ConvExecute(HWND hWnd)
void rpn_sqrt(calc_number_t *c)
HRESULT(WINAPI * type_DrawThemeParentBackground)(HWND, HDC, RECT *)
void rpn_exp3(calc_number_t *c)
void rpn_exp2(calc_number_t *c)
void HtmlHelp_Start(HINSTANCE hInstance)
void Theme_Start(HINSTANCE hInstance)
void rpn_int(calc_number_t *c)
void rpn_cbrt(calc_number_t *c)
double logic_int2dbl(calc_number_t *a)
void rpn_alloc(calc_number_t *c)
void rpn_asin(calc_number_t *c)
void rpn_sin(calc_number_t *c)
void rpn_reci(calc_number_t *c)
void exec_change_infix(void)
INT_PTR CALLBACK AboutDlgProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
HRESULT(WINAPI * type_CloseThemeData)(HTHEME)
void rpn_exp(calc_number_t *c)
void rpn_sign(calc_number_t *c)
BOOL(WINAPI * type_IsThemeActive)(void)
void rpn_atan(calc_number_t *c)
void rpn_asinh(calc_number_t *c)
void rpn_cosh(calc_number_t *c)
void rpn_ave2(calc_number_t *c)
void rpn_fact(calc_number_t *c)
void rpn_log(calc_number_t *c)
void rpn_zero(calc_number_t *c)
__int64 logic_dbl2int(calc_number_t *a)
void exec_closeparent(calc_number_t *)
void ConvAdjust(HWND hWnd, int n_cat)
void rpn_acos(calc_number_t *c)
type_HtmlHelpA calc_HtmlHelpA
type_DrawThemeBackground calc_DrawThemeBackground
HWND(WINAPI * type_HtmlHelpW)(HWND, LPCWSTR, UINT, DWORD)
void rpn_s(calc_number_t *c)
void rpn_tanh(calc_number_t *c)
int eval_parent_count(void)
void rpn_sum(calc_number_t *c)
int rpn_is_zero(calc_number_t *c)
void rpn_dms2dec(calc_number_t *c)
int exec_infix2postfix(calc_number_t *, unsigned int)
void rpn_ave(calc_number_t *c)
type_IsThemeBackgroundPartiallyTransparent calc_IsThemeBackgroundPartiallyTransparent
void rpn_s_m1(calc_number_t *c)
void convert_real_integer(unsigned int base)
type_HtmlHelpW calc_HtmlHelpW
void rpn_cos(calc_number_t *c)
void rpn_sum2(calc_number_t *c)
BOOL rpn_validate_result(calc_number_t *c)
void stop_rpn_engine(void)
type_CloseThemeData calc_CloseThemeData
void rpn_copy(calc_number_t *dst, calc_number_t *src)
void rpn_exp10(calc_number_t *c)
void rpn_acosh(calc_number_t *c)
void rpn_atanh(calc_number_t *c)
type_IsThemeActive calc_IsThemeActive
type_IsAppThemed calc_IsAppThemed
void rpn_not(calc_number_t *c)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
unsigned int prev_operator
unsigned int sThousand_len
unsigned int last_operator
unsigned int sDecimal_len