summaryrefslogtreecommitdiff
path: root/ext/-test-/string/normalize.c
blob: 2e16a4616fd567eef753fafd79e6c68399426124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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);
}