renamed unicorn gem to unicorn-engine (#895)
* renamed gem unicorn to unicorn-engine * renamed modules to unicornengine * renamed Module Unicorn to UnicornEngine and the gem unicorn-engine to unicornengine * unicornengine -> unicorn_engine
This commit is contained in:
committed by
Nguyen Anh Quynh
parent
46ae3a042e
commit
13007eb12a
@@ -1,8 +1,8 @@
|
||||
require 'mkmf'
|
||||
|
||||
extension_name = 'unicorn'
|
||||
extension_name = 'unicorn_engine'
|
||||
|
||||
dir_config(extension_name)
|
||||
have_library('unicorn')
|
||||
|
||||
create_makefile(extension_name)
|
||||
create_makefile(extension_name)
|
||||
|
||||
@@ -23,3 +23,11 @@ typedef struct uc_x86_float80 {
|
||||
uint64_t mantissa;
|
||||
uint16_t exponent;
|
||||
} uc_x86_float80;
|
||||
|
||||
|
||||
struct hook {
|
||||
uc_hook trace;
|
||||
VALUE cb;
|
||||
VALUE ud;
|
||||
VALUE rUc;
|
||||
};
|
||||
|
||||
@@ -30,16 +30,10 @@ VALUE UcError = Qnil;
|
||||
VALUE SavedContext = Qnil;
|
||||
VALUE Hook = Qnil;
|
||||
|
||||
struct hook {
|
||||
uc_hook trace;
|
||||
VALUE cb;
|
||||
VALUE ud;
|
||||
VALUE rUc;
|
||||
};
|
||||
|
||||
void Init_unicorn() {
|
||||
rb_require("unicorn/unicorn_const");
|
||||
UnicornModule = rb_define_module("Unicorn");
|
||||
void Init_unicorn_engine() {
|
||||
rb_require("unicorn_engine/unicorn_const");
|
||||
UnicornModule = rb_define_module("UnicornEngine");
|
||||
UcError = rb_define_class_under(UnicornModule, "UcError", rb_eStandardError);
|
||||
SavedContext = rb_define_class_under(UnicornModule, "SavedContext", rb_cObject);
|
||||
Hook = rb_define_class_under(UnicornModule, "Hook", rb_cObject);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [arm64_const.rb]
|
||||
|
||||
module Unicorn
|
||||
module UnicornEngine
|
||||
|
||||
# ARM64 registers
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [arm_const.rb]
|
||||
|
||||
module Unicorn
|
||||
module UnicornEngine
|
||||
|
||||
# ARM registers
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [m68k_const.rb]
|
||||
|
||||
module Unicorn
|
||||
module UnicornEngine
|
||||
|
||||
# M68K registers
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [mips_const.rb]
|
||||
|
||||
module Unicorn
|
||||
module UnicornEngine
|
||||
|
||||
# MIPS registers
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [sparc_const.rb]
|
||||
|
||||
module Unicorn
|
||||
module UnicornEngine
|
||||
|
||||
# SPARC registers
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [unicorn_const.rb]
|
||||
|
||||
module Unicorn
|
||||
module UnicornEngine
|
||||
UC_API_MAJOR = 1
|
||||
|
||||
UC_API_MINOR = 0
|
||||
@@ -1,6 +1,6 @@
|
||||
# For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT [x86_const.rb]
|
||||
|
||||
module Unicorn
|
||||
module UnicornEngine
|
||||
|
||||
# X86 registers
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# coding: utf-8
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'unicorn/version'
|
||||
require 'unicorn_engine/version'
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "unicorn"
|
||||
spec.name = "unicorn_engine"
|
||||
spec.version = Unicorn::VERSION
|
||||
spec.authors = ["Sascha Schirra"]
|
||||
spec.email = ["sashs@scoding.de"]
|
||||
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
||||
spec.description = %q{Ruby binding for Unicorn-Engine <unicorn-engine.org>}
|
||||
spec.homepage = "https://unicorn-engine.org"
|
||||
|
||||
spec.files = Dir["lib/unicorn/*.rb"] + Dir["ext/unicorn.c"] + Dir["ext/unicorn.h"] + Dir["ext/types.h"] + Dir["ext/extconf.rb"]
|
||||
spec.files = Dir["lib/unicorn_engine/*.rb"] + Dir["ext/unicorn.c"] + Dir["ext/unicorn.h"] + Dir["ext/types.h"] + Dir["ext/extconf.rb"]
|
||||
spec.require_paths = ["lib","ext"]
|
||||
spec.extensions = ["ext/extconf.rb"]
|
||||
spec.add_development_dependency "bundler", "~> 1.11"
|
||||
|
||||
Reference in New Issue
Block a user