node/lib/metasm/metasm/parse_c.rb
def alloc_c_ary(typename, init=1)
			type = find_c_type(typename)
			len = init.kind_of?(Integer) ? init : init.length
			struct = C::Array.new(type, len)
			st = AllocCStruct.new(self, struct)
			if init.kind_of?(::Array)
				init.each_with_index { |v, i|
					st[i] = v
				}
			end
			st
		end
# allocate an array of types
# init is either the length of the array, or an array of initial values
allocate an array of types
init is either the length of the array, or an array of initial values
allocate an array of types init is either the length of the array or an array of initial values
def alloc_c_ary(typename, init=1)
			type = find_c_type(typename)
			len = init.kind_of?(Integer) ? init : init.length
			struct = C::Array.new(type, len)
			st = AllocCStruct.new(self, struct)
			if init.kind_of?(::Array)
				init.each_with_index { |v, i|
					st[i] = v
				}
			end
			st
		end
def alloc_c_ary ( typename , init = 1 ) type = find_c_type ( typename ) len = init . kind_of? ( Integer ) ? init : init . length struct = C :: Array . new ( type , len ) st = AllocCStruct . new ( self , struct ) if init . kind_of? ( :: Array ) init . each_with_index { | v , i | st [ i ] = v } end st end
allocate an array of types
init is either the length of the array, or an array of initial values
allocate an array of types init is either the length of the array or an array of initial values
typename
init