summaryrefslogtreecommitdiff
path: root/ext/syck/syck.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-15 00:52:28 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-15 00:52:28 +0000
commit8bdfa739ad8ea1e57fbfc30d88ef6ade328ae4fe (patch)
tree06b3bb78b71f9ba314015e69808f5073b49001cc /ext/syck/syck.c
parent277d89447adf85d01f624675db3174189fa0a68a (diff)
* ext/syck/syck.c (syck_parser_pop_level): add prototype.
* ext/syck/syck.c (syck_strndup): should return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.c')
-rw-r--r--ext/syck/syck.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index fdec7a95e2f..df68768fed5 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -15,6 +15,8 @@
#define SYCK_YAML_MINOR 0
#define SYCK_BUFFERSIZE 262144
+void syck_parser_pop_level( SyckParser * );
+
/*
* Custom assert
*/
@@ -34,6 +36,7 @@ syck_strndup( char *buf, long len )
char *new = S_ALLOC_N( char, len + 1 );
S_MEMZERO( new, char, len + 1 );
S_MEMCPY( new, buf, char, len );
+ return new;
}
/*