#include <assert.h>
#include "jscript.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (jscript) |
| |
| static BoolInstance * | bool_from_jsdisp (jsdisp_t *jsdisp) |
| |
| static HRESULT | boolval_this (jsval_t vthis, BOOL *ret) |
| |
| BOOL | bool_obj_value (jsdisp_t *obj) |
| |
| static HRESULT | Bool_toString (script_ctx_t *ctx, jsval_t vthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r) |
| |
| static HRESULT | Bool_valueOf (script_ctx_t *ctx, jsval_t vthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r) |
| |
| static HRESULT | Bool_value (script_ctx_t *ctx, jsval_t vthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r) |
| |
| static HRESULT | BoolConstr_value (script_ctx_t *ctx, jsval_t vthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r) |
| |
| static HRESULT | alloc_bool (script_ctx_t *ctx, jsdisp_t *object_prototype, BoolInstance **ret) |
| |
| HRESULT | create_bool_constr (script_ctx_t *ctx, jsdisp_t *object_prototype, jsdisp_t **ret) |
| |
| HRESULT | create_bool (script_ctx_t *ctx, BOOL bval, jsdisp_t **ret) |
| |
◆ alloc_bool()
Definition at line 173 of file bool.c.
174{
177
181
182 if(object_prototype)
184 else
186
190 }
191
194}
static const builtin_info_t Bool_info
static const builtin_info_t BoolInst_info
GLboolean GLboolean GLboolean b
HRESULT init_dispex_from_constr(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *constr)
HRESULT init_dispex(jsdisp_t *dispex, script_ctx_t *ctx, const builtin_info_t *builtin_info, jsdisp_t *prototype)
Referenced by create_bool(), and create_bool_constr().
◆ bool_from_jsdisp()
◆ bool_obj_value()
Definition at line 51 of file bool.c.
52{
55}
static BoolInstance * bool_from_jsdisp(jsdisp_t *jsdisp)
static BOOL is_class(jsdisp_t *jsdisp, jsclass_t class)
Referenced by maybe_to_primitive().
◆ Bool_toString()
Definition at line 58 of file bool.c.
59{
62
64
68
71
75
77 }
78
80}
static HRESULT boolval_this(jsval_t vthis, BOOL *ret)
GLdouble GLdouble GLdouble r
static jsstr_t * jsstr_alloc(const WCHAR *str)
static jsval_t jsval_string(jsstr_t *str)
◆ Bool_value()
Definition at line 99 of file bool.c.
101{
103
105 case INVOKE_FUNC:
107 default:
110 }
111
113
114}
#define JS_E_FUNCTION_EXPECTED
◆ Bool_valueOf()
Definition at line 83 of file bool.c.
84{
87
89
93
97}
static jsval_t jsval_bool(BOOL b)
◆ BoolConstr_value()
Definition at line 133 of file bool.c.
135{
138
143 }
144
146 case DISPATCH_CONSTRUCT: {
148
151
155
158 }
159
160 case INVOKE_FUNC:
164
165 default:
168 }
169
171}
HRESULT create_bool(script_ctx_t *ctx, BOOL bval, jsdisp_t **ret)
HRESULT to_boolean(jsval_t, BOOL *)
static jsval_t jsval_obj(jsdisp_t *obj)
Referenced by create_bool_constr().
◆ boolval_this()
Definition at line 39 of file bool.c.
40{
46 else
49}
static BOOL get_bool(D3DXPARAMETER_TYPE type, const void *data)
jsdisp_t * to_jsdisp(IDispatch *disp)
#define JS_E_BOOLEAN_EXPECTED
static IDispatch * get_object(jsval_t v)
static BOOL is_object_instance(jsval_t v)
static BOOL is_bool(jsval_t v)
Referenced by Bool_toString(), and Bool_valueOf().
◆ create_bool()
Definition at line 212 of file bool.c.
213{
216
220
222
225}
static HRESULT alloc_bool(script_ctx_t *ctx, jsdisp_t *object_prototype, BoolInstance **ret)
Referenced by BoolConstr_value(), and to_object().
◆ create_bool_constr()
Definition at line 196 of file bool.c.
197{
200
204
207
210}
static HRESULT BoolConstr_value(script_ctx_t *ctx, jsval_t vthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
HRESULT create_builtin_constructor(script_ctx_t *ctx, builtin_invoke_t value_proc, const WCHAR *name, const builtin_info_t *builtin_info, DWORD flags, jsdisp_t *prototype, jsdisp_t **ret)
ULONG jsdisp_release(jsdisp_t *obj)
const unsigned int PROPF_CONSTR
Referenced by init_constructors().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
jscript |
| ) |
|
◆ Bool_info
Initial value:= {
}
static HRESULT Bool_value(script_ctx_t *ctx, jsval_t vthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
static const builtin_prop_t Bool_props[]
Definition at line 121 of file bool.c.
Referenced by alloc_bool().
◆ Bool_props
Initial value:= {
}
static HRESULT Bool_toString(script_ctx_t *ctx, jsval_t vthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
static HRESULT Bool_valueOf(script_ctx_t *ctx, jsval_t vthis, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r)
const unsigned int PROPF_METHOD
Definition at line 116 of file bool.c.
◆ BoolInst_info