pretty names for references

This commit is contained in:
Torsten Ruger 2015-06-19 19:50:53 +03:00
parent a2bfaf1b2c
commit 7551a16b6e
6 changed files with 21 additions and 1 deletions

View File

@ -1,6 +1,6 @@
GIT
remote: https://github.com/salama/salama-object-file.git
revision: b00f49ade6338da0f6766211a749d2000d36899b
revision: 9adf0b7e002ebef464abc1a3aa44c50c711e8a88
specs:
salama-object-file (0.1)

View File

@ -34,6 +34,9 @@ module Parfait
@object_layout.push name
end
def sof_reference_name
name
end
# ruby 2.1 list (just for reference, keep at bottom)
#:allocate, :new, :superclass
end

View File

@ -47,5 +47,10 @@ module Parfait
def get_object_class()
return @object_class
end
def sof_reference_name
"#{@object_class.name}_Layout"
end
end
end

View File

@ -70,5 +70,9 @@ module Parfait
var
end
def sof_reference_name
@name
end
end
end

View File

@ -74,6 +74,11 @@ module Parfait
c = Class.new_object(name , superclass)
@classes[name] = c
end
def sof_reference_name
"space"
end
end
# ObjectSpace
# :each_object, :garbage_collect, :define_finalizer, :undefine_finalizer, :_id2ref, :count_objects

View File

@ -69,6 +69,9 @@ module Register
new TMP_REG
end
def sof_reference_name
@symbol
end
end