blob: 22bb6d7887af3836a9b7df0709a837b3e084d566 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "ruby.h"
#include "internal.h"
#ifdef __APPLE__
static VALUE
normalize_ospath(VALUE str)
{
return rb_str_normalize_ospath(RSTRING_PTR(str), RSTRING_LEN(str));
}
#else
#define normalize_ospath rb_f_notimplement
#endif
void
Init_normalize(VALUE klass)
{
rb_define_method(klass, "normalize_ospath", normalize_ospath, 0);
}
|