Sha256: 6e6910c7b5f38630c19c4f1d32ad4d1e62b9dc13a90ea055c6d3d9c62dca9098
Contents?: true
Size: 460 Bytes
Versions: 9
Compression:
Stored size: 460 Bytes
Contents
puts <<EOL #ifndef NUMO_CBLAS_T_H #define NUMO_CBLAS_T_H EOL ARGF.each_line do |line| case line when /__cplusplus/ puts line break end end type, name = nil,nil ARGF.each_line do |line| line.sub!(/^(\w+)\s+cblas_(\w+)\s*\(/) do type, name = $1,$2 "typedef #{type} (*#{name}_t)(" end case name when /^[id]?z/; line.gsub!(/\bvoid\s*\*/,"dcomplex *") when /^[is]?c/; line.gsub!(/\bvoid\s*\*/,"scomplex *") end puts line end
Version data entries
9 entries across 9 versions & 1 rubygems