summaryrefslogtreecommitdiff
path: root/ext/syck/syck.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-04 12:51:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-04 12:51:42 +0000
commita4aa765cb680691e8aef1c88eadf48a073d8df2f (patch)
treeb6c199edef6325ddbb94df291dee5cc36a05a947 /ext/syck/syck.h
parentc3c31026104b774975e198a805ae379cae1f8a08 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.h')
-rw-r--r--ext/syck/syck.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/ext/syck/syck.h b/ext/syck/syck.h
index ef9c05471c..20ad18a843 100644
--- a/ext/syck/syck.h
+++ b/ext/syck/syck.h
@@ -84,35 +84,35 @@ enum map_part {
};
struct _syck_node {
- // Symbol table ID
+ /* Symbol table ID */
SYMID id;
- // Underlying kind
+ /* Underlying kind */
enum syck_kind_tag kind;
- // Fully qualified tag-uri for type
+ /* Fully qualified tag-uri for type */
char *type_id;
- // Anchor name
+ /* Anchor name */
char *anchor;
union {
- // Storage for map data
+ /* Storage for map data */
struct SyckMap {
SYMID *keys;
SYMID *values;
long capa;
long idx;
} *pairs;
- // Storage for sequence data
+ /* Storage for sequence data */
struct SyckSeq {
SYMID *items;
long capa;
long idx;
} *list;
- // Storage for string data
+ /* Storage for string data */
struct SyckStr {
char *ptr;
long len;
} *str;
} data;
- // Shortcut node
+ /* Shortcut node */
void *shortcut;
};
@@ -143,29 +143,29 @@ enum syck_level_status {
};
struct _syck_parser {
- // Root node
+ /* Root node */
SYMID root, root_on_error;
- // Implicit typing flag
+ /* Implicit typing flag */
int implicit_typing, taguri_expansion;
- // Scripting language function to handle nodes
+ /* Scripting language function to handle nodes */
SyckNodeHandler handler;
- // Error handler
+ /* Error handler */
SyckErrorHandler error_handler;
- // InvalidAnchor handler
+ /* InvalidAnchor handler */
SyckBadAnchorHandler bad_anchor_handler;
- // IO type
+ /* IO type */
enum syck_io_type io_type;
- // Custom buffer size
+ /* Custom buffer size */
size_t bufsize;
- // Buffer pointers
+ /* Buffer pointers */
char *buffer, *linectptr, *lineptr, *toktmp, *token, *cursor, *marker, *limit;
- // Line counter
+ /* Line counter */
int linect;
- // Last token from yylex()
+ /* Last token from yylex() */
int last_token;
- // Force a token upon next call to yylex()
+ /* Force a token upon next call to yylex() */
int force_token;
- // EOF flag
+ /* EOF flag */
int eof;
union {
struct _syck_file {
@@ -177,11 +177,11 @@ struct _syck_parser {
SyckIoStrRead read;
} *str;
} io;
- // Symbol table for anchors
+ /* Symbol table for anchors */
st_table *anchors, *bad_anchors;
- // Optional symbol table for SYMIDs
+ /* Optional symbol table for SYMIDs */
st_table *syms;
- // Levels of indentation
+ /* Levels of indentation */
struct _syck_level {
int spaces;
char *domain;