ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

jscript.h File Reference
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "dispex.h"
#include "activscp.h"
#include "resource.h"
#include "wine/unicode.h"
#include "wine/list.h"

Go to the source code of this file.

Data Structures

struct  jsexcept_t
struct  jsheap_t
struct  vdisp_t
struct  builtin_prop_t
struct  builtin_info_t
struct  DispatchEx
struct  named_item_t
struct  script_ctx_t
struct  match_result_t

Defines

#define COBJMACROS
#define JSCRIPT_ERROR   0x800A0000
#define PROPF_ARGMASK   0x00ff
#define PROPF_METHOD   0x0100
#define PROPF_ENUM   0x0200
#define PROPF_CONSTR   0x0400
#define PROPF_CONST   0x0800
#define VDISP_DISPEX   0x0001
#define VDISP_JSDISP   0x0002
#define _IDispatchEx_(x)   ((IDispatchEx*) &(x)->lpIDispatchExVtbl)
#define REM_CHECK_GLOBAL   0x0001
#define REM_RESET_INDEX   0x0002
#define REM_NO_CTX_UPDATE   0x0004
#define DEFINE_THIS(cls, ifc, iface)   ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))

Typedefs

typedef HRESULT(* builtin_invoke_t )(script_ctx_t *, vdisp_t *, WORD, DISPPARAMS *, VARIANT *, jsexcept_t *, IServiceProvider *)

Enumerations

enum  jsclass_t {
  JSCLASS_NONE, JSCLASS_ARRAY, JSCLASS_BOOLEAN, JSCLASS_DATE,
  JSCLASS_ERROR, JSCLASS_FUNCTION, JSCLASS_GLOBAL, JSCLASS_MATH,
  JSCLASS_NUMBER, JSCLASS_OBJECT, JSCLASS_REGEXP, JSCLASS_STRING,
  JSCLASS_ARGUMENTS
}
enum  hint_t { NO_HINT, HINT_STRING, HINT_NUMBER }

Functions

void jsheap_init (jsheap_t *)
voidjsheap_alloc (jsheap_t *, DWORD)
voidjsheap_grow (jsheap_t *, void *, DWORD, DWORD)
void jsheap_clear (jsheap_t *)
void jsheap_free (jsheap_t *)
jsheap_tjsheap_mark (jsheap_t *)
DispatchExiface_to_jsdisp (IUnknown *)
static void vdisp_release (vdisp_t *vdisp)
static BOOL is_jsdisp (vdisp_t *vdisp)
static BOOL is_dispex (vdisp_t *vdisp)
static void set_jsdisp (vdisp_t *vdisp, DispatchEx *jsdisp)
static void set_disp (vdisp_t *vdisp, IDispatch *disp)
static DispatchExget_jsdisp (vdisp_t *vdisp)
static void jsdisp_release (DispatchEx *jsdisp)
HRESULT create_dispex (script_ctx_t *, const builtin_info_t *, DispatchEx *, DispatchEx **)
HRESULT init_dispex (DispatchEx *, script_ctx_t *, const builtin_info_t *, DispatchEx *)
HRESULT init_dispex_from_constr (DispatchEx *, script_ctx_t *, const builtin_info_t *, DispatchEx *)
HRESULT disp_call (script_ctx_t *, IDispatch *, DISPID, WORD, DISPPARAMS *, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT jsdisp_call_value (DispatchEx *, WORD, DISPPARAMS *, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT jsdisp_call (DispatchEx *, DISPID, WORD, DISPPARAMS *, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT jsdisp_call_name (DispatchEx *, const WCHAR *, WORD, DISPPARAMS *, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT disp_propget (script_ctx_t *, IDispatch *, DISPID, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT disp_propput (script_ctx_t *, IDispatch *, DISPID, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT jsdisp_propget (DispatchEx *, DISPID, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT jsdisp_propput_name (DispatchEx *, const WCHAR *, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT jsdisp_propput_const (DispatchEx *, const WCHAR *, VARIANT *)
HRESULT jsdisp_propput_idx (DispatchEx *, DWORD, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT jsdisp_propget_name (DispatchEx *, LPCWSTR, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT jsdisp_get_idx (DispatchEx *, DWORD, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT jsdisp_get_id (DispatchEx *, const WCHAR *, DWORD, DISPID *)
HRESULT jsdisp_delete_idx (DispatchEx *, DWORD)
HRESULT create_builtin_function (script_ctx_t *, builtin_invoke_t, const WCHAR *, const builtin_info_t *, DWORD, DispatchEx *, DispatchEx **)
HRESULT Function_value (script_ctx_t *, vdisp_t *, WORD, DISPPARAMS *, VARIANT *, jsexcept_t *, IServiceProvider *)
HRESULT throw_eval_error (script_ctx_t *, jsexcept_t *, UINT, const WCHAR *)
HRESULT throw_generic_error (script_ctx_t *, jsexcept_t *, UINT, const WCHAR *)
HRESULT throw_range_error (script_ctx_t *, jsexcept_t *, UINT, const WCHAR *)
HRESULT throw_reference_error (script_ctx_t *, jsexcept_t *, UINT, const WCHAR *)
HRESULT throw_regexp_error (script_ctx_t *, jsexcept_t *, UINT, const WCHAR *)
HRESULT throw_syntax_error (script_ctx_t *, jsexcept_t *, UINT, const WCHAR *)
HRESULT throw_type_error (script_ctx_t *, jsexcept_t *, UINT, const WCHAR *)
HRESULT throw_uri_error (script_ctx_t *, jsexcept_t *, UINT, const WCHAR *)
HRESULT create_object (script_ctx_t *, DispatchEx *, DispatchEx **)
HRESULT create_math (script_ctx_t *, DispatchEx **)
HRESULT create_array (script_ctx_t *, DWORD, DispatchEx **)
HRESULT create_regexp (script_ctx_t *, const WCHAR *, int, DWORD, DispatchEx **)
HRESULT create_regexp_var (script_ctx_t *, VARIANT *, VARIANT *, DispatchEx **)
HRESULT create_string (script_ctx_t *, const WCHAR *, DWORD, DispatchEx **)
HRESULT create_bool (script_ctx_t *, VARIANT_BOOL, DispatchEx **)
HRESULT create_number (script_ctx_t *, VARIANT *, DispatchEx **)
HRESULT to_primitive (script_ctx_t *, VARIANT *, jsexcept_t *, VARIANT *, hint_t)
HRESULT to_boolean (VARIANT *, VARIANT_BOOL *)
HRESULT to_number (script_ctx_t *, VARIANT *, jsexcept_t *, VARIANT *)
HRESULT to_integer (script_ctx_t *, VARIANT *, jsexcept_t *, VARIANT *)
HRESULT to_int32 (script_ctx_t *, VARIANT *, jsexcept_t *, INT *)
HRESULT to_uint32 (script_ctx_t *, VARIANT *, jsexcept_t *, DWORD *)
HRESULT to_string (script_ctx_t *, VARIANT *, jsexcept_t *, BSTR *)
HRESULT to_object (script_ctx_t *, VARIANT *, IDispatch **)
void script_release (script_ctx_t *)
static void script_addref (script_ctx_t *ctx)
HRESULT init_global (script_ctx_t *)
HRESULT init_function_constr (script_ctx_t *, DispatchEx *)
HRESULT create_object_prototype (script_ctx_t *, DispatchEx **)
HRESULT create_activex_constr (script_ctx_t *, DispatchEx **)
HRESULT create_array_constr (script_ctx_t *, DispatchEx *, DispatchEx **)
HRESULT create_bool_constr (script_ctx_t *, DispatchEx *, DispatchEx **)
HRESULT create_date_constr (script_ctx_t *, DispatchEx *, DispatchEx **)
HRESULT init_error_constr (script_ctx_t *, DispatchEx *)
HRESULT create_number_constr (script_ctx_t *, DispatchEx *, DispatchEx **)
HRESULT create_object_constr (script_ctx_t *, DispatchEx *, DispatchEx **)
HRESULT create_regexp_constr (script_ctx_t *, DispatchEx *, DispatchEx **)
HRESULT create_string_constr (script_ctx_t *, DispatchEx *, DispatchEx **)
IUnknowncreate_ax_site (script_ctx_t *)
HRESULT regexp_match_next (script_ctx_t *, DispatchEx *, DWORD, const WCHAR *, DWORD, const WCHAR **, match_result_t **, DWORD *, DWORD *, match_result_t *)
HRESULT regexp_match (script_ctx_t *, DispatchEx *, const WCHAR *, DWORD, BOOL, match_result_t **, DWORD *)
HRESULT parse_regexp_flags (const WCHAR *, DWORD, DWORD *)
HRESULT regexp_string_match (script_ctx_t *, DispatchEx *, BSTR, VARIANT *, jsexcept_t *)
static VARIANT * get_arg (DISPPARAMS *dp, DWORD i)
static DWORD arg_cnt (const DISPPARAMS *dp)
static BOOL is_class (DispatchEx *jsdisp, jsclass_t class)
static BOOL is_vclass (vdisp_t *vdisp, jsclass_t class)
static BOOL is_num_vt (enum VARENUM vt)
static DOUBLE num_val (const VARIANT *v)
static void num_set_val (VARIANT *v, DOUBLE d)
static void num_set_nan (VARIANT *v)
static DOUBLE ret_nan (void)
static void num_set_inf (VARIANT *v, BOOL positive)
static DWORD make_grfdex (script_ctx_t *ctx, DWORD flags)
const chardebugstr_variant (const VARIANT *)
HRESULT WINAPI JScriptFactory_CreateInstance (IClassFactory *, IUnknown *, REFIID, void **)
static void lock_module (void)
static void unlock_module (void)
static voidheap_alloc (size_t len)
static voidheap_alloc_zero (size_t len)
static voidheap_realloc (void *mem, size_t len)
static BOOL heap_free (void *mem)
static LPWSTR heap_strdupW (LPCWSTR str)

Variables

HINSTANCE jscript_hinstance
LONG module_ref

Generated on Sat May 26 2012 05:09:40 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.