ox 2.14.13 → 2.14.15

Sign up to get free protection for your applications and to get access to all the features.
data/ext/ox/ox.c CHANGED
@@ -23,7 +23,7 @@
23
23
  typedef struct _yesNoOpt {
24
24
  VALUE sym;
25
25
  char *attr;
26
- } * YesNoOpt;
26
+ } *YesNoOpt;
27
27
 
28
28
  void Init_ox();
29
29
 
@@ -107,7 +107,7 @@ VALUE ox_struct_class;
107
107
  VALUE ox_syntax_error_class;
108
108
  VALUE ox_time_class;
109
109
 
110
- SlotCache ox_class_cache = 0;
110
+ SlotCache ox_class_cache = 0;
111
111
 
112
112
  static VALUE abort_sym;
113
113
  static VALUE active_sym;
data/ext/ox/ox.h CHANGED
@@ -94,14 +94,14 @@ typedef struct _parseCallbacks {
94
94
  void (*add_element)(PInfo pi, const char *ename, Attr attrs, int hasChildren);
95
95
  void (*end_element)(PInfo pi, const char *ename);
96
96
  void (*finish)(PInfo pi);
97
- } * ParseCallbacks;
97
+ } *ParseCallbacks;
98
98
 
99
99
  typedef struct _circArray {
100
100
  VALUE obj_array[1024];
101
101
  VALUE *objs;
102
102
  unsigned long size; /* allocated size or initial array size */
103
103
  unsigned long cnt;
104
- } * CircArray;
104
+ } *CircArray;
105
105
 
106
106
  typedef struct _options {
107
107
  char encoding[64]; // encoding, stored in the option to avoid GC invalidation in default values
@@ -128,8 +128,8 @@ typedef struct _options {
128
128
  struct _hints *html_hints; // html hints
129
129
  VALUE attr_key_mod;
130
130
  VALUE element_key_mod;
131
- rb_encoding *rb_enc;
132
- } * Options;
131
+ rb_encoding *rb_enc;
132
+ } *Options;
133
133
 
134
134
  // parse information structure
135
135
  struct _pInfo {
@@ -146,7 +146,7 @@ struct _pInfo {
146
146
  VALUE *marked;
147
147
  int mark_size; // allocated size
148
148
  int mark_cnt;
149
- char last; // last character read, rarely set
149
+ char last; // last character read, rarely set
150
150
  };
151
151
 
152
152
  extern VALUE ox_parse(char *xml, size_t len, ParseCallbacks pcb, char **endp, Options options, Err err);