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:
Sascha Schirra
2017-09-19 02:43:21 +02:00
committed by Nguyen Anh Quynh
parent 46ae3a042e
commit 13007eb12a
22 changed files with 50 additions and 48 deletions

View File

@ -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)

View File

@ -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;
};

View File

@ -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);