lib/lignite/parameter_declarer.rb in lignite-0.5.0 vs lib/lignite/parameter_declarer.rb in lignite-0.6.0

- old
+ new

@@ -13,96 +13,96 @@ # @return [Variables] # Declare an 8-bit input parameter # @param name [Symbol] parameter name def in8(name) - parameters.param(name, 1, PAR8, IN) + parameters.param(name, 1, 1, PAR8, IN) end # Declare an 8-bit output parameter # @param name [Symbol] parameter name def out8(name) - parameters.param(name, 1, PAR8, OUT) + parameters.param(name, 1, 1, PAR8, OUT) end # Declare an 8-bit input+output parameter # @param name [Symbol] parameter name def io8(name) - parameters.param(name, 1, PAR8, IN | OUT) + parameters.param(name, 1, 1, PAR8, IN | OUT) end # Declare a 16-bit input parameter # @param name [Symbol] parameter name def in16(name) - parameters.param(name, 2, PAR16, IN) + parameters.param(name, 2, 1, PAR16, IN) end # Declare a 16-bit output parameter # @param name [Symbol] parameter name def out16(name) - parameters.param(name, 2, PAR16, OUT) + parameters.param(name, 2, 1, PAR16, OUT) end # Declare a 16-bit input+output parameter # @param name [Symbol] parameter name def io16(name) - parameters.param(name, 2, PAR16, IN | OUT) + parameters.param(name, 2, 1, PAR16, IN | OUT) end # Declare a 32-bit input parameter # @param name [Symbol] parameter name def in32(name) - parameters.param(name, 4, PAR32, IN) + parameters.param(name, 4, 1, PAR32, IN) end # Declare a 32-bit output parameter # @param name [Symbol] parameter name def out32(name) - parameters.param(name, 4, PAR32, OUT) + parameters.param(name, 4, 1, PAR32, OUT) end # Declare a 32-bit input+output parameter # @param name [Symbol] parameter name def io32(name) - parameters.param(name, 4, PAR32, IN | OUT) + parameters.param(name, 4, 1, PAR32, IN | OUT) end # Declare a floating-point input parameter # @param name [Symbol] parameter name def inf(name) - parameters.param(name, 4, PARF, IN) + parameters.param(name, 4, 1, PARF, IN) end # Declare a floating-point output parameter # @param name [Symbol] parameter name def outf(name) - parameters.param(name, 4, PARF, OUT) + parameters.param(name, 4, 1, PARF, OUT) end # Declare a floating-point input+output parameter # @param name [Symbol] parameter name def iof(name) - parameters.param(name, 4, PARF, IN | OUT) + parameters.param(name, 4, 1, PARF, IN | OUT) end # Declare a string input parameter # @param name [Symbol] parameter name # @param size [Integer] maximum string size, including the terminating 0 def ins(name, size) - parameters.param(name, size, PARS, IN) + parameters.param(name, 1, size, PARS, IN) end # Declare a string output parameter # @param name [Symbol] parameter name # @param size [Integer] maximum string size, including the terminating 0 def outs(name, size) - parameters.param(name, size, PARS, OUT) + parameters.param(name, 1, size, PARS, OUT) end # Declare a string input+output parameter # @param name [Symbol] parameter name # @param size [Integer] maximum string size, including the terminating 0 def ios(name, size) - parameters.param(name, size, PARS, IN | OUT) + parameters.param(name, 1, size, PARS, IN | OUT) end end end