summaryrefslogtreecommitdiff
path: root/ext/syck/syck.c
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-28 19:27:42 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-28 19:27:42 +0000
commit0a75581a37b360542d05fc6560c8a9567b642955 (patch)
treec269f65ebba51395164a4e45bcc740665ed2152d /ext/syck/syck.c
parentea837fc6feab1b2f1b5400b79b87879aa160f42b (diff)
* ext/syck/syck.h: Added 'syck' yacc prefixes.
* ext/syck/gram.c: ditto. * ext/syck/token.c: ditto. * ext/syck: Added ruby.h reference to source files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.c')
-rw-r--r--ext/syck/syck.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index 4b7be32a180..42b70573bce 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -10,6 +10,7 @@
#include <string.h>
#include "syck.h"
+#include "ruby.h"
void syck_parser_pop_level( SyckParser * );
@@ -44,7 +45,6 @@ syck_strndup( char *buf, long len )
long
syck_io_file_read( char *buf, SyckIoFile *file, long max_size, long skip )
{
- char *beg;
long len = 0;
ASSERT( file != NULL );
@@ -233,9 +233,6 @@ syck_st_free( SyckParser *p )
void
syck_free_parser( SyckParser *p )
{
- char *key;
- SyckNode *node;
-
/*
* Free tables, levels
*/
@@ -477,13 +474,11 @@ syck_parser_readlen( SyckParser *p, long max_size )
SYMID
syck_parse( SyckParser *p )
{
- char *line;
-
ASSERT( p != NULL );
syck_st_free( p );
syck_parser_reset_levels( p );
- yyparse( p );
+ syckparse( p );
return p->root;
}