summaryrefslogtreecommitdiff
path: root/ext/syck/emitter.c
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-06 06:39:45 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-06 06:39:45 +0000
commit605014cb5544518d26e1039fa7d2de912151fb46 (patch)
tree77ab105fb4d3d964ac9b3f06b971d0c2d1a6b76f /ext/syck/emitter.c
parent5363ed4c81916bda16b7dad0c6fe5a738bffa726 (diff)
* lib/yaml/rubytypes.rb (to_yaml): added instance variable handling
for Ranges, Strings, Structs, Regexps. * lib/yaml/rubytypes.rb (to_yaml_fold): new method for setting a String's flow style. * lib/yaml.rb (YAML::object_maker): now uses Object.allocate. * ext/syck/gram.c: fixed transfer methods on structs, broke it last commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/emitter.c')
-rw-r--r--ext/syck/emitter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/syck/emitter.c b/ext/syck/emitter.c
index d373ed4c45..25437b230c 100644
--- a/ext/syck/emitter.c
+++ b/ext/syck/emitter.c
@@ -9,11 +9,12 @@
* All Base64 code from Ruby's pack.c.
* Ruby is Copyright (C) 1993-2003 Yukihiro Matsumoto
*/
+#include "ruby.h"
+
#include <stdio.h>
#include <string.h>
#include "syck.h"
-#include "ruby.h"
#define DEFAULT_ANCHOR_FORMAT "id%03d"