summaryrefslogtreecommitdiff
path: root/ext/syck/syck.h
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-20 06:48:04 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-20 06:48:04 +0000
commitb614db0432aa9ab228cc4eca773fdc30ec6c900a (patch)
tree0444d4d8af5637f732690a130b911808eb6d6842 /ext/syck/syck.h
parent82cf98939f76cb0af206571b50ea81746bfeed7f (diff)
* st.h: define ST_DATA_T_DEFINED for portability.
* ext/syck/syck.h: add typedef, st_data_t for Ruby 1.6. * ext/syck/syck.c (syck_st_free_nodes): return int. * ext/syck/syck.c (syck_add_sym): cast the data to st_data_t to avoid error on bcc32. * ext/syck/syck.c (syck_lookup_sym): ditto. * ext/syck/syck.c (syck_free_parser): NULL is not integer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syck/syck.h')
-rw-r--r--ext/syck/syck.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/syck/syck.h b/ext/syck/syck.h
index 6bba91bb54..6d10cab714 100644
--- a/ext/syck/syck.h
+++ b/ext/syck/syck.h
@@ -14,7 +14,7 @@
#define YAML_DOMAIN "yaml.org,2002"
#include <stdio.h>
-#include "../../st.h"
+#include "st.h"
#if defined(__cplusplus)
extern "C" {
@@ -257,6 +257,10 @@ long syck_seq_count( SyckNode * );
void apply_seq_in_map( SyckParser *, SyckNode * );
+#ifndef ST_DATA_T_DEFINED
+typedef long st_data_t;
+#endif
+
#if defined(__cplusplus)
} /* extern "C" { */
#endif