lib/fiddle/cparser.rb in fiddle-1.0.0.beta2 vs lib/fiddle/cparser.rb in fiddle-1.0.0

- old
+ new

@@ -19,10 +19,11 @@ # module CParser # Parses a C struct's members # # Example: + # require 'fiddle/import' # # include Fiddle::CParser # #=> Object # # parse_struct_signature(['int i', 'char c']) @@ -64,10 +65,11 @@ # If Hash +tymap+ is provided, the return value and the arguments from the # +signature+ are expected to be keys, and the value will be the C type to # be looked up. # # Example: + # require 'fiddle/import' # # include Fiddle::CParser # #=> Object # # parse_signature('double sum(double, double)') @@ -100,9 +102,10 @@ # # If Hash +tymap+ is provided, +ty+ is expected to be the key, and the # value will be the C type to be looked up. # # Example: + # require 'fiddle/import' # # include Fiddle::CParser # #=> Object # # parse_ctype('int')