Skip to content

Commit

Permalink
refactor!: change extension filename
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshoku committed Nov 5, 2022
1 parent fd7a0c4 commit 2b7a16a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require 'rake/extensiontask'

task build: :compile # rubocop:disable Rake/Desc

Rake::ExtensionTask.new('randomext') do |ext|
Rake::ExtensionTask.new('ext') do |ext|
ext.ext_dir = 'ext/numo/random'
ext.lib_dir = 'lib/numo/random'
end
Expand Down
4 changes: 2 additions & 2 deletions ext/numo/random/randomext.cpp → ext/numo/random/ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
* limitations under the License.
*/

#include "randomext.hpp"
#include "ext.hpp"

extern "C" void Init_randomext(void) {
extern "C" void Init_ext(void) {
rb_require("numo/narray");

VALUE rb_mNumoRandom = rb_define_module_under(mNumo, "Random");
Expand Down
6 changes: 3 additions & 3 deletions ext/numo/random/randomext.hpp → ext/numo/random/ext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* limitations under the License.
*/

#ifndef NUMO_RANDOMEXT_HPP
#define NUMO_RANDOMEXT_HPP 1
#ifndef NUMO_RANDOM_EXT_HPP
#define NUMO_RANDOM_EXT_HPP 1

#include <ruby.h>

Expand Down Expand Up @@ -691,4 +691,4 @@ const rb_data_type_t RbNumoRandomPCG64::pcg64_type = {
RUBY_TYPED_FREE_IMMEDIATELY
};

#endif /* NUMO_RANDOMEXT_HPP */
#endif /* NUMO_RANDOM_EXT_HPP */
2 changes: 1 addition & 1 deletion ext/numo/random/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
$INCFLAGS << " -I$(srcdir)/src"
$VPATH << "$(srcdir)/src"

create_makefile("numo/random/randomext")
create_makefile("numo/random/ext")
2 changes: 1 addition & 1 deletion lib/numo/random.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
require 'numo/narray'

require_relative 'random/version'
require_relative 'random/randomext'
require_relative 'random/ext'
require_relative 'random/generator'

0 comments on commit 2b7a16a

Please sign in to comment.