ext/numo/linalg/blas/gen/cogen.rb in numo-linalg-0.1.0 vs ext/numo/linalg/blas/gen/cogen.rb in numo-linalg-0.1.1

- old
+ new

@@ -1,16 +1,14 @@ #! /usr/bin/env ruby pwd = File.dirname(__FILE__) -#libpath = File.absolute_path(File.dirname(__FILE__))+"/../../../../lib" -#$LOAD_PATH.unshift libpath require_relative "./decl" while true if ARGV[0] == "-l" - require "erbpp/line_number" + $line_number = true ARGV.shift elsif ARGV[0] == "-o" ARGV.shift $output = ARGV.shift require "fileutils" @@ -29,15 +27,15 @@ erb_dir = ["../tmpl"] erb_dir.map!{|d| File.join(pwd,d)} code = DefLib.new do + set line_number: $line_number set erb_dir: erb_dir set erb_suffix: ".c" set ns_var: "mN" set file_name: $output || "" - #set include_files: ["numo/types/#{type_name}.h"] set lib_name: "numo_linalg_blas_"+blas_char def_module do mname = "Linalg" mbase = mname.downcase