Changeset 223 for pyyaml/trunk/ext/_yaml.pxd
- Timestamp:
- 08/13/06 09:46:20 (7 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/ext/_yaml.pxd (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/ext/_yaml.pxd
r209 r223 2 2 cdef extern from "_yaml.h": 3 3 4 void malloc(int l) 4 5 void memcpy(char *d, char *s, int l) 5 6 int strlen(char *s) … … 12 13 object PyUnicode_AsUTF8String(object o) 13 14 14 cdef enum yaml_encoding_t: 15 ctypedef enum: 16 SIZEOF_VOID_P 17 ctypedef enum yaml_encoding_t: 15 18 YAML_ANY_ENCODING 16 19 YAML_UTF8_ENCODING 17 20 YAML_UTF16LE_ENCODING 18 21 YAML_UTF16BE_ENCODING 19 cdef enum yaml_error_type_t: 22 ctypedef enum yaml_break_t: 23 YAML_ANY_BREAK 24 YAML_CR_BREAK 25 YAML_LN_BREAK 26 YAML_CRLN_BREAK 27 ctypedef enum yaml_error_type_t: 20 28 YAML_NO_ERROR 21 29 YAML_MEMORY_ERROR … … 25 33 YAML_WRITER_ERROR 26 34 YAML_EMITTER_ERROR 27 c def enum yaml_scalar_style_t:35 ctypedef enum yaml_scalar_style_t: 28 36 YAML_ANY_SCALAR_STYLE 29 37 YAML_PLAIN_SCALAR_STYLE … … 32 40 YAML_LITERAL_SCALAR_STYLE 33 41 YAML_FOLDED_SCALAR_STYLE 34 c def enum yaml_sequence_style_t:42 ctypedef enum yaml_sequence_style_t: 35 43 YAML_ANY_SEQUENCE_STYLE 36 44 YAML_BLOCK_SEQUENCE_STYLE 37 45 YAML_FLOW_SEQUENCE_STYLE 38 c def enum yaml_mapping_style_t:46 ctypedef enum yaml_mapping_style_t: 39 47 YAML_ANY_MAPPING_STYLE 40 48 YAML_BLOCK_MAPPING_STYLE 41 49 YAML_FLOW_MAPPING_STYLE 42 c def enum yaml_token_type_t:50 ctypedef enum yaml_token_type_t: 43 51 YAML_NO_TOKEN 44 52 YAML_STREAM_START_TOKEN … … 63 71 YAML_TAG_TOKEN 64 72 YAML_SCALAR_TOKEN 65 c def enum yaml_event_type_t:73 ctypedef enum yaml_event_type_t: 66 74 YAML_NO_EVENT 67 75 YAML_STREAM_START_EVENT … … 78 86 ctypedef int yaml_read_handler_t(void *data, char *buffer, 79 87 int size, int *size_read) except 0 88 89 ctypedef int yaml_write_handler_t(void *data, char *buffer, 90 int size) except 0 80 91 81 92 ctypedef struct yaml_mark_t: … … 125 136 ctypedef struct _yaml_event_stream_start_data_t: 126 137 yaml_encoding_t encoding 138 ctypedef struct _yaml_event_document_start_data_tag_directives_t: 139 yaml_tag_directive_t *start 140 yaml_tag_directive_t *end 127 141 ctypedef struct _yaml_event_document_start_data_t: 128 142 yaml_version_directive_t *version_directive 129 yaml_tag_directive_t **tag_directives143 _yaml_event_document_start_data_tag_directives_t tag_directives 130 144 int implicit 131 145 ctypedef struct _yaml_event_document_end_data_t: … … 174 188 yaml_mark_t context_mark 175 189 190 ctypedef struct yaml_emitter_t: 191 yaml_error_type_t error 192 char *problem 193 176 194 char *yaml_get_version_string() 177 195 void yaml_get_version(int *major, int *minor, int *patch) 196 178 197 void yaml_token_delete(yaml_token_t *token) 198 199 int yaml_stream_start_event_initialize(yaml_event_t *event, 200 yaml_encoding_t encoding) 201 int yaml_stream_end_event_initialize(yaml_event_t *event) 202 int yaml_document_start_event_initialize(yaml_event_t *event, 203 yaml_version_directive_t *version_directive, 204 yaml_tag_directive_t *tag_directives_start, 205 yaml_tag_directive_t *tag_directives_end, 206 int implicit) 207 int yaml_document_end_event_initialize(yaml_event_t *event, 208 int implicit) 209 int yaml_alias_event_initialize(yaml_event_t *event, char *anchor) 210 int yaml_scalar_event_initialize(yaml_event_t *event, 211 char *anchor, char *tag, char *value, int length, 212 int plain_implicit, int quoted_implicit, 213 yaml_scalar_style_t style) 214 int yaml_sequence_start_event_initialize(yaml_event_t *event, 215 char *anchor, char *tag, int implicit, yaml_sequence_style_t style) 216 int yaml_sequence_end_event_initialize(yaml_event_t *event) 217 int yaml_mapping_start_event_initialize(yaml_event_t *event, 218 char *anchor, char *tag, int implicit, yaml_mapping_style_t style) 219 int yaml_mapping_end_event_initialize(yaml_event_t *event) 179 220 void yaml_event_delete(yaml_event_t *event) 221 180 222 int yaml_parser_initialize(yaml_parser_t *parser) 181 223 void yaml_parser_delete(yaml_parser_t *parser) … … 189 231 int yaml_parser_parse(yaml_parser_t *parser, yaml_event_t *event) except * 190 232 233 int yaml_emitter_initialize(yaml_emitter_t *emitter) 234 void yaml_emitter_delete(yaml_emitter_t *emitter) 235 void yaml_emitter_set_output_string(yaml_emitter_t *emitter, 236 char *output, int size, int *size_written) 237 void yaml_emitter_set_output(yaml_emitter_t *emitter, 238 yaml_write_handler_t *handler, void *data) 239 void yaml_emitter_set_encoding(yaml_emitter_t *emitter, 240 yaml_encoding_t encoding) 241 void yaml_emitter_set_canonical(yaml_emitter_t *emitter, int canonical) 242 void yaml_emitter_set_indent(yaml_emitter_t *emitter, int indent) 243 void yaml_emitter_set_width(yaml_emitter_t *emitter, int width) 244 void yaml_emitter_set_unicode(yaml_emitter_t *emitter, int unicode) 245 void yaml_emitter_set_break(yaml_emitter_t *emitter, 246 yaml_break_t line_break) 247 int yaml_emitter_emit(yaml_emitter_t *emitter, yaml_event_t *event) except * 248 int yaml_emitter_flush(yaml_emitter_t *emitter) 249
Note: See TracChangeset
for help on using the changeset viewer.
