lib/scs/ffi.rb in scs-0.3.1 vs lib/scs/ffi.rb in scs-0.3.2

- old
+ new

@@ -25,17 +25,10 @@ m.module_eval do extend Fiddle::Importer dlload File.expand_path("../../vendor/scs/out/#{lib_name}.#{ext}", __dir__) - extern "size_t scs_sizeof_int(void)" - extern "size_t scs_sizeof_float(void)" - - # TODO support other sizes - raise Error, "Unsupported int size" if scs_sizeof_int != 4 - raise Error, "Unsupported float size" if scs_sizeof_float != 8 - typealias "scs_float", "double" typealias "scs_int", "int" m::Data = struct [ "scs_int m", @@ -69,9 +62,10 @@ ] m::Info = struct [ "scs_int iter", "char status[128]", + "char lin_sys_solver[128]", "scs_int status_val", "scs_int scale_updates", "scs_float pobj", "scs_float dobj", "scs_float res_pri",