Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
55 lines (43 loc) · 1.12 KB

File metadata and controls

55 lines (43 loc) · 1.12 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef _JAVASCRIPT_ARRAY_H__
#define _JAVASCRIPT_ARRAY_H__
#ifndef _JAVASCRIPT_VARIANT_H__
#include "javascript_variant.h"
#endif
enum array_type {
BASE_ARRAY_CLASS=0,
INT_ARRAY_CLASS,
OBJECT_ARRAY_CLASS
};
class base_array {
public:
base_array();
base_array(unsigned long init_length);
~base_array();
virtual void* get_index(unsigned long index);
virtual void set_index(unsigned long index,void* index_data);
virtual unsigned long length(void);
virtual array_type type(void);
protected:
unsigned long array_length;
array_type array_type_;
void* array_index;
};
class int_array : public base_array {
public:
int_array();
int_array(unsigned long init_length);
};
class object_array : public base_array {
public:
object_array();
object_array(unsigned long init_length);
virtual void* get_index(unsigned long index);
virtual void set_index(unsigned long index,void* index_data);
private:
typedef struct object_index_ {
unsigned long object_index_number;
javascript_variant_struct object_data;
object_index_* next_object_index;
} object_index;
};
#endif
Morty Proxy This is a proxified and sanitized view of the page, visit original site.