ext/Rakefile in ruby-vpi-16.0.1 vs ext/Rakefile in ruby-vpi-17.0.0
- old
+ new
@@ -33,18 +33,19 @@
sh %w{swig -ruby -o}, t.name, t.prerequisites[0]
end
file 'swig_vpi.i' => 'swig_vpi.h'
-# avoid compilation problems due to va_list, which is used in the SWIG-generated
-# wrapper for VPI vprintf functions
+# avoid compilation errors due to va_list, which is used
+# in the SWIG-generated wrapper for VPI vprintf functions
file 'swig_vpi.h' => 'vpi_user.h' do |t|
src, dst = t.prerequisites[0], t.name
File.open(dst, 'w') do |f|
- f << File.read(src).gsub(/\bva_list\b/, 'int')
+ f << File.read(src).gsub(/\bva_list\b/, 'void*')
end
end
-# NOTE: since SWIG is not a requirement for users, we should not clobber these
-# generated files
+# NOTE: since SWIG is not a requirement for users,
+# we should not clobber these generated files
+#
#CLOBBER.include 'swig_wrap.cin', 'swig_vpi.h'