diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-14 23:15:19 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-14 23:15:19 +0000 |
commit | c76c3349e4d5cfc3d1452d32491647294c102a8b (patch) | |
tree | 8e4ffb887b591097de3f8f5b080276bb62f7648c /ext/syck/syck.h | |
parent | b215f2fdb93fba83199168e50c28adc458844a26 (diff) | |
download | ruby-c76c3349e4d5cfc3d1452d32491647294c102a8b.tar.gz |
* ext/syck/bytecode.c: Checkin of YAML bytecode support.
* ext/syck/gram.c: Ditto.
* ext/syck/syck.c: Ditto.
* ext/syck/token.c: Ditto.
* ext/syck/handler.c: Ditto.
* ext/syck/handler.c: Now using 'tag' rather than 'taguri' in type URIs.
* ext/syck/rubyext.c: Ditto (on both counts).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.h')
-rw-r--r-- | ext/syck/syck.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/ext/syck/syck.h b/ext/syck/syck.h index 8c10f0d27e..7497576483 100644 --- a/ext/syck/syck.h +++ b/ext/syck/syck.h @@ -13,11 +13,9 @@ #define SYCK_YAML_MAJOR 1 #define SYCK_YAML_MINOR 0 -#define SYCK_VERSION "0.39" +#define SYCK_VERSION "0.41" #define YAML_DOMAIN "yaml.org,2002" -#include <stdio.h> -#include <ctype.h> #include "st.h" #if defined(__cplusplus) @@ -139,9 +137,17 @@ enum syck_io_type { syck_io_file }; +enum syck_parser_input { + syck_yaml_utf8, + syck_yaml_utf16, + syck_yaml_utf32, + syck_bytecode_utf8 +}; + enum syck_level_status { syck_lvl_header, syck_lvl_doc, + syck_lvl_open, syck_lvl_seq, syck_lvl_map, syck_lvl_block, @@ -170,6 +176,7 @@ struct _syck_str { struct _syck_level { int spaces; + int ncount; char *domain; enum syck_level_status status; }; @@ -185,6 +192,8 @@ struct _syck_parser { SyckErrorHandler error_handler; /* InvalidAnchor handler */ SyckBadAnchorHandler bad_anchor_handler; + /* Parser input type */ + enum syck_parser_input input_type; /* IO type */ enum syck_io_type io_type; /* Custom buffer size */ @@ -374,8 +383,7 @@ void apply_seq_in_map( SyckParser *, SyckNode * ); /* * Lexer prototypes */ -int syckparse( void * ); -void syckerror( char *msg ); +void syckerror( char * ); #ifndef ST_DATA_T_DEFINED typedef long st_data_t; |