fixed simple layout offset bug in layout
This commit is contained in:
@@ -40,6 +40,7 @@ module Parfait
|
||||
# TODO , later we would need to COPY the layout to keep the old constant
|
||||
# but now we are concerned with booting, ie getting a working structure
|
||||
def add_instance_variable name
|
||||
self.push(1) if self.get_length == 0
|
||||
self.push(name)
|
||||
self.get_length
|
||||
end
|
||||
@@ -51,7 +52,7 @@ module Parfait
|
||||
|
||||
def object_instance_names
|
||||
names = List.new
|
||||
index = 2 # first is object_class
|
||||
index = 3
|
||||
while index <= self.get_length
|
||||
item = get(index)
|
||||
names.push item
|
||||
@@ -74,6 +75,19 @@ module Parfait
|
||||
list_index(name)
|
||||
end
|
||||
|
||||
def inspect
|
||||
ret = "Layout["
|
||||
index = 3
|
||||
while index <= self.get_length
|
||||
item = get(index)
|
||||
ret += item.inspect
|
||||
ret += "," unless index == self.get_length
|
||||
index = index + 1
|
||||
end
|
||||
ret += "]"
|
||||
ret
|
||||
end
|
||||
|
||||
def sof_reference_name
|
||||
"#{self.object_class.name}_Layout"
|
||||
end
|
||||
|
Reference in New Issue
Block a user