From 4a26bec0f12d4811de14d0390812a165e06c2256 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Mon, 26 Mar 2018 19:46:38 +0300 Subject: [PATCH] move eventable to util and rename common to util --- lib/risc/instruction.rb | 2 +- lib/risc/interpreter.rb | 3 +-- lib/rubyx.rb | 1 - lib/{risc => util}/eventable.rb | 0 lib/{common => util}/list.rb | 0 5 files changed, 2 insertions(+), 4 deletions(-) rename lib/{risc => util}/eventable.rb (100%) rename lib/{common => util}/list.rb (100%) diff --git a/lib/risc/instruction.rb b/lib/risc/instruction.rb index 5befdba2..2b74c367 100644 --- a/lib/risc/instruction.rb +++ b/lib/risc/instruction.rb @@ -1,4 +1,4 @@ -require "common/list" +require "util/list" module Risc diff --git a/lib/risc/interpreter.rb b/lib/risc/interpreter.rb index 8147f0e2..411bf417 100644 --- a/lib/risc/interpreter.rb +++ b/lib/risc/interpreter.rb @@ -1,5 +1,4 @@ - -require_relative "eventable" +require "util/eventable" module Risc diff --git a/lib/rubyx.rb b/lib/rubyx.rb index 4995fff9..b85181b1 100644 --- a/lib/rubyx.rb +++ b/lib/rubyx.rb @@ -14,6 +14,5 @@ require_relative "elf/object_writer" require_relative "risc" require_relative "arm/arm_machine" require_relative "arm/translator" -require_relative "common/list" require_relative "vool/vool_compiler" require_relative "mom/mom" diff --git a/lib/risc/eventable.rb b/lib/util/eventable.rb similarity index 100% rename from lib/risc/eventable.rb rename to lib/util/eventable.rb diff --git a/lib/common/list.rb b/lib/util/list.rb similarity index 100% rename from lib/common/list.rb rename to lib/util/list.rb