summaryrefslogtreecommitdiff
path: root/ext/syck
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-21 02:47:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-21 02:47:17 +0000
commit212d962a3b8b538433235571c450d86766295928 (patch)
treed60eb6092b02e9f20ebd4915f260124c679d4c0d /ext/syck
parent208ff30c076d16db2e2b6fc3f0d635b3197e7ca4 (diff)
C++/C99 style comments are not allowed yet. (ruby-bugs:PR#1184)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck')
-rw-r--r--ext/syck/emitter.c2
-rw-r--r--ext/syck/yaml2byte.c32
2 files changed, 17 insertions, 17 deletions
diff --git a/ext/syck/emitter.c b/ext/syck/emitter.c
index 62f1b57..1cc0ea5 100644
--- a/ext/syck/emitter.c
+++ b/ext/syck/emitter.c
@@ -102,7 +102,7 @@ syck_base64dec( char *s, long len )
}
}
*end = '\0';
- //RSTRING(buf)->len = ptr - RSTRING(buf)->ptr;
+ /*RSTRING(buf)->len = ptr - RSTRING(buf)->ptr;*/
return ptr;
}
diff --git a/ext/syck/yaml2byte.c b/ext/syck/yaml2byte.c
index 54493c0..ed672ef 100644
--- a/ext/syck/yaml2byte.c
+++ b/ext/syck/yaml2byte.c
@@ -1,14 +1,14 @@
-//
-// ybext.c
-//
-// $Author$
-// $Date$
-//
-// Copyright (C) 2003 why the lucky stiff, clark evans
-//
-// WARNING WARNING WARNING --- THIS IS *NOT JUST* PLAYING
-// ANYMORE! -- WHY HAS EMBRACED THIS AS THE REAL THING!
-//
+/*
+ * ybext.c
+ *
+ * $Author$
+ * $Date$
+ *
+ * Copyright (C) 2003 why the lucky stiff, clark evans
+ *
+ * WARNING WARNING WARNING --- THIS IS *NOT JUST* PLAYING
+ * ANYMORE! -- WHY HAS EMBRACED THIS AS THE REAL THING!
+ */
#include <syck.h>
#include <assert.h>
#define YAMLBYTE_UTF8
@@ -37,7 +37,7 @@ typedef struct {
} bytestring_t;
bytestring_t *bytestring_alloc() {
bytestring_t *ret;
- //TRACE0("bytestring_alloc()");
+ /*TRACE0("bytestring_alloc()");*/
ret = S_ALLOC(bytestring_t);
ret->hash = HASH;
ret->length = CHUNKSIZE;
@@ -54,7 +54,7 @@ void bytestring_append(bytestring_t *str, char code,
long length = 2; /* CODE + LF */
char *curr;
assert(str && HASH == str->hash);
- //TRACE0("bytestring_append()");
+ /*TRACE0("bytestring_append()");*/
if(start) {
if(!finish)
finish = start + strlen(start);
@@ -129,7 +129,7 @@ syck_yaml2byte_handler(p, n)
char *finish;
bytestring_t *val = NULL;
bytestring_t *sav = NULL;
- //TRACE0("syck_yaml2byte_handler()");
+ /*TRACE0("syck_yaml2byte_handler()");*/
val = bytestring_alloc();
if(n->anchor) bytestring_append(val,YAMLBYTE_ANCHOR, n->anchor, NULL);
if ( n->type_id )
@@ -154,7 +154,7 @@ syck_yaml2byte_handler(p, n)
start = n->data.str->ptr;
finish = start + n->data.str->len - 1;
current = start;
- //TRACE2("SCALAR: %s %d", start, n->data.str->len);
+ /*TRACE2("SCALAR: %s %d", start, n->data.str->len); */
while(1) {
ch = *current;
if('\n' == ch || 0 == ch || current > finish) {
@@ -208,7 +208,7 @@ syck_yaml2byte_handler(p, n)
break;
}
oid = syck_add_sym( p, (char *) val );
- //TRACE1("Saving: %s", val->buffer );
+ /*TRACE1("Saving: %s", val->buffer );*/
return oid;
}