summaryrefslogtreecommitdiff
path: root/ext/syck/syck.h
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-13 06:34:18 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-13 06:34:18 +0000
commitbd810795c589a81e8939b53ad921f823e7133ee9 (patch)
tree5c96a98d2d411fd2f8324791db1977423fc1e14c /ext/syck/syck.h
parentcea30a129ac3e25d1f45947b346788aeff8ee4d6 (diff)
* lib/yaml/rubytypes.rb: object and struct loading
* lib/yaml.rb: YAML::detect_implicit will discover typing for a Ruby string * ext/syck/: Fixed portable comments, misuse of NULL and methods without return VALUEs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.h')
-rw-r--r--ext/syck/syck.h53
1 files changed, 27 insertions, 26 deletions
diff --git a/ext/syck/syck.h b/ext/syck/syck.h
index 6fdbea68492..bb4bf2fed90 100644
--- a/ext/syck/syck.h
+++ b/ext/syck/syck.h
@@ -1,11 +1,11 @@
-//
-// syck.h
-//
-// $Author$
-// $Date$
-//
-// Copyright (C) 2003 why the lucky stiff
-//
+/*
+ * syck.h
+ *
+ * $Author$
+ * $Date$
+ *
+ * Copyright (C) 2003 why the lucky stiff
+ */
#ifndef SYCK_H
#define SYCK_H
@@ -24,9 +24,9 @@
extern "C" {
#endif
-//
-// Memory Allocation
-//
+/*
+ * Memory Allocation
+ */
#if defined(HAVE_ALLOCA_H) && !defined(__GNUC__)
#include <alloca.h>
#endif
@@ -65,9 +65,9 @@ extern "C" {
#define NL_CHOMP 130
#define NL_KEEP 140
-//
-// Node definitions
-//
+/*
+ * Node definitions
+ */
#define SYMID unsigned long
typedef struct _syck_parser SyckParser;
@@ -118,9 +118,9 @@ struct _syck_node {
} data;
};
-//
-// Parser definitions
-//
+/*
+ * Parser definitions
+ */
typedef SYMID (*SyckNodeHandler)(SyckParser *, SyckNode *);
typedef void (*SyckErrorHandler)(SyckParser *, char *);
typedef long (*SyckIoFileRead)(char *, SyckIoFile *, long, long);
@@ -135,6 +135,7 @@ enum syck_level_status {
syck_lvl_header,
syck_lvl_doc,
syck_lvl_seq,
+ syck_lvl_map,
syck_lvl_block,
syck_lvl_str,
syck_lvl_inline,
@@ -190,9 +191,9 @@ struct _syck_parser {
void *bonus;
};
-//
-// Handler prototypes
-//
+/*
+ * Handler prototypes
+ */
SYMID syck_hdlr_add_node( SyckParser *, SyckNode * );
SyckNode *syck_hdlr_add_anchor( SyckParser *, char *, SyckNode * );
SyckNode *syck_hdlr_add_alias( SyckParser *, char * );
@@ -207,9 +208,9 @@ void syck_fold_format( struct SyckStr *, int, int, int );
void try_tag_implicit( SyckNode *, int );
char *syck_match_implicit( char *, size_t );
-//
-// API prototypes
-//
+/*
+ * API prototypes
+ */
char *syck_strndup( char *, long );
long syck_io_file_read( char *, SyckIoFile *, long, long );
long syck_io_str_read( char *, SyckIoStr *, long, long );
@@ -231,9 +232,9 @@ void syck_parser_init( SyckParser *, int );
SYMID syck_parse( SyckParser * );
void syck_default_error_handler( SyckParser *, char * );
-//
-// Allocation prototypes
-//
+/*
+ * Allocation prototypes
+ */
SyckNode *syck_alloc_map();
SyckNode *syck_alloc_seq();
SyckNode *syck_alloc_str();