diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-12-21 12:55:42 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-12-21 12:55:42 +0100 |
commit | 2f5f999734b7ba7367ff0272e4c6b53fbd81ab7b (patch) | |
tree | a04222acf717fecbd129ced47b81397a1d0153de /lib | |
parent | 24ef65c059bc0bc9bfd22b3fcc49f1fbbf31b5e3 (diff) | |
download | ffi-2f5f999734b7ba7367ff0272e4c6b53fbd81ab7b.tar.gz |
Remove trailing spaces in .rb files
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ffi/autopointer.rb | 2 | ||||
-rw-r--r-- | lib/ffi/io.rb | 6 | ||||
-rw-r--r-- | lib/ffi/managedstruct.rb | 4 | ||||
-rw-r--r-- | lib/ffi/pointer.rb | 4 | ||||
-rw-r--r-- | lib/ffi/variadic.rb | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/lib/ffi/autopointer.rb b/lib/ffi/autopointer.rb index 889a3e3..679d7e6 100644 --- a/lib/ffi/autopointer.rb +++ b/lib/ffi/autopointer.rb @@ -117,7 +117,7 @@ module FFI end # @abstract Base class for {AutoPointer}'s releasers. - # + # # All subclasses of Releaser should define a +#release(ptr)+ method. # A releaser is an object in charge of release an {AutoPointer}. class Releaser diff --git a/lib/ffi/io.rb b/lib/ffi/io.rb index 7fa1cf7..e1bb955 100644 --- a/lib/ffi/io.rb +++ b/lib/ffi/io.rb @@ -29,7 +29,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.# module FFI - + # This module implements a couple of class methods to play with IO. module IO # @param [Integer] fd file decriptor @@ -42,12 +42,12 @@ module FFI # @param [#read] io io to read from # @param [AbstractMemory] buf destination for data read from +io+ - # @param [nil, Numeric] len maximul number of bytes to read from +io+. If +nil+, + # @param [nil, Numeric] len maximul number of bytes to read from +io+. If +nil+, # read until end of file. # @return [Numeric] length really read, in bytes # # A version of IO#read that reads data from an IO and put then into a native buffer. - # + # # This will be optimized at some future time to eliminate the double copy. # def self.native_read(io, buf, len) diff --git a/lib/ffi/managedstruct.rb b/lib/ffi/managedstruct.rb index 0536280..b5ec8a3 100644 --- a/lib/ffi/managedstruct.rb +++ b/lib/ffi/managedstruct.rb @@ -44,7 +44,7 @@ module FFI # attach_function :new_dlist, [], :pointer # attach_function :destroy_dlist, [:pointer], :void # end - # + # # class DoublyLinkedList < FFI::ManagedStruct # @@@ # struct do |s| @@ -71,7 +71,7 @@ module FFI # @overload initialize(pointer) # @param [Pointer] pointer - # Create a new ManagedStruct which will invoke the class method #release on + # Create a new ManagedStruct which will invoke the class method #release on # @overload initialize # A new instance of FFI::ManagedStruct. def initialize(pointer=nil) diff --git a/lib/ffi/pointer.rb b/lib/ffi/pointer.rb index a5ee655..37a054b 100644 --- a/lib/ffi/pointer.rb +++ b/lib/ffi/pointer.rb @@ -52,7 +52,7 @@ module FFI # @param [nil,Numeric] len length of string to return # @return [String] - # Read pointer's contents as a string, or the first +len+ bytes of the + # Read pointer's contents as a string, or the first +len+ bytes of the # equivalent string if +len+ is not +nil+. def read_string(len=nil) if len @@ -96,7 +96,7 @@ module FFI # @param [String] str string to write # @param [Numeric] len length of string to return # @return [self] - # Write +str+ in pointer's contents, or first +len+ bytes if + # Write +str+ in pointer's contents, or first +len+ bytes if # +len+ is not +nil+. def write_string(str, len=nil) len = str.bytesize unless len diff --git a/lib/ffi/variadic.rb b/lib/ffi/variadic.rb index 2414055..19a35d4 100644 --- a/lib/ffi/variadic.rb +++ b/lib/ffi/variadic.rb @@ -31,7 +31,7 @@ # module FFI - class VariadicInvoker + class VariadicInvoker def init(arg_types, type_map) @fixed = Array.new @type_map = type_map |