[ruby/prism] Use `version: 3.3.1` against `Translation::Parser`
[ruby.git] / dmydln.c
blob1f5b59022b1ad5c2802d7e23445dadea212c8aeb
1 // This file is used by miniruby, not ruby.
2 // ruby uses dln.c.
4 #include "ruby/ruby.h"
6 bool
7 dln_supported_p(void)
9 return false;
12 NORETURN(void *dln_load(const char *));
13 void*
14 dln_load(const char *file)
16 rb_loaderror("this executable file can't load extension libraries");
18 UNREACHABLE_RETURN(NULL);
21 NORETURN(void *dln_symbol(void*,const char*));
22 void*
23 dln_symbol(void *handle, const char *symbol)
25 rb_loaderror("this executable file can't load extension libraries");
27 UNREACHABLE_RETURN(NULL);
30 void*
31 dln_open(const char *library, char *error, size_t size)
33 static const char *error_str = "this executable file can't load extension libraries";
34 strlcpy(error, error_str, size);
35 return NULL;