aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2012-06-22 14:38:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-04 18:59:03 +0900
commit24a96a0228ccf355826644a9daad69e11b67b53b (patch)
tree36d939f35605adc513cac2f04afb5b340caf010e /include
parent51d27d25d7f6da520821feae94934c4de51b7bb3 (diff)
downloadruby-24a96a0228ccf355826644a9daad69e11b67b53b.tar.gz
marshal.c: new functions for extensions
* marshal.c (rb_marshal_dump_limited): new function for extension libraries to dump object with limited nest level. * marshal.c (rb_marshal_load_with_proc): new function for extension libraries to load object with hook proc.
Diffstat (limited to 'include')
-rw-r--r--include/ruby/intern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 737c98b64f..bf8c89646c 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -598,6 +598,8 @@ void rb_fd_fix_cloexec(int fd);
/* marshal.c */
VALUE rb_marshal_dump(VALUE, VALUE);
VALUE rb_marshal_load(VALUE);
+VALUE rb_marshal_dump_limited(VALUE obj, VALUE port, int level);
+VALUE rb_marshal_load_with_proc(VALUE port, VALUE proc);
void rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE), VALUE (*loader)(VALUE, VALUE));
/* numeric.c */
NORETURN(void rb_num_zerodiv(void));