mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
21 lines
406 B
C
21 lines
406 B
C
#include "ruby.h"
|
|
#include "defines.h"
|
|
#ifndef HAVE_RUBY_ADD_SUFFIX
|
|
#define _WIN32 1
|
|
#include "util.c"
|
|
#endif
|
|
|
|
static VALUE
|
|
add_suffix(VALUE self, VALUE path, VALUE suffix)
|
|
{
|
|
StringValueCStr(path);
|
|
ruby_add_suffix(path, StringValueCStr(suffix));
|
|
return path;
|
|
}
|
|
|
|
void
|
|
Init_bug(void)
|
|
{
|
|
VALUE mBug = rb_define_module("Bug");
|
|
rb_define_module_function(mBug, "add_suffix", add_suffix, 2);
|
|
}
|