summaryrefslogtreecommitdiff
path: root/ext/syck/syck.c
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.c
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.c')
-rw-r--r--ext/syck/syck.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index d227a36305b..a7955b448b9 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -85,7 +85,7 @@ syck_io_str_read( char *buf, SyckIoStr *str, long max_size, long skip )
}
else
{
- // Use exact string length
+ /* Use exact string length */
while ( str->ptr < str->end ) {
if (*(str->ptr++) == '\n') break;
}
@@ -210,18 +210,18 @@ syck_st_free_nodes( char *key, SyckNode *n, char *arg )
void
syck_st_free( SyckParser *p )
{
- //
- // Free the adhoc symbol table
- //
+ /*
+ * Free the adhoc symbol table
+ */
if ( p->syms != NULL )
{
st_free_table( p->syms );
p->syms = NULL;
}
- //
- // Free the anchor tables
- //
+ /*
+ * Free the anchor tables
+ */
if ( p->anchors != NULL )
{
st_foreach( p->anchors, syck_st_free_nodes, 0 );
@@ -243,9 +243,9 @@ syck_free_parser( SyckParser *p )
char *key;
SyckNode *node;
- //
- // Free tables, levels
- //
+ /*
+ * Free tables, levels
+ */
syck_st_free( p );
syck_parser_reset_levels( p );
S_FREE( p->levels[0].domain );
@@ -349,7 +349,7 @@ syck_parser_pop_level( SyckParser *p )
{
ASSERT( p != NULL );
- // The root level should never be popped
+ /* The root level should never be popped */
if ( p->lvl_idx <= 1 ) return;
p->lvl_idx -= 1;