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);
|
||||
|
Reference in New Issue
Block a user