ruby-vpi 16.0.0 → 16.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/Rakefile +2 -4
  2. data/doc/history.html +147 -126
  3. data/doc/history.yaml +17 -0
  4. data/doc/manual.html +76 -76
  5. data/doc/memo.html +4 -4
  6. data/doc/readme.html +9 -9
  7. data/doc/rss.xml +25 -0
  8. data/ext/Rakefile +1 -1
  9. data/ext/swig_wrap.cin +198 -220
  10. data/lib/ruby-vpi/rake.rb +1 -1
  11. data/lib/ruby-vpi/runner.rb +1 -1
  12. data/ref/c/annotated.html +3 -3
  13. data/ref/c/common_8h.html +12 -12
  14. data/ref/c/doxygen.css +1 -1
  15. data/ref/c/files.html +3 -3
  16. data/ref/c/functions.html +97 -47
  17. data/ref/c/functions_vars.html +97 -47
  18. data/ref/c/globals.html +5 -4
  19. data/ref/c/globals_0x63.html +67 -35
  20. data/ref/c/globals_0x65.html +5 -4
  21. data/ref/c/globals_0x66.html +5 -4
  22. data/ref/c/globals_0x6d.html +12 -6
  23. data/ref/c/globals_0x70.html +37 -20
  24. data/ref/c/globals_0x72.html +20 -10
  25. data/ref/c/globals_0x73.html +21 -12
  26. data/ref/c/globals_0x74.html +5 -4
  27. data/ref/c/globals_0x76.html +851 -425
  28. data/ref/c/globals_0x78.html +5 -4
  29. data/ref/c/globals_defs.html +67 -35
  30. data/ref/c/globals_defs_0x65.html +5 -4
  31. data/ref/c/globals_defs_0x70.html +7 -5
  32. data/ref/c/globals_defs_0x76.html +837 -420
  33. data/ref/c/globals_defs_0x78.html +5 -4
  34. data/ref/c/globals_enum.html +5 -4
  35. data/ref/c/globals_eval.html +7 -5
  36. data/ref/c/globals_func.html +50 -15
  37. data/ref/c/globals_type.html +53 -28
  38. data/ref/c/globals_vars.html +14 -8
  39. data/ref/c/index.html +3 -3
  40. data/ref/c/main_8c.html +3 -3
  41. data/ref/c/main_8h.html +3 -3
  42. data/ref/c/relay_8c.html +3 -3
  43. data/ref/c/relay_8h.html +3 -3
  44. data/ref/c/structt__cb__data.html +15 -15
  45. data/ref/c/structt__vpi__delay.html +15 -15
  46. data/ref/c/structt__vpi__error__info.html +17 -17
  47. data/ref/c/structt__vpi__strengthval.html +3 -3
  48. data/ref/c/structt__vpi__systf__data.html +15 -15
  49. data/ref/c/structt__vpi__time.html +11 -11
  50. data/ref/c/structt__vpi__value.html +21 -21
  51. data/ref/c/structt__vpi__vecval.html +3 -3
  52. data/ref/c/structt__vpi__vlog__info.html +3 -3
  53. data/ref/c/verilog_8h.html +3 -3
  54. data/ref/c/vlog_8c.html +3 -3
  55. data/ref/c/vlog_8h.html +3 -3
  56. data/ref/c/vpi__user_8h.html +3 -3
  57. data/ref/ruby/classes/ERB.html +1 -1
  58. data/ref/ruby/classes/FileUtils.html +3 -2
  59. data/ref/ruby/classes/FileUtils.src/M000025.html +1 -1
  60. data/ref/ruby/classes/Float.html +2 -1
  61. data/ref/ruby/classes/Integer.html +12 -8
  62. data/ref/ruby/classes/RubyVpi/Config.html +1 -1
  63. data/ref/ruby/classes/Vpi.html +3 -3
  64. data/ref/ruby/classes/Vpi/Handle.html +1 -1
  65. data/ref/ruby/classes/Vpi/S_vpi_time.html +5 -3
  66. data/ref/ruby/created.rid +1 -1
  67. data/ref/ruby/files/bin/generate_test_rb.html +3 -3
  68. data/ref/ruby/files/bin/header_to_ruby_rb.html +1 -1
  69. data/ref/ruby/files/lib/ruby-vpi/erb_rb.html +1 -1
  70. data/ref/ruby/files/lib/ruby-vpi/float_rb.html +1 -1
  71. data/ref/ruby/files/lib/ruby-vpi/integer_rb.html +1 -1
  72. data/ref/ruby/files/lib/ruby-vpi/rake_rb.html +1 -1
  73. data/ref/ruby/files/lib/ruby-vpi/rcov_rb.html +1 -1
  74. data/ref/ruby/files/lib/ruby-vpi/rdoc_rb.html +1 -1
  75. data/ref/ruby/files/lib/ruby-vpi/runner_proxy_rb.html +1 -1
  76. data/ref/ruby/files/lib/ruby-vpi/runner_rb.html +1 -1
  77. data/ref/ruby/files/lib/ruby-vpi/verilog_parser_rb.html +1 -1
  78. data/ref/ruby/files/lib/ruby-vpi/vpi_rb.html +1 -1
  79. data/ref/ruby/files/lib/ruby-vpi_rb.html +1 -1
  80. metadata +24 -24
@@ -18,10 +18,10 @@
18
18
 
19
19
  <div id="index">
20
20
  <h1>Contents</h1>
21
- <ul><li><a id="a-606616158" href="#Pending_tasks">Pending tasks</a></li><li><a id="a-606618668" href="#Finished_tasks">Finished tasks</a></li><li><a id="a-606619638" href="#Obsolete_tasks">Obsolete tasks</a></li></ul>
21
+ <ul><li><a id="a-606759078" href="#Pending_tasks">Pending tasks</a></li><li><a id="a-606760118" href="#Finished_tasks">Finished tasks</a></li><li><a id="a-606761088" href="#Obsolete_tasks">Obsolete tasks</a></li></ul>
22
22
 
23
23
  </div>
24
- <h1><a id="Pending_tasks" href="#a-606616158">1</a> &nbsp; Pending tasks</h1>
24
+ <h1><a id="Pending_tasks" href="#a-606759078">1</a> &nbsp; Pending tasks</h1>
25
25
 
26
26
 
27
27
  <ul>
@@ -59,7 +59,7 @@
59
59
  </ul>
60
60
 
61
61
 
62
- <h1><a id="Finished_tasks" href="#a-606618668">2</a> &nbsp; Finished tasks</h1>
62
+ <h1><a id="Finished_tasks" href="#a-606760118">2</a> &nbsp; Finished tasks</h1>
63
63
 
64
64
 
65
65
  <ul>
@@ -127,7 +127,7 @@
127
127
  </ul>
128
128
 
129
129
 
130
- <h1><a id="Obsolete_tasks" href="#a-606619638">3</a> &nbsp; Obsolete tasks</h1>
130
+ <h1><a id="Obsolete_tasks" href="#a-606761088">3</a> &nbsp; Obsolete tasks</h1>
131
131
 
132
132
 
133
133
  <ul>
@@ -37,7 +37,7 @@
37
37
  }
38
38
  </style>
39
39
 
40
- <h1 style="margin-top: 0;"><a id="Ruby-VPI" href="#a-606773538">1</a> &nbsp; Ruby-VPI</h1>
40
+ <h1 style="margin-top: 0;"><a id="Ruby-VPI" href="#a-607628178">1</a> &nbsp; Ruby-VPI</h1>
41
41
 
42
42
 
43
43
  <p><a href="http://www.ruby-lang.org"><img src="images/ruby/logo-reflection.png" alt="Logo of the Ruby programming language" style="margin: 0; margin-left: 2em; float: right"/></a></p>
@@ -59,7 +59,7 @@
59
59
 
60
60
  <div id="resources">
61
61
 
62
- <h2><a id="Resources" href="#a-606776378">1.1</a> &nbsp; Resources</h2>
62
+ <h2><a id="Resources" href="#a-607629158">1.1</a> &nbsp; Resources</h2>
63
63
 
64
64
 
65
65
  <p class="title">Records</p>
@@ -116,7 +116,7 @@
116
116
 
117
117
  </div>
118
118
 
119
- <h2 ><a id="intro.features" href="#a-606777368">1.2</a> &nbsp; Features</h2>
119
+ <h2 ><a id="intro.features" href="#a-607630098">1.2</a> &nbsp; Features</h2>
120
120
 
121
121
 
122
122
  <p class="title">Portable</p>
@@ -173,7 +173,7 @@
173
173
  </ul>
174
174
 
175
175
 
176
- <h2 ><a id="intro.reqs" href="#a-606778438">1.3</a> &nbsp; Requirements</h2>
176
+ <h2 ><a id="intro.reqs" href="#a-607631128">1.3</a> &nbsp; Requirements</h2>
177
177
 
178
178
 
179
179
  <p>The following software is necessary in order to use Ruby-VPI.</p>
@@ -251,7 +251,7 @@
251
251
  </ul>
252
252
 
253
253
 
254
- <h2 ><a id="intro.applications" href="#a-606779428">1.4</a> &nbsp; Applications</h2>
254
+ <h2 ><a id="intro.applications" href="#a-607632078">1.4</a> &nbsp; Applications</h2>
255
255
 
256
256
 
257
257
  <p>Examples of tasks that can be performed with Ruby-VPI are:</p>
@@ -285,7 +285,7 @@
285
285
  </ul>
286
286
 
287
287
 
288
- <h2 ><a id="intro.appetizers" href="#a-606780568">1.5</a> &nbsp; Appetizers</h2>
288
+ <h2 ><a id="intro.appetizers" href="#a-607633188">1.5</a> &nbsp; Appetizers</h2>
289
289
 
290
290
 
291
291
  <p>Here is a tiny sampling of code to whet your appetite. See <a href="manual.html#usage.tutorial">the tutorial</a> for more samples.</p>
@@ -331,7 +331,7 @@
331
331
  </blockquote>
332
332
 
333
333
 
334
- <h2 ><a id="intro.license" href="#a-606781628">1.6</a> &nbsp; License</h2>
334
+ <h2 ><a id="intro.license" href="#a-607634248">1.6</a> &nbsp; License</h2>
335
335
 
336
336
 
337
337
  <p>Copyright&#169; 2006-2007 Suraj N. Kurapati</p>
@@ -362,7 +362,7 @@ of distribution plus a nominal fee, with information on how to obtain the Code.<
362
362
  <span class="caps">THE SOFTWARE</span>.</p>
363
363
 
364
364
 
365
- <h2 ><a id="intro.related-works" href="#a-606782898">1.7</a> &nbsp; Related works</h2>
365
+ <h2 ><a id="intro.related-works" href="#a-607635258">1.7</a> &nbsp; Related works</h2>
366
366
 
367
367
 
368
368
  <ul>
@@ -374,7 +374,7 @@ of distribution plus a nominal fee, with information on how to obtain the Code.<
374
374
  </ul>
375
375
 
376
376
 
377
- <h3 ><a id="intro.related-works.pli" href="#a-606785918">1.7.1</a> &nbsp; Ye olde <span class="caps">PLI</span></h3>
377
+ <h3 ><a id="intro.related-works.pli" href="#a-607636448">1.7.1</a> &nbsp; Ye olde <span class="caps">PLI</span></h3>
378
378
 
379
379
 
380
380
  <p>The following projects utilize the archaic <strong>tf</strong> and <strong>acc</strong> PLI interfaces, which have been officially deprecated in <span class="caps">IEEE</span> Std 1364-2005.</p>
@@ -4,6 +4,31 @@
4
4
  <title>Ruby-VPI</title>
5
5
  <link>http://ruby-vpi.rubyforge.org</link>
6
6
  <description>Ruby-VPI is a Ruby interface to IEEE 1364-2005 Verilog VPI and a platform for unit testing, rapid prototyping, and systems integration of Verilog modules through Ruby. It lets you create complex Verilog test benches easily and wholly in Ruby.</description>
7
+ <item>
8
+ <title>Version 16.0.1 released</title>
9
+ <link>http://ruby-vpi.rubyforge.org/doc/history.html#a16.0.1</link>
10
+ <guid>http://ruby-vpi.rubyforge.org/doc/history.html#a16.0.1</guid>
11
+ <description>&lt;h1 id=&quot;16.0.1&quot;&gt;Version 16.0.1 (2007-05-27)&lt;/h1&gt;
12
+
13
+ &lt;p&gt;This release restores support for installation on Mac &lt;span class=&quot;caps&quot;&gt;OS X&lt;/span&gt;.&lt;/p&gt;
14
+
15
+
16
+ &lt;h2&gt;Thanks&lt;/h2&gt;
17
+
18
+
19
+ &lt;ul&gt;
20
+ &lt;li&gt;Mark Thompson &lt;a href=&quot;http://rubyforge.org/tracker/index.php?func=detail&amp;#38;aid=11125&amp;#38;group_id=1339&amp;#38;atid=5281&quot;&gt;reported and solved&lt;/a&gt; the problem.&lt;/li&gt;
21
+ &lt;/ul&gt;
22
+
23
+
24
+ &lt;h2&gt;Repairs&lt;/h2&gt;
25
+
26
+
27
+ &lt;ul&gt;
28
+ &lt;li&gt;Shared-object files have a file extension of &lt;tt&gt;.so&lt;/tt&gt; in Linux and &lt;tt&gt;.bundle&lt;/tt&gt; on Mac &lt;span class=&quot;caps&quot;&gt;OS X&lt;/span&gt;. Previously, only the Linux file extension was supported.&lt;/li&gt;
29
+ &lt;/ul&gt;</description>
30
+ <pubDate>Sun, 27 May 2007 00:00:00 PDT</pubDate>
31
+ </item>
7
32
  <item>
8
33
  <title>Version 16.0.0 released</title>
9
34
  <link>http://ruby-vpi.rubyforge.org/doc/history.html#a16.0.0</link>
@@ -23,7 +23,7 @@ file 'Makefile' => [:swig, 'extconf.rb'] do |t|
23
23
  ruby t.prerequisites[1], "--with-cflags=#{ENV['CFLAGS']}", "--with-ldflags=#{ENV['LDFLAGS']}"
24
24
  end
25
25
 
26
- CLEAN.include 'Makefile', 'mkmf.log', '*.o', '*.so'
26
+ CLEAN.include 'Makefile', 'mkmf.log', '*.o', '*.' + Config::CONFIG['DLEXT']
27
27
 
28
28
 
29
29
  desc 'Generate Ruby wrapper for VPI.'
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 1.3.28
3
+ * Version 1.3.31
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -9,12 +9,10 @@
9
9
  * ----------------------------------------------------------------------------- */
10
10
 
11
11
  #define SWIGRUBY
12
- /***********************************************************************
13
- *
12
+ /* -----------------------------------------------------------------------------
14
13
  * This section contains generic SWIG labels for method/variable
15
14
  * declarations/attributes, and other compiler dependent labels.
16
- *
17
- ************************************************************************/
15
+ * ----------------------------------------------------------------------------- */
18
16
 
19
17
  /* template workaround for compilers that cannot correctly implement the C++ standard */
20
18
  #ifndef SWIGTEMPLATEDISAMBIGUATOR
@@ -71,7 +69,13 @@
71
69
  # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
72
70
  #endif
73
71
 
74
- /* exporting methods for Windows DLLs */
72
+ /* exporting methods */
73
+ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
74
+ # ifndef GCC_HASCLASSVISIBILITY
75
+ # define GCC_HASCLASSVISIBILITY
76
+ # endif
77
+ #endif
78
+
75
79
  #ifndef SWIGEXPORT
76
80
  # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
77
81
  # if defined(STATIC_LINKED)
@@ -80,7 +84,11 @@
80
84
  # define SWIGEXPORT __declspec(dllexport)
81
85
  # endif
82
86
  # else
83
- # define SWIGEXPORT
87
+ # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
88
+ # define SWIGEXPORT __attribute__ ((visibility("default")))
89
+ # else
90
+ # define SWIGEXPORT
91
+ # endif
84
92
  # endif
85
93
  #endif
86
94
 
@@ -93,12 +101,15 @@
93
101
  # endif
94
102
  #endif
95
103
 
96
- /***********************************************************************
97
- *
104
+ /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
105
+ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
106
+ # define _CRT_SECURE_NO_DEPRECATE
107
+ #endif
108
+
109
+ /* -----------------------------------------------------------------------------
98
110
  * This section contains generic SWIG labels for method/variable
99
111
  * declarations/attributes, and other compiler dependent labels.
100
- *
101
- ************************************************************************/
112
+ * ----------------------------------------------------------------------------- */
102
113
 
103
114
  /* template workaround for compilers that cannot correctly implement the C++ standard */
104
115
  #ifndef SWIGTEMPLATEDISAMBIGUATOR
@@ -155,7 +166,13 @@
155
166
  # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
156
167
  #endif
157
168
 
158
- /* exporting methods for Windows DLLs */
169
+ /* exporting methods */
170
+ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
171
+ # ifndef GCC_HASCLASSVISIBILITY
172
+ # define GCC_HASCLASSVISIBILITY
173
+ # endif
174
+ #endif
175
+
159
176
  #ifndef SWIGEXPORT
160
177
  # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
161
178
  # if defined(STATIC_LINKED)
@@ -164,7 +181,11 @@
164
181
  # define SWIGEXPORT __declspec(dllexport)
165
182
  # endif
166
183
  # else
167
- # define SWIGEXPORT
184
+ # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
185
+ # define SWIGEXPORT __attribute__ ((visibility("default")))
186
+ # else
187
+ # define SWIGEXPORT
188
+ # endif
168
189
  # endif
169
190
  #endif
170
191
 
@@ -177,17 +198,21 @@
177
198
  # endif
178
199
  #endif
179
200
 
180
- /***********************************************************************
201
+ /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
202
+ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
203
+ # define _CRT_SECURE_NO_DEPRECATE
204
+ #endif
205
+
206
+ /* -----------------------------------------------------------------------------
181
207
  * swigrun.swg
182
208
  *
183
- * This file contains generic CAPI SWIG runtime support for pointer
184
- * type checking.
185
- *
186
- ************************************************************************/
209
+ * This file contains generic CAPI SWIG runtime support for pointer
210
+ * type checking.
211
+ * ----------------------------------------------------------------------------- */
187
212
 
188
213
  /* This should only be incremented when either the layout of swig_type_info changes,
189
214
  or for whatever reason, the runtime changes incompatibly */
190
- #define SWIG_RUNTIME_VERSION "2"
215
+ #define SWIG_RUNTIME_VERSION "3"
191
216
 
192
217
  /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
193
218
  #ifdef SWIG_TYPE_TABLE
@@ -408,7 +433,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1,
408
433
  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
409
434
  while ((*f1 == ' ') && (f1 != l1)) ++f1;
410
435
  while ((*f2 == ' ') && (f2 != l2)) ++f2;
411
- if (*f1 != *f2) return (int)(*f1 - *f2);
436
+ if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
412
437
  }
413
438
  return (l1 - f1) - (l2 - f2);
414
439
  }
@@ -786,6 +811,21 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
786
811
  #endif
787
812
  #endif
788
813
 
814
+ /* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
815
+ /* Define these for older versions so we can just write code the new way */
816
+ #ifndef RSTRING_LEN
817
+ # define RSTRING_LEN(x) RSTRING(x)->len
818
+ #endif
819
+ #ifndef RSTRING_PTR
820
+ # define RSTRING_PTR(x) RSTRING(x)->ptr
821
+ #endif
822
+ #ifndef RARRAY_LEN
823
+ # define RARRAY_LEN(x) RARRAY(x)->len
824
+ #endif
825
+ #ifndef RARRAY_PTR
826
+ # define RARRAY_PTR(x) RARRAY(x)->ptr
827
+ #endif
828
+
789
829
  /*
790
830
  * Need to be very careful about how these macros are defined, especially
791
831
  * when compiling C++ code or C code with an ANSI C compiler.
@@ -829,10 +869,10 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
829
869
  #define StringValue(s) RB_STRING_VALUE(s)
830
870
  #endif
831
871
  #ifndef StringValuePtr
832
- #define StringValuePtr(s) RSTRING(RB_STRING_VALUE(s))->ptr
872
+ #define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
833
873
  #endif
834
874
  #ifndef StringValueLen
835
- #define StringValueLen(s) RSTRING(RB_STRING_VALUE(s))->len
875
+ #define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
836
876
  #endif
837
877
  #ifndef SafeStringValue
838
878
  #define SafeStringValue(v) do {\
@@ -938,15 +978,17 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
938
978
 
939
979
 
940
980
 
941
- /***********************************************************************
981
+ /* -----------------------------------------------------------------------------
982
+ * See the LICENSE file for information on copyright, usage and redistribution
983
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
984
+ *
942
985
  * rubytracking.swg
943
986
  *
944
987
  * This file contains support for tracking mappings from
945
988
  * Ruby objects to C++ objects. This functionality is needed
946
989
  * to implement mark functions for Ruby's mark and sweep
947
990
  * garbage collector.
948
- ************************************************************************/
949
-
991
+ * ----------------------------------------------------------------------------- */
950
992
 
951
993
  #ifdef __cplusplus
952
994
  extern "C" {
@@ -1100,14 +1142,16 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1100
1142
  #endif
1101
1143
 
1102
1144
 
1103
- /***********************************************************************
1104
- * rubyrun.swg
1145
+ /* -----------------------------------------------------------------------------
1146
+ * See the LICENSE file for information on copyright, usage and redistribution
1147
+ * of SWIG, and the README file for authors - http://www.swig.org/release.html.
1105
1148
  *
1106
- * This file contains the runtime support for Ruby modules
1107
- * and includes code for managing global variables and pointer
1108
- * type checking.
1149
+ * rubyrun.swg
1109
1150
  *
1110
- ************************************************************************/
1151
+ * This file contains the runtime support for Ruby modules
1152
+ * and includes code for managing global variables and pointer
1153
+ * type checking.
1154
+ * ----------------------------------------------------------------------------- */
1111
1155
 
1112
1156
  /* For backward compatibility only */
1113
1157
  #define SWIG_POINTER_EXCEPTION 0
@@ -1251,8 +1295,17 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1251
1295
  /* Are we tracking this class and have we already returned this Ruby object? */
1252
1296
  if (sklass->trackObjects) {
1253
1297
  obj = SWIG_RubyInstanceFor(ptr);
1298
+
1299
+ /* Check the object's type and make sure it has the correct type.
1300
+ It might not in cases where methods do things like
1301
+ downcast methods. */
1254
1302
  if (obj != Qnil) {
1255
- return obj;
1303
+ VALUE value = rb_iv_get(obj, "__swigtype__");
1304
+ char* type_name = RSTRING_PTR(value);
1305
+
1306
+ if (strcmp(type->name, type_name) == 0) {
1307
+ return obj;
1308
+ }
1256
1309
  }
1257
1310
  }
1258
1311
 
@@ -1504,7 +1557,8 @@ static swig_module_info swig_module = {swig_types, 21, 0, 0, 0, 0};
1504
1557
 
1505
1558
  static VALUE mVpi;
1506
1559
 
1507
- #define SWIGVERSION 0x010328
1560
+ #define SWIGVERSION 0x010331
1561
+ #define SWIG_VERSION SWIGVERSION
1508
1562
 
1509
1563
 
1510
1564
  #define SWIG_as_voidptr(a) (void *)((const void *)(a))
@@ -1693,7 +1747,7 @@ typedef union {
1693
1747
 
1694
1748
 
1695
1749
  SWIGINTERN swig_type_info*
1696
- SWIG_pchar_descriptor()
1750
+ SWIG_pchar_descriptor(void)
1697
1751
  {
1698
1752
  static int init = 0;
1699
1753
  static swig_type_info* info = 0;
@@ -1709,8 +1763,12 @@ SWIGINTERN int
1709
1763
  SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
1710
1764
  {
1711
1765
  if (TYPE(obj) == T_STRING) {
1712
- char *cstr = rb_string_value_ptr(&(obj));
1713
- size_t size = RSTRING(obj)->len + 1;
1766
+
1767
+
1768
+
1769
+ char *cstr = STR2CSTR(obj);
1770
+
1771
+ size_t size = RSTRING_LEN(obj) + 1;
1714
1772
  if (cptr) {
1715
1773
  if (alloc) {
1716
1774
  if (*alloc == SWIG_NEWOBJ) {
@@ -1726,10 +1784,10 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
1726
1784
  } else {
1727
1785
  swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
1728
1786
  if (pchar_descriptor) {
1729
- char* vptr = 0;
1730
- if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) {
1731
- if (cptr) *cptr = vptr;
1732
- if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
1787
+ void* vptr = 0;
1788
+ if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
1789
+ if (cptr) *cptr = (char *)vptr;
1790
+ if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
1733
1791
  if (alloc) *alloc = SWIG_OLDOBJ;
1734
1792
  return SWIG_OK;
1735
1793
  }
@@ -1817,7 +1875,6 @@ _wrap_s_vpi_time_type_get(int argc, VALUE *argv, VALUE self) {
1817
1875
  }
1818
1876
  arg1 = (s_vpi_time *)(argp1);
1819
1877
  result = (PLI_INT32) ((arg1)->type);
1820
-
1821
1878
  vresult = SWIG_From_int((int)(result));
1822
1879
  return vresult;
1823
1880
  fail:
@@ -1872,7 +1929,6 @@ _wrap_s_vpi_time_high_get(int argc, VALUE *argv, VALUE self) {
1872
1929
  }
1873
1930
  arg1 = (s_vpi_time *)(argp1);
1874
1931
  result = (PLI_UINT32) ((arg1)->high);
1875
-
1876
1932
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
1877
1933
  return vresult;
1878
1934
  fail:
@@ -1927,7 +1983,6 @@ _wrap_s_vpi_time_low_get(int argc, VALUE *argv, VALUE self) {
1927
1983
  }
1928
1984
  arg1 = (s_vpi_time *)(argp1);
1929
1985
  result = (PLI_UINT32) ((arg1)->low);
1930
-
1931
1986
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
1932
1987
  return vresult;
1933
1988
  fail:
@@ -1982,7 +2037,6 @@ _wrap_s_vpi_time_real_get(int argc, VALUE *argv, VALUE self) {
1982
2037
  }
1983
2038
  arg1 = (s_vpi_time *)(argp1);
1984
2039
  result = (double) ((arg1)->real);
1985
-
1986
2040
  vresult = SWIG_From_double((double)(result));
1987
2041
  return vresult;
1988
2042
  fail:
@@ -2014,8 +2068,7 @@ _wrap_new_s_vpi_time(int argc, VALUE *argv, VALUE self) {
2014
2068
  if ((argc < 0) || (argc > 0)) {
2015
2069
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2016
2070
  }
2017
- result = (s_vpi_time *)(s_vpi_time *) calloc(1, sizeof(s_vpi_time));
2018
- DATA_PTR(self) = result;
2071
+ result = (s_vpi_time *)(s_vpi_time *) calloc(1, sizeof(s_vpi_time));DATA_PTR(self) = result;
2019
2072
 
2020
2073
  return self;
2021
2074
  fail:
@@ -2077,7 +2130,6 @@ _wrap_s_vpi_delay_da_get(int argc, VALUE *argv, VALUE self) {
2077
2130
  }
2078
2131
  arg1 = (s_vpi_delay *)(argp1);
2079
2132
  result = (struct t_vpi_time *) ((arg1)->da);
2080
-
2081
2133
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_t_vpi_time, 0 | 0 );
2082
2134
  return vresult;
2083
2135
  fail:
@@ -2132,7 +2184,6 @@ _wrap_s_vpi_delay_no_of_delays_get(int argc, VALUE *argv, VALUE self) {
2132
2184
  }
2133
2185
  arg1 = (s_vpi_delay *)(argp1);
2134
2186
  result = (PLI_INT32) ((arg1)->no_of_delays);
2135
-
2136
2187
  vresult = SWIG_From_int((int)(result));
2137
2188
  return vresult;
2138
2189
  fail:
@@ -2187,7 +2238,6 @@ _wrap_s_vpi_delay_time_type_get(int argc, VALUE *argv, VALUE self) {
2187
2238
  }
2188
2239
  arg1 = (s_vpi_delay *)(argp1);
2189
2240
  result = (PLI_INT32) ((arg1)->time_type);
2190
-
2191
2241
  vresult = SWIG_From_int((int)(result));
2192
2242
  return vresult;
2193
2243
  fail:
@@ -2242,7 +2292,6 @@ _wrap_s_vpi_delay_mtm_flag_get(int argc, VALUE *argv, VALUE self) {
2242
2292
  }
2243
2293
  arg1 = (s_vpi_delay *)(argp1);
2244
2294
  result = (PLI_INT32) ((arg1)->mtm_flag);
2245
-
2246
2295
  vresult = SWIG_From_int((int)(result));
2247
2296
  return vresult;
2248
2297
  fail:
@@ -2297,7 +2346,6 @@ _wrap_s_vpi_delay_append_flag_get(int argc, VALUE *argv, VALUE self) {
2297
2346
  }
2298
2347
  arg1 = (s_vpi_delay *)(argp1);
2299
2348
  result = (PLI_INT32) ((arg1)->append_flag);
2300
-
2301
2349
  vresult = SWIG_From_int((int)(result));
2302
2350
  return vresult;
2303
2351
  fail:
@@ -2352,7 +2400,6 @@ _wrap_s_vpi_delay_pulsere_flag_get(int argc, VALUE *argv, VALUE self) {
2352
2400
  }
2353
2401
  arg1 = (s_vpi_delay *)(argp1);
2354
2402
  result = (PLI_INT32) ((arg1)->pulsere_flag);
2355
-
2356
2403
  vresult = SWIG_From_int((int)(result));
2357
2404
  return vresult;
2358
2405
  fail:
@@ -2384,8 +2431,7 @@ _wrap_new_s_vpi_delay(int argc, VALUE *argv, VALUE self) {
2384
2431
  if ((argc < 0) || (argc > 0)) {
2385
2432
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2386
2433
  }
2387
- result = (s_vpi_delay *)(s_vpi_delay *) calloc(1, sizeof(s_vpi_delay));
2388
- DATA_PTR(self) = result;
2434
+ result = (s_vpi_delay *)(s_vpi_delay *) calloc(1, sizeof(s_vpi_delay));DATA_PTR(self) = result;
2389
2435
 
2390
2436
  return self;
2391
2437
  fail:
@@ -2447,7 +2493,6 @@ _wrap_s_vpi_vecval_aval_get(int argc, VALUE *argv, VALUE self) {
2447
2493
  }
2448
2494
  arg1 = (s_vpi_vecval *)(argp1);
2449
2495
  result = (PLI_INT32) ((arg1)->aval);
2450
-
2451
2496
  vresult = SWIG_From_int((int)(result));
2452
2497
  return vresult;
2453
2498
  fail:
@@ -2502,7 +2547,6 @@ _wrap_s_vpi_vecval_bval_get(int argc, VALUE *argv, VALUE self) {
2502
2547
  }
2503
2548
  arg1 = (s_vpi_vecval *)(argp1);
2504
2549
  result = (PLI_INT32) ((arg1)->bval);
2505
-
2506
2550
  vresult = SWIG_From_int((int)(result));
2507
2551
  return vresult;
2508
2552
  fail:
@@ -2534,8 +2578,7 @@ _wrap_new_s_vpi_vecval(int argc, VALUE *argv, VALUE self) {
2534
2578
  if ((argc < 0) || (argc > 0)) {
2535
2579
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2536
2580
  }
2537
- result = (s_vpi_vecval *)(s_vpi_vecval *) calloc(1, sizeof(s_vpi_vecval));
2538
- DATA_PTR(self) = result;
2581
+ result = (s_vpi_vecval *)(s_vpi_vecval *) calloc(1, sizeof(s_vpi_vecval));DATA_PTR(self) = result;
2539
2582
 
2540
2583
  return self;
2541
2584
  fail:
@@ -2597,7 +2640,6 @@ _wrap_s_vpi_strengthval_logic_get(int argc, VALUE *argv, VALUE self) {
2597
2640
  }
2598
2641
  arg1 = (s_vpi_strengthval *)(argp1);
2599
2642
  result = (PLI_INT32) ((arg1)->logic);
2600
-
2601
2643
  vresult = SWIG_From_int((int)(result));
2602
2644
  return vresult;
2603
2645
  fail:
@@ -2652,7 +2694,6 @@ _wrap_s_vpi_strengthval_s0_get(int argc, VALUE *argv, VALUE self) {
2652
2694
  }
2653
2695
  arg1 = (s_vpi_strengthval *)(argp1);
2654
2696
  result = (PLI_INT32) ((arg1)->s0);
2655
-
2656
2697
  vresult = SWIG_From_int((int)(result));
2657
2698
  return vresult;
2658
2699
  fail:
@@ -2707,7 +2748,6 @@ _wrap_s_vpi_strengthval_s1_get(int argc, VALUE *argv, VALUE self) {
2707
2748
  }
2708
2749
  arg1 = (s_vpi_strengthval *)(argp1);
2709
2750
  result = (PLI_INT32) ((arg1)->s1);
2710
-
2711
2751
  vresult = SWIG_From_int((int)(result));
2712
2752
  return vresult;
2713
2753
  fail:
@@ -2739,8 +2779,7 @@ _wrap_new_s_vpi_strengthval(int argc, VALUE *argv, VALUE self) {
2739
2779
  if ((argc < 0) || (argc > 0)) {
2740
2780
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2741
2781
  }
2742
- result = (s_vpi_strengthval *)(s_vpi_strengthval *) calloc(1, sizeof(s_vpi_strengthval));
2743
- DATA_PTR(self) = result;
2782
+ result = (s_vpi_strengthval *)(s_vpi_strengthval *) calloc(1, sizeof(s_vpi_strengthval));DATA_PTR(self) = result;
2744
2783
 
2745
2784
  return self;
2746
2785
  fail:
@@ -2802,7 +2841,6 @@ _wrap_s_vpi_value_format_get(int argc, VALUE *argv, VALUE self) {
2802
2841
  }
2803
2842
  arg1 = (s_vpi_value *)(argp1);
2804
2843
  result = (PLI_INT32) ((arg1)->format);
2805
-
2806
2844
  vresult = SWIG_From_int((int)(result));
2807
2845
  return vresult;
2808
2846
  fail:
@@ -2827,7 +2865,6 @@ _wrap_s_vpi_value_value_get(int argc, VALUE *argv, VALUE self) {
2827
2865
  }
2828
2866
  arg1 = (s_vpi_value *)(argp1);
2829
2867
  result = (s_vpi_value_value *)& ((arg1)->value);
2830
-
2831
2868
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_s_vpi_value_value, 0 | 0 );
2832
2869
  return vresult;
2833
2870
  fail:
@@ -2859,8 +2896,7 @@ _wrap_new_s_vpi_value(int argc, VALUE *argv, VALUE self) {
2859
2896
  if ((argc < 0) || (argc > 0)) {
2860
2897
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2861
2898
  }
2862
- result = (s_vpi_value *)(s_vpi_value *) calloc(1, sizeof(s_vpi_value));
2863
- DATA_PTR(self) = result;
2899
+ result = (s_vpi_value *)(s_vpi_value *) calloc(1, sizeof(s_vpi_value));DATA_PTR(self) = result;
2864
2900
 
2865
2901
  return self;
2866
2902
  fail:
@@ -2897,11 +2933,11 @@ _wrap_s_vpi_value_value_str_set(int argc, VALUE *argv, VALUE self) {
2897
2933
  if (!SWIG_IsOK(res2)) {
2898
2934
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "str" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
2899
2935
  }
2900
- arg2 = buf2;
2936
+ arg2 = (PLI_BYTE8 *)(buf2);
2901
2937
  if (arg1->str) free((char*)arg1->str);
2902
2938
  if (arg2) {
2903
- size_t size = strlen(arg2) + 1;
2904
- arg1->str = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
2939
+ size_t size = strlen((const char *)(arg2)) + 1;
2940
+ arg1->str = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
2905
2941
  } else {
2906
2942
  arg1->str = 0;
2907
2943
  }
@@ -2930,8 +2966,7 @@ _wrap_s_vpi_value_value_str_get(int argc, VALUE *argv, VALUE self) {
2930
2966
  }
2931
2967
  arg1 = (s_vpi_value_value *)(argp1);
2932
2968
  result = (PLI_BYTE8 *) ((arg1)->str);
2933
-
2934
- vresult = SWIG_FromCharPtr(result);
2969
+ vresult = SWIG_FromCharPtr((const char *)result);
2935
2970
  return vresult;
2936
2971
  fail:
2937
2972
  return Qnil;
@@ -2985,7 +3020,6 @@ _wrap_s_vpi_value_value_scalar_get(int argc, VALUE *argv, VALUE self) {
2985
3020
  }
2986
3021
  arg1 = (s_vpi_value_value *)(argp1);
2987
3022
  result = (PLI_INT32) ((arg1)->scalar);
2988
-
2989
3023
  vresult = SWIG_From_int((int)(result));
2990
3024
  return vresult;
2991
3025
  fail:
@@ -3040,7 +3074,6 @@ _wrap_s_vpi_value_value_integer_get(int argc, VALUE *argv, VALUE self) {
3040
3074
  }
3041
3075
  arg1 = (s_vpi_value_value *)(argp1);
3042
3076
  result = (PLI_INT32) ((arg1)->integer);
3043
-
3044
3077
  vresult = SWIG_From_int((int)(result));
3045
3078
  return vresult;
3046
3079
  fail:
@@ -3095,7 +3128,6 @@ _wrap_s_vpi_value_value_real_get(int argc, VALUE *argv, VALUE self) {
3095
3128
  }
3096
3129
  arg1 = (s_vpi_value_value *)(argp1);
3097
3130
  result = (double) ((arg1)->real);
3098
-
3099
3131
  vresult = SWIG_From_double((double)(result));
3100
3132
  return vresult;
3101
3133
  fail:
@@ -3150,7 +3182,6 @@ _wrap_s_vpi_value_value_time_get(int argc, VALUE *argv, VALUE self) {
3150
3182
  }
3151
3183
  arg1 = (s_vpi_value_value *)(argp1);
3152
3184
  result = (struct t_vpi_time *) ((arg1)->time);
3153
-
3154
3185
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_t_vpi_time, 0 | 0 );
3155
3186
  return vresult;
3156
3187
  fail:
@@ -3205,7 +3236,6 @@ _wrap_s_vpi_value_value_vector_get(int argc, VALUE *argv, VALUE self) {
3205
3236
  }
3206
3237
  arg1 = (s_vpi_value_value *)(argp1);
3207
3238
  result = (struct t_vpi_vecval *) ((arg1)->vector);
3208
-
3209
3239
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_t_vpi_vecval, 0 | 0 );
3210
3240
  return vresult;
3211
3241
  fail:
@@ -3260,7 +3290,6 @@ _wrap_s_vpi_value_value_strength_get(int argc, VALUE *argv, VALUE self) {
3260
3290
  }
3261
3291
  arg1 = (s_vpi_value_value *)(argp1);
3262
3292
  result = (struct t_vpi_strengthval *) ((arg1)->strength);
3263
-
3264
3293
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_t_vpi_strengthval, 0 | 0 );
3265
3294
  return vresult;
3266
3295
  fail:
@@ -3290,11 +3319,11 @@ _wrap_s_vpi_value_value_misc_set(int argc, VALUE *argv, VALUE self) {
3290
3319
  if (!SWIG_IsOK(res2)) {
3291
3320
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "misc" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
3292
3321
  }
3293
- arg2 = buf2;
3322
+ arg2 = (PLI_BYTE8 *)(buf2);
3294
3323
  if (arg1->misc) free((char*)arg1->misc);
3295
3324
  if (arg2) {
3296
- size_t size = strlen(arg2) + 1;
3297
- arg1->misc = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
3325
+ size_t size = strlen((const char *)(arg2)) + 1;
3326
+ arg1->misc = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
3298
3327
  } else {
3299
3328
  arg1->misc = 0;
3300
3329
  }
@@ -3323,8 +3352,7 @@ _wrap_s_vpi_value_value_misc_get(int argc, VALUE *argv, VALUE self) {
3323
3352
  }
3324
3353
  arg1 = (s_vpi_value_value *)(argp1);
3325
3354
  result = (PLI_BYTE8 *) ((arg1)->misc);
3326
-
3327
- vresult = SWIG_FromCharPtr(result);
3355
+ vresult = SWIG_FromCharPtr((const char *)result);
3328
3356
  return vresult;
3329
3357
  fail:
3330
3358
  return Qnil;
@@ -3355,8 +3383,7 @@ _wrap_new_s_vpi_value_value(int argc, VALUE *argv, VALUE self) {
3355
3383
  if ((argc < 0) || (argc > 0)) {
3356
3384
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3357
3385
  }
3358
- result = (s_vpi_value_value *)(s_vpi_value_value *) calloc(1, sizeof(s_vpi_value_value));
3359
- DATA_PTR(self) = result;
3386
+ result = (s_vpi_value_value *)(s_vpi_value_value *) calloc(1, sizeof(s_vpi_value_value));DATA_PTR(self) = result;
3360
3387
 
3361
3388
  return self;
3362
3389
  fail:
@@ -3418,7 +3445,6 @@ _wrap_s_vpi_systf_data_type_get(int argc, VALUE *argv, VALUE self) {
3418
3445
  }
3419
3446
  arg1 = (s_vpi_systf_data *)(argp1);
3420
3447
  result = (PLI_INT32) ((arg1)->type);
3421
-
3422
3448
  vresult = SWIG_From_int((int)(result));
3423
3449
  return vresult;
3424
3450
  fail:
@@ -3473,7 +3499,6 @@ _wrap_s_vpi_systf_data_sysfunctype_get(int argc, VALUE *argv, VALUE self) {
3473
3499
  }
3474
3500
  arg1 = (s_vpi_systf_data *)(argp1);
3475
3501
  result = (PLI_INT32) ((arg1)->sysfunctype);
3476
-
3477
3502
  vresult = SWIG_From_int((int)(result));
3478
3503
  return vresult;
3479
3504
  fail:
@@ -3503,11 +3528,11 @@ _wrap_s_vpi_systf_data_tfname_set(int argc, VALUE *argv, VALUE self) {
3503
3528
  if (!SWIG_IsOK(res2)) {
3504
3529
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "tfname" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
3505
3530
  }
3506
- arg2 = buf2;
3531
+ arg2 = (PLI_BYTE8 *)(buf2);
3507
3532
  if (arg1->tfname) free((char*)arg1->tfname);
3508
3533
  if (arg2) {
3509
- size_t size = strlen(arg2) + 1;
3510
- arg1->tfname = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
3534
+ size_t size = strlen((const char *)(arg2)) + 1;
3535
+ arg1->tfname = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
3511
3536
  } else {
3512
3537
  arg1->tfname = 0;
3513
3538
  }
@@ -3536,8 +3561,7 @@ _wrap_s_vpi_systf_data_tfname_get(int argc, VALUE *argv, VALUE self) {
3536
3561
  }
3537
3562
  arg1 = (s_vpi_systf_data *)(argp1);
3538
3563
  result = (PLI_BYTE8 *) ((arg1)->tfname);
3539
-
3540
- vresult = SWIG_FromCharPtr(result);
3564
+ vresult = SWIG_FromCharPtr((const char *)result);
3541
3565
  return vresult;
3542
3566
  fail:
3543
3567
  return Qnil;
@@ -3590,7 +3614,6 @@ _wrap_s_vpi_systf_data_calltf_get(int argc, VALUE *argv, VALUE self) {
3590
3614
  }
3591
3615
  arg1 = (s_vpi_systf_data *)(argp1);
3592
3616
  result = (PLI_INT32 (*)(PLI_BYTE8 *)) ((arg1)->calltf);
3593
-
3594
3617
  vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_char__int);
3595
3618
  return vresult;
3596
3619
  fail:
@@ -3644,7 +3667,6 @@ _wrap_s_vpi_systf_data_compiletf_get(int argc, VALUE *argv, VALUE self) {
3644
3667
  }
3645
3668
  arg1 = (s_vpi_systf_data *)(argp1);
3646
3669
  result = (PLI_INT32 (*)(PLI_BYTE8 *)) ((arg1)->compiletf);
3647
-
3648
3670
  vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_char__int);
3649
3671
  return vresult;
3650
3672
  fail:
@@ -3698,7 +3720,6 @@ _wrap_s_vpi_systf_data_sizetf_get(int argc, VALUE *argv, VALUE self) {
3698
3720
  }
3699
3721
  arg1 = (s_vpi_systf_data *)(argp1);
3700
3722
  result = (PLI_INT32 (*)(PLI_BYTE8 *)) ((arg1)->sizetf);
3701
-
3702
3723
  vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_char__int);
3703
3724
  return vresult;
3704
3725
  fail:
@@ -3728,11 +3749,11 @@ _wrap_s_vpi_systf_data_user_data_set(int argc, VALUE *argv, VALUE self) {
3728
3749
  if (!SWIG_IsOK(res2)) {
3729
3750
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "user_data" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
3730
3751
  }
3731
- arg2 = buf2;
3752
+ arg2 = (PLI_BYTE8 *)(buf2);
3732
3753
  if (arg1->user_data) free((char*)arg1->user_data);
3733
3754
  if (arg2) {
3734
- size_t size = strlen(arg2) + 1;
3735
- arg1->user_data = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
3755
+ size_t size = strlen((const char *)(arg2)) + 1;
3756
+ arg1->user_data = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
3736
3757
  } else {
3737
3758
  arg1->user_data = 0;
3738
3759
  }
@@ -3761,8 +3782,7 @@ _wrap_s_vpi_systf_data_user_data_get(int argc, VALUE *argv, VALUE self) {
3761
3782
  }
3762
3783
  arg1 = (s_vpi_systf_data *)(argp1);
3763
3784
  result = (PLI_BYTE8 *) ((arg1)->user_data);
3764
-
3765
- vresult = SWIG_FromCharPtr(result);
3785
+ vresult = SWIG_FromCharPtr((const char *)result);
3766
3786
  return vresult;
3767
3787
  fail:
3768
3788
  return Qnil;
@@ -3793,8 +3813,7 @@ _wrap_new_s_vpi_systf_data(int argc, VALUE *argv, VALUE self) {
3793
3813
  if ((argc < 0) || (argc > 0)) {
3794
3814
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3795
3815
  }
3796
- result = (s_vpi_systf_data *)(s_vpi_systf_data *) calloc(1, sizeof(s_vpi_systf_data));
3797
- DATA_PTR(self) = result;
3816
+ result = (s_vpi_systf_data *)(s_vpi_systf_data *) calloc(1, sizeof(s_vpi_systf_data));DATA_PTR(self) = result;
3798
3817
 
3799
3818
  return self;
3800
3819
  fail:
@@ -3856,7 +3875,6 @@ _wrap_s_vpi_vlog_info_argc_get(int argc, VALUE *argv, VALUE self) {
3856
3875
  }
3857
3876
  arg1 = (s_vpi_vlog_info *)(argp1);
3858
3877
  result = (PLI_INT32) ((arg1)->argc);
3859
-
3860
3878
  vresult = SWIG_From_int((int)(result));
3861
3879
  return vresult;
3862
3880
  fail:
@@ -3911,7 +3929,6 @@ _wrap_s_vpi_vlog_info_argv_get(int argc, VALUE *argv, VALUE self) {
3911
3929
  }
3912
3930
  arg1 = (s_vpi_vlog_info *)(argp1);
3913
3931
  result = (PLI_BYTE8 **) ((arg1)->argv);
3914
-
3915
3932
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 );
3916
3933
  return vresult;
3917
3934
  fail:
@@ -3941,11 +3958,11 @@ _wrap_s_vpi_vlog_info_product_set(int argc, VALUE *argv, VALUE self) {
3941
3958
  if (!SWIG_IsOK(res2)) {
3942
3959
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "product" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
3943
3960
  }
3944
- arg2 = buf2;
3961
+ arg2 = (PLI_BYTE8 *)(buf2);
3945
3962
  if (arg1->product) free((char*)arg1->product);
3946
3963
  if (arg2) {
3947
- size_t size = strlen(arg2) + 1;
3948
- arg1->product = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
3964
+ size_t size = strlen((const char *)(arg2)) + 1;
3965
+ arg1->product = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
3949
3966
  } else {
3950
3967
  arg1->product = 0;
3951
3968
  }
@@ -3974,8 +3991,7 @@ _wrap_s_vpi_vlog_info_product_get(int argc, VALUE *argv, VALUE self) {
3974
3991
  }
3975
3992
  arg1 = (s_vpi_vlog_info *)(argp1);
3976
3993
  result = (PLI_BYTE8 *) ((arg1)->product);
3977
-
3978
- vresult = SWIG_FromCharPtr(result);
3994
+ vresult = SWIG_FromCharPtr((const char *)result);
3979
3995
  return vresult;
3980
3996
  fail:
3981
3997
  return Qnil;
@@ -4004,11 +4020,11 @@ _wrap_s_vpi_vlog_info_version_set(int argc, VALUE *argv, VALUE self) {
4004
4020
  if (!SWIG_IsOK(res2)) {
4005
4021
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "version" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
4006
4022
  }
4007
- arg2 = buf2;
4023
+ arg2 = (PLI_BYTE8 *)(buf2);
4008
4024
  if (arg1->version) free((char*)arg1->version);
4009
4025
  if (arg2) {
4010
- size_t size = strlen(arg2) + 1;
4011
- arg1->version = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4026
+ size_t size = strlen((const char *)(arg2)) + 1;
4027
+ arg1->version = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
4012
4028
  } else {
4013
4029
  arg1->version = 0;
4014
4030
  }
@@ -4037,8 +4053,7 @@ _wrap_s_vpi_vlog_info_version_get(int argc, VALUE *argv, VALUE self) {
4037
4053
  }
4038
4054
  arg1 = (s_vpi_vlog_info *)(argp1);
4039
4055
  result = (PLI_BYTE8 *) ((arg1)->version);
4040
-
4041
- vresult = SWIG_FromCharPtr(result);
4056
+ vresult = SWIG_FromCharPtr((const char *)result);
4042
4057
  return vresult;
4043
4058
  fail:
4044
4059
  return Qnil;
@@ -4069,8 +4084,7 @@ _wrap_new_s_vpi_vlog_info(int argc, VALUE *argv, VALUE self) {
4069
4084
  if ((argc < 0) || (argc > 0)) {
4070
4085
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4071
4086
  }
4072
- result = (s_vpi_vlog_info *)(s_vpi_vlog_info *) calloc(1, sizeof(s_vpi_vlog_info));
4073
- DATA_PTR(self) = result;
4087
+ result = (s_vpi_vlog_info *)(s_vpi_vlog_info *) calloc(1, sizeof(s_vpi_vlog_info));DATA_PTR(self) = result;
4074
4088
 
4075
4089
  return self;
4076
4090
  fail:
@@ -4132,7 +4146,6 @@ _wrap_s_vpi_error_info_state_get(int argc, VALUE *argv, VALUE self) {
4132
4146
  }
4133
4147
  arg1 = (s_vpi_error_info *)(argp1);
4134
4148
  result = (PLI_INT32) ((arg1)->state);
4135
-
4136
4149
  vresult = SWIG_From_int((int)(result));
4137
4150
  return vresult;
4138
4151
  fail:
@@ -4187,7 +4200,6 @@ _wrap_s_vpi_error_info_level_get(int argc, VALUE *argv, VALUE self) {
4187
4200
  }
4188
4201
  arg1 = (s_vpi_error_info *)(argp1);
4189
4202
  result = (PLI_INT32) ((arg1)->level);
4190
-
4191
4203
  vresult = SWIG_From_int((int)(result));
4192
4204
  return vresult;
4193
4205
  fail:
@@ -4217,11 +4229,11 @@ _wrap_s_vpi_error_info_message_set(int argc, VALUE *argv, VALUE self) {
4217
4229
  if (!SWIG_IsOK(res2)) {
4218
4230
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "message" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
4219
4231
  }
4220
- arg2 = buf2;
4232
+ arg2 = (PLI_BYTE8 *)(buf2);
4221
4233
  if (arg1->message) free((char*)arg1->message);
4222
4234
  if (arg2) {
4223
- size_t size = strlen(arg2) + 1;
4224
- arg1->message = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4235
+ size_t size = strlen((const char *)(arg2)) + 1;
4236
+ arg1->message = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
4225
4237
  } else {
4226
4238
  arg1->message = 0;
4227
4239
  }
@@ -4250,8 +4262,7 @@ _wrap_s_vpi_error_info_message_get(int argc, VALUE *argv, VALUE self) {
4250
4262
  }
4251
4263
  arg1 = (s_vpi_error_info *)(argp1);
4252
4264
  result = (PLI_BYTE8 *) ((arg1)->message);
4253
-
4254
- vresult = SWIG_FromCharPtr(result);
4265
+ vresult = SWIG_FromCharPtr((const char *)result);
4255
4266
  return vresult;
4256
4267
  fail:
4257
4268
  return Qnil;
@@ -4280,11 +4291,11 @@ _wrap_s_vpi_error_info_product_set(int argc, VALUE *argv, VALUE self) {
4280
4291
  if (!SWIG_IsOK(res2)) {
4281
4292
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "product" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
4282
4293
  }
4283
- arg2 = buf2;
4294
+ arg2 = (PLI_BYTE8 *)(buf2);
4284
4295
  if (arg1->product) free((char*)arg1->product);
4285
4296
  if (arg2) {
4286
- size_t size = strlen(arg2) + 1;
4287
- arg1->product = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4297
+ size_t size = strlen((const char *)(arg2)) + 1;
4298
+ arg1->product = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
4288
4299
  } else {
4289
4300
  arg1->product = 0;
4290
4301
  }
@@ -4313,8 +4324,7 @@ _wrap_s_vpi_error_info_product_get(int argc, VALUE *argv, VALUE self) {
4313
4324
  }
4314
4325
  arg1 = (s_vpi_error_info *)(argp1);
4315
4326
  result = (PLI_BYTE8 *) ((arg1)->product);
4316
-
4317
- vresult = SWIG_FromCharPtr(result);
4327
+ vresult = SWIG_FromCharPtr((const char *)result);
4318
4328
  return vresult;
4319
4329
  fail:
4320
4330
  return Qnil;
@@ -4343,11 +4353,11 @@ _wrap_s_vpi_error_info_code_set(int argc, VALUE *argv, VALUE self) {
4343
4353
  if (!SWIG_IsOK(res2)) {
4344
4354
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "code" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
4345
4355
  }
4346
- arg2 = buf2;
4356
+ arg2 = (PLI_BYTE8 *)(buf2);
4347
4357
  if (arg1->code) free((char*)arg1->code);
4348
4358
  if (arg2) {
4349
- size_t size = strlen(arg2) + 1;
4350
- arg1->code = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4359
+ size_t size = strlen((const char *)(arg2)) + 1;
4360
+ arg1->code = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
4351
4361
  } else {
4352
4362
  arg1->code = 0;
4353
4363
  }
@@ -4376,8 +4386,7 @@ _wrap_s_vpi_error_info_code_get(int argc, VALUE *argv, VALUE self) {
4376
4386
  }
4377
4387
  arg1 = (s_vpi_error_info *)(argp1);
4378
4388
  result = (PLI_BYTE8 *) ((arg1)->code);
4379
-
4380
- vresult = SWIG_FromCharPtr(result);
4389
+ vresult = SWIG_FromCharPtr((const char *)result);
4381
4390
  return vresult;
4382
4391
  fail:
4383
4392
  return Qnil;
@@ -4406,11 +4415,11 @@ _wrap_s_vpi_error_info_file_set(int argc, VALUE *argv, VALUE self) {
4406
4415
  if (!SWIG_IsOK(res2)) {
4407
4416
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "file" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
4408
4417
  }
4409
- arg2 = buf2;
4418
+ arg2 = (PLI_BYTE8 *)(buf2);
4410
4419
  if (arg1->file) free((char*)arg1->file);
4411
4420
  if (arg2) {
4412
- size_t size = strlen(arg2) + 1;
4413
- arg1->file = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4421
+ size_t size = strlen((const char *)(arg2)) + 1;
4422
+ arg1->file = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
4414
4423
  } else {
4415
4424
  arg1->file = 0;
4416
4425
  }
@@ -4439,8 +4448,7 @@ _wrap_s_vpi_error_info_file_get(int argc, VALUE *argv, VALUE self) {
4439
4448
  }
4440
4449
  arg1 = (s_vpi_error_info *)(argp1);
4441
4450
  result = (PLI_BYTE8 *) ((arg1)->file);
4442
-
4443
- vresult = SWIG_FromCharPtr(result);
4451
+ vresult = SWIG_FromCharPtr((const char *)result);
4444
4452
  return vresult;
4445
4453
  fail:
4446
4454
  return Qnil;
@@ -4494,7 +4502,6 @@ _wrap_s_vpi_error_info_line_get(int argc, VALUE *argv, VALUE self) {
4494
4502
  }
4495
4503
  arg1 = (s_vpi_error_info *)(argp1);
4496
4504
  result = (PLI_INT32) ((arg1)->line);
4497
-
4498
4505
  vresult = SWIG_From_int((int)(result));
4499
4506
  return vresult;
4500
4507
  fail:
@@ -4526,8 +4533,7 @@ _wrap_new_s_vpi_error_info(int argc, VALUE *argv, VALUE self) {
4526
4533
  if ((argc < 0) || (argc > 0)) {
4527
4534
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4528
4535
  }
4529
- result = (s_vpi_error_info *)(s_vpi_error_info *) calloc(1, sizeof(s_vpi_error_info));
4530
- DATA_PTR(self) = result;
4536
+ result = (s_vpi_error_info *)(s_vpi_error_info *) calloc(1, sizeof(s_vpi_error_info));DATA_PTR(self) = result;
4531
4537
 
4532
4538
  return self;
4533
4539
  fail:
@@ -4589,7 +4595,6 @@ _wrap_s_cb_data_reason_get(int argc, VALUE *argv, VALUE self) {
4589
4595
  }
4590
4596
  arg1 = (s_cb_data *)(argp1);
4591
4597
  result = (PLI_INT32) ((arg1)->reason);
4592
-
4593
4598
  vresult = SWIG_From_int((int)(result));
4594
4599
  return vresult;
4595
4600
  fail:
@@ -4643,7 +4648,6 @@ _wrap_s_cb_data_cb_rtn_get(int argc, VALUE *argv, VALUE self) {
4643
4648
  }
4644
4649
  arg1 = (s_cb_data *)(argp1);
4645
4650
  result = (PLI_INT32 (*)(struct t_cb_data *)) ((arg1)->cb_rtn);
4646
-
4647
4651
  vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_t_cb_data__int);
4648
4652
  return vresult;
4649
4653
  fail:
@@ -4698,7 +4702,6 @@ _wrap_s_cb_data_obj_get(int argc, VALUE *argv, VALUE self) {
4698
4702
  }
4699
4703
  arg1 = (s_cb_data *)(argp1);
4700
4704
  result = (vpiHandle) ((arg1)->obj);
4701
-
4702
4705
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
4703
4706
  return vresult;
4704
4707
  fail:
@@ -4753,7 +4756,6 @@ _wrap_s_cb_data_time_get(int argc, VALUE *argv, VALUE self) {
4753
4756
  }
4754
4757
  arg1 = (s_cb_data *)(argp1);
4755
4758
  result = (p_vpi_time) ((arg1)->time);
4756
-
4757
4759
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_t_vpi_time, 0 | 0 );
4758
4760
  return vresult;
4759
4761
  fail:
@@ -4808,7 +4810,6 @@ _wrap_s_cb_data_value_get(int argc, VALUE *argv, VALUE self) {
4808
4810
  }
4809
4811
  arg1 = (s_cb_data *)(argp1);
4810
4812
  result = (p_vpi_value) ((arg1)->value);
4811
-
4812
4813
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_t_vpi_value, 0 | 0 );
4813
4814
  return vresult;
4814
4815
  fail:
@@ -4863,7 +4864,6 @@ _wrap_s_cb_data_index_get(int argc, VALUE *argv, VALUE self) {
4863
4864
  }
4864
4865
  arg1 = (s_cb_data *)(argp1);
4865
4866
  result = (PLI_INT32) ((arg1)->index);
4866
-
4867
4867
  vresult = SWIG_From_int((int)(result));
4868
4868
  return vresult;
4869
4869
  fail:
@@ -4893,11 +4893,11 @@ _wrap_s_cb_data_user_data_set(int argc, VALUE *argv, VALUE self) {
4893
4893
  if (!SWIG_IsOK(res2)) {
4894
4894
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "user_data" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
4895
4895
  }
4896
- arg2 = buf2;
4896
+ arg2 = (PLI_BYTE8 *)(buf2);
4897
4897
  if (arg1->user_data) free((char*)arg1->user_data);
4898
4898
  if (arg2) {
4899
- size_t size = strlen(arg2) + 1;
4900
- arg1->user_data = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
4899
+ size_t size = strlen((const char *)(arg2)) + 1;
4900
+ arg1->user_data = (PLI_BYTE8 *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
4901
4901
  } else {
4902
4902
  arg1->user_data = 0;
4903
4903
  }
@@ -4926,8 +4926,7 @@ _wrap_s_cb_data_user_data_get(int argc, VALUE *argv, VALUE self) {
4926
4926
  }
4927
4927
  arg1 = (s_cb_data *)(argp1);
4928
4928
  result = (PLI_BYTE8 *) ((arg1)->user_data);
4929
-
4930
- vresult = SWIG_FromCharPtr(result);
4929
+ vresult = SWIG_FromCharPtr((const char *)result);
4931
4930
  return vresult;
4932
4931
  fail:
4933
4932
  return Qnil;
@@ -4958,8 +4957,7 @@ _wrap_new_s_cb_data(int argc, VALUE *argv, VALUE self) {
4958
4957
  if ((argc < 0) || (argc > 0)) {
4959
4958
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4960
4959
  }
4961
- result = (s_cb_data *)(s_cb_data *) calloc(1, sizeof(s_cb_data));
4962
- DATA_PTR(self) = result;
4960
+ result = (s_cb_data *)(s_cb_data *) calloc(1, sizeof(s_cb_data));DATA_PTR(self) = result;
4963
4961
 
4964
4962
  return self;
4965
4963
  fail:
@@ -4989,7 +4987,6 @@ _wrap_vpi_register_cb(int argc, VALUE *argv, VALUE self) {
4989
4987
  }
4990
4988
  arg1 = (p_cb_data)(argp1);
4991
4989
  result = (vpiHandle)vpi_register_cb(arg1);
4992
-
4993
4990
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
4994
4991
  return vresult;
4995
4992
  fail:
@@ -5014,7 +5011,6 @@ _wrap_vpi_remove_cb(int argc, VALUE *argv, VALUE self) {
5014
5011
  }
5015
5012
  arg1 = (vpiHandle)(argp1);
5016
5013
  result = (PLI_INT32)vpi_remove_cb(arg1);
5017
-
5018
5014
  vresult = SWIG_From_int((int)(result));
5019
5015
  return vresult;
5020
5016
  fail:
@@ -5045,7 +5041,6 @@ _wrap_vpi_get_cb_info(int argc, VALUE *argv, VALUE self) {
5045
5041
  }
5046
5042
  arg2 = (p_cb_data)(argp2);
5047
5043
  vpi_get_cb_info(arg1,arg2);
5048
-
5049
5044
  return Qnil;
5050
5045
  fail:
5051
5046
  return Qnil;
@@ -5069,7 +5064,6 @@ _wrap_vpi_register_systf(int argc, VALUE *argv, VALUE self) {
5069
5064
  }
5070
5065
  arg1 = (p_vpi_systf_data)(argp1);
5071
5066
  result = (vpiHandle)vpi_register_systf(arg1);
5072
-
5073
5067
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
5074
5068
  return vresult;
5075
5069
  fail:
@@ -5100,7 +5094,6 @@ _wrap_vpi_get_systf_info(int argc, VALUE *argv, VALUE self) {
5100
5094
  }
5101
5095
  arg2 = (p_vpi_systf_data)(argp2);
5102
5096
  vpi_get_systf_info(arg1,arg2);
5103
-
5104
5097
  return Qnil;
5105
5098
  fail:
5106
5099
  return Qnil;
@@ -5126,14 +5119,13 @@ _wrap_vpi_handle_by_name(int argc, VALUE *argv, VALUE self) {
5126
5119
  if (!SWIG_IsOK(res1)) {
5127
5120
  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vpi_handle_by_name" "', argument " "1"" of type '" "PLI_BYTE8 *""'");
5128
5121
  }
5129
- arg1 = buf1;
5122
+ arg1 = (PLI_BYTE8 *)(buf1);
5130
5123
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 );
5131
5124
  if (!SWIG_IsOK(res2)) {
5132
5125
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vpi_handle_by_name" "', argument " "2"" of type '" "vpiHandle""'");
5133
5126
  }
5134
5127
  arg2 = (vpiHandle)(argp2);
5135
5128
  result = (vpiHandle)vpi_handle_by_name(arg1,arg2);
5136
-
5137
5129
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
5138
5130
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
5139
5131
  return vresult;
@@ -5168,7 +5160,6 @@ _wrap_vpi_handle_by_index(int argc, VALUE *argv, VALUE self) {
5168
5160
  }
5169
5161
  arg2 = (PLI_INT32)(val2);
5170
5162
  result = (vpiHandle)vpi_handle_by_index(arg1,arg2);
5171
-
5172
5163
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
5173
5164
  return vresult;
5174
5165
  fail:
@@ -5201,7 +5192,6 @@ _wrap_vpi_handle(int argc, VALUE *argv, VALUE self) {
5201
5192
  }
5202
5193
  arg2 = (vpiHandle)(argp2);
5203
5194
  result = (vpiHandle)vpi_handle(arg1,arg2);
5204
-
5205
5195
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
5206
5196
  return vresult;
5207
5197
  fail:
@@ -5243,7 +5233,6 @@ _wrap_vpi_handle_multi(int argc, VALUE *argv, VALUE self) {
5243
5233
  }
5244
5234
  arg3 = (vpiHandle)(argp3);
5245
5235
  result = (vpiHandle)vpi_handle_multi(arg1,arg2,arg3,arg4);
5246
-
5247
5236
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
5248
5237
  return vresult;
5249
5238
  fail:
@@ -5276,7 +5265,6 @@ _wrap_vpi_iterate(int argc, VALUE *argv, VALUE self) {
5276
5265
  }
5277
5266
  arg2 = (vpiHandle)(argp2);
5278
5267
  result = (vpiHandle)vpi_iterate(arg1,arg2);
5279
-
5280
5268
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
5281
5269
  return vresult;
5282
5270
  fail:
@@ -5301,7 +5289,6 @@ _wrap_vpi_scan(int argc, VALUE *argv, VALUE self) {
5301
5289
  }
5302
5290
  arg1 = (vpiHandle)(argp1);
5303
5291
  result = (vpiHandle)vpi_scan(arg1);
5304
-
5305
5292
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
5306
5293
  return vresult;
5307
5294
  fail:
@@ -5334,7 +5321,6 @@ _wrap_vpi_get(int argc, VALUE *argv, VALUE self) {
5334
5321
  }
5335
5322
  arg2 = (vpiHandle)(argp2);
5336
5323
  result = (PLI_INT32)vpi_get(arg1,arg2);
5337
-
5338
5324
  vresult = SWIG_From_int((int)(result));
5339
5325
  return vresult;
5340
5326
  fail:
@@ -5367,8 +5353,7 @@ _wrap_vpi_get_str(int argc, VALUE *argv, VALUE self) {
5367
5353
  }
5368
5354
  arg2 = (vpiHandle)(argp2);
5369
5355
  result = (PLI_BYTE8 *)vpi_get_str(arg1,arg2);
5370
-
5371
- vresult = SWIG_FromCharPtr(result);
5356
+ vresult = SWIG_FromCharPtr((const char *)result);
5372
5357
  return vresult;
5373
5358
  fail:
5374
5359
  return Qnil;
@@ -5398,7 +5383,6 @@ _wrap_vpi_get_delays(int argc, VALUE *argv, VALUE self) {
5398
5383
  }
5399
5384
  arg2 = (p_vpi_delay)(argp2);
5400
5385
  vpi_get_delays(arg1,arg2);
5401
-
5402
5386
  return Qnil;
5403
5387
  fail:
5404
5388
  return Qnil;
@@ -5428,7 +5412,6 @@ _wrap_vpi_put_delays(int argc, VALUE *argv, VALUE self) {
5428
5412
  }
5429
5413
  arg2 = (p_vpi_delay)(argp2);
5430
5414
  vpi_put_delays(arg1,arg2);
5431
-
5432
5415
  return Qnil;
5433
5416
  fail:
5434
5417
  return Qnil;
@@ -5458,7 +5441,6 @@ _wrap_vpi_get_value(int argc, VALUE *argv, VALUE self) {
5458
5441
  }
5459
5442
  arg2 = (p_vpi_value)(argp2);
5460
5443
  vpi_get_value(arg1,arg2);
5461
-
5462
5444
  return Qnil;
5463
5445
  fail:
5464
5446
  return Qnil;
@@ -5506,7 +5488,6 @@ _wrap_vpi_put_value(int argc, VALUE *argv, VALUE self) {
5506
5488
  }
5507
5489
  arg4 = (PLI_INT32)(val4);
5508
5490
  result = (vpiHandle)vpi_put_value(arg1,arg2,arg3,arg4);
5509
-
5510
5491
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
5511
5492
  return vresult;
5512
5493
  fail:
@@ -5537,7 +5518,6 @@ _wrap_vpi_get_time(int argc, VALUE *argv, VALUE self) {
5537
5518
  }
5538
5519
  arg2 = (p_vpi_time)(argp2);
5539
5520
  vpi_get_time(arg1,arg2);
5540
-
5541
5521
  return Qnil;
5542
5522
  fail:
5543
5523
  return Qnil;
@@ -5560,9 +5540,8 @@ _wrap_vpi_mcd_open(int argc, VALUE *argv, VALUE self) {
5560
5540
  if (!SWIG_IsOK(res1)) {
5561
5541
  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vpi_mcd_open" "', argument " "1"" of type '" "PLI_BYTE8 *""'");
5562
5542
  }
5563
- arg1 = buf1;
5543
+ arg1 = (PLI_BYTE8 *)(buf1);
5564
5544
  result = (PLI_UINT32)vpi_mcd_open(arg1);
5565
-
5566
5545
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
5567
5546
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
5568
5547
  return vresult;
@@ -5589,7 +5568,6 @@ _wrap_vpi_mcd_close(int argc, VALUE *argv, VALUE self) {
5589
5568
  }
5590
5569
  arg1 = (PLI_UINT32)(val1);
5591
5570
  result = (PLI_UINT32)vpi_mcd_close(arg1);
5592
-
5593
5571
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
5594
5572
  return vresult;
5595
5573
  fail:
@@ -5614,8 +5592,7 @@ _wrap_vpi_mcd_name(int argc, VALUE *argv, VALUE self) {
5614
5592
  }
5615
5593
  arg1 = (PLI_UINT32)(val1);
5616
5594
  result = (PLI_BYTE8 *)vpi_mcd_name(arg1);
5617
-
5618
- vresult = SWIG_FromCharPtr(result);
5595
+ vresult = SWIG_FromCharPtr((const char *)result);
5619
5596
  return vresult;
5620
5597
  fail:
5621
5598
  return Qnil;
@@ -5647,9 +5624,8 @@ _wrap_vpi_mcd_printf(int argc, VALUE *argv, VALUE self) {
5647
5624
  if (!SWIG_IsOK(res2)) {
5648
5625
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vpi_mcd_printf" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
5649
5626
  }
5650
- arg2 = buf2;
5627
+ arg2 = (PLI_BYTE8 *)(buf2);
5651
5628
  result = (PLI_INT32)vpi_mcd_printf(arg1,arg2,arg3);
5652
-
5653
5629
  vresult = SWIG_From_int((int)(result));
5654
5630
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5655
5631
  return vresult;
@@ -5676,9 +5652,8 @@ _wrap_vpi_printf(int argc, VALUE *argv, VALUE self) {
5676
5652
  if (!SWIG_IsOK(res1)) {
5677
5653
  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vpi_printf" "', argument " "1"" of type '" "PLI_BYTE8 *""'");
5678
5654
  }
5679
- arg1 = buf1;
5655
+ arg1 = (PLI_BYTE8 *)(buf1);
5680
5656
  result = (PLI_INT32)vpi_printf(arg1,arg2);
5681
-
5682
5657
  vresult = SWIG_From_int((int)(result));
5683
5658
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
5684
5659
  return vresult;
@@ -5713,7 +5688,6 @@ _wrap_vpi_compare_objects(int argc, VALUE *argv, VALUE self) {
5713
5688
  }
5714
5689
  arg2 = (vpiHandle)(argp2);
5715
5690
  result = (PLI_INT32)vpi_compare_objects(arg1,arg2);
5716
-
5717
5691
  vresult = SWIG_From_int((int)(result));
5718
5692
  return vresult;
5719
5693
  fail:
@@ -5738,7 +5712,6 @@ _wrap_vpi_chk_error(int argc, VALUE *argv, VALUE self) {
5738
5712
  }
5739
5713
  arg1 = (p_vpi_error_info)(argp1);
5740
5714
  result = (PLI_INT32)vpi_chk_error(arg1);
5741
-
5742
5715
  vresult = SWIG_From_int((int)(result));
5743
5716
  return vresult;
5744
5717
  fail:
@@ -5763,7 +5736,6 @@ _wrap_vpi_free_object(int argc, VALUE *argv, VALUE self) {
5763
5736
  }
5764
5737
  arg1 = (vpiHandle)(argp1);
5765
5738
  result = (PLI_INT32)vpi_free_object(arg1);
5766
-
5767
5739
  vresult = SWIG_From_int((int)(result));
5768
5740
  return vresult;
5769
5741
  fail:
@@ -5788,7 +5760,6 @@ _wrap_vpi_get_vlog_info(int argc, VALUE *argv, VALUE self) {
5788
5760
  }
5789
5761
  arg1 = (p_vpi_vlog_info)(argp1);
5790
5762
  result = (PLI_INT32)vpi_get_vlog_info(arg1);
5791
-
5792
5763
  vresult = SWIG_From_int((int)(result));
5793
5764
  return vresult;
5794
5765
  fail:
@@ -5823,14 +5794,13 @@ _wrap_vpi_get_data(int argc, VALUE *argv, VALUE self) {
5823
5794
  if (!SWIG_IsOK(res2)) {
5824
5795
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vpi_get_data" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
5825
5796
  }
5826
- arg2 = buf2;
5797
+ arg2 = (PLI_BYTE8 *)(buf2);
5827
5798
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
5828
5799
  if (!SWIG_IsOK(ecode3)) {
5829
5800
  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vpi_get_data" "', argument " "3"" of type '" "PLI_INT32""'");
5830
5801
  }
5831
5802
  arg3 = (PLI_INT32)(val3);
5832
5803
  result = (PLI_INT32)vpi_get_data(arg1,arg2,arg3);
5833
-
5834
5804
  vresult = SWIG_From_int((int)(result));
5835
5805
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5836
5806
  return vresult;
@@ -5867,14 +5837,13 @@ _wrap_vpi_put_data(int argc, VALUE *argv, VALUE self) {
5867
5837
  if (!SWIG_IsOK(res2)) {
5868
5838
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vpi_put_data" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
5869
5839
  }
5870
- arg2 = buf2;
5840
+ arg2 = (PLI_BYTE8 *)(buf2);
5871
5841
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
5872
5842
  if (!SWIG_IsOK(ecode3)) {
5873
5843
  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vpi_put_data" "', argument " "3"" of type '" "PLI_INT32""'");
5874
5844
  }
5875
5845
  arg3 = (PLI_INT32)(val3);
5876
5846
  result = (PLI_INT32)vpi_put_data(arg1,arg2,arg3);
5877
-
5878
5847
  vresult = SWIG_From_int((int)(result));
5879
5848
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
5880
5849
  return vresult;
@@ -5901,7 +5870,6 @@ _wrap_vpi_get_userdata(int argc, VALUE *argv, VALUE self) {
5901
5870
  }
5902
5871
  arg1 = (vpiHandle)(argp1);
5903
5872
  result = (void *)vpi_get_userdata(arg1);
5904
-
5905
5873
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
5906
5874
  return vresult;
5907
5875
  fail:
@@ -5932,7 +5900,6 @@ _wrap_vpi_put_userdata(int argc, VALUE *argv, VALUE self) {
5932
5900
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vpi_put_userdata" "', argument " "2"" of type '" "void *""'");
5933
5901
  }
5934
5902
  result = (PLI_INT32)vpi_put_userdata(arg1,arg2);
5935
-
5936
5903
  vresult = SWIG_From_int((int)(result));
5937
5904
  return vresult;
5938
5905
  fail:
@@ -5959,14 +5926,13 @@ _wrap_vpi_vprintf(int argc, VALUE *argv, VALUE self) {
5959
5926
  if (!SWIG_IsOK(res1)) {
5960
5927
  SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "vpi_vprintf" "', argument " "1"" of type '" "PLI_BYTE8 *""'");
5961
5928
  }
5962
- arg1 = buf1;
5929
+ arg1 = (PLI_BYTE8 *)(buf1);
5963
5930
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
5964
5931
  if (!SWIG_IsOK(ecode2)) {
5965
5932
  SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "vpi_vprintf" "', argument " "2"" of type '" "int""'");
5966
5933
  }
5967
5934
  arg2 = (int)(val2);
5968
5935
  result = (PLI_INT32)vpi_vprintf(arg1,arg2);
5969
-
5970
5936
  vresult = SWIG_From_int((int)(result));
5971
5937
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
5972
5938
  return vresult;
@@ -6003,14 +5969,13 @@ _wrap_vpi_mcd_vprintf(int argc, VALUE *argv, VALUE self) {
6003
5969
  if (!SWIG_IsOK(res2)) {
6004
5970
  SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "vpi_mcd_vprintf" "', argument " "2"" of type '" "PLI_BYTE8 *""'");
6005
5971
  }
6006
- arg2 = buf2;
5972
+ arg2 = (PLI_BYTE8 *)(buf2);
6007
5973
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
6008
5974
  if (!SWIG_IsOK(ecode3)) {
6009
5975
  SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "vpi_mcd_vprintf" "', argument " "3"" of type '" "int""'");
6010
5976
  }
6011
5977
  arg3 = (int)(val3);
6012
5978
  result = (PLI_INT32)vpi_mcd_vprintf(arg1,arg2,arg3);
6013
-
6014
5979
  vresult = SWIG_From_int((int)(result));
6015
5980
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
6016
5981
  return vresult;
@@ -6029,7 +5994,6 @@ _wrap_vpi_flush(int argc, VALUE *argv, VALUE self) {
6029
5994
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6030
5995
  }
6031
5996
  result = (PLI_INT32)vpi_flush();
6032
-
6033
5997
  vresult = SWIG_From_int((int)(result));
6034
5998
  return vresult;
6035
5999
  fail:
@@ -6054,7 +6018,6 @@ _wrap_vpi_mcd_flush(int argc, VALUE *argv, VALUE self) {
6054
6018
  }
6055
6019
  arg1 = (PLI_UINT32)(val1);
6056
6020
  result = (PLI_INT32)vpi_mcd_flush(arg1);
6057
-
6058
6021
  vresult = SWIG_From_int((int)(result));
6059
6022
  return vresult;
6060
6023
  fail:
@@ -6080,7 +6043,6 @@ _wrap_vpi_control(int argc, VALUE *argv, VALUE self) {
6080
6043
  }
6081
6044
  arg1 = (PLI_INT32)(val1);
6082
6045
  result = (PLI_INT32)vpi_control(arg1,arg2);
6083
-
6084
6046
  vresult = SWIG_From_int((int)(result));
6085
6047
  return vresult;
6086
6048
  fail:
@@ -6121,7 +6083,6 @@ _wrap_vpi_handle_by_multi_index(int argc, VALUE *argv, VALUE self) {
6121
6083
  }
6122
6084
  arg3 = (PLI_INT32 *)(argp3);
6123
6085
  result = (vpiHandle)vpi_handle_by_multi_index(arg1,arg2,arg3);
6124
-
6125
6086
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
6126
6087
  return vresult;
6127
6088
  fail:
@@ -6245,7 +6206,7 @@ static swig_cast_info *swig_cast_initial[] = {
6245
6206
 
6246
6207
  /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
6247
6208
 
6248
- /*************************************************************************
6209
+ /* -----------------------------------------------------------------------------
6249
6210
  * Type initialization:
6250
6211
  * This problem is tough by the requirement that no dynamic
6251
6212
  * memory is used. Also, since swig_type_info structures store pointers to
@@ -6257,9 +6218,9 @@ static swig_cast_info *swig_cast_initial[] = {
6257
6218
  * swig_module, and does all the lookup, filling in the swig_module.types
6258
6219
  * array with the correct data and linking the correct swig_cast_info
6259
6220
  * structures together.
6260
-
6221
+ *
6261
6222
  * The generated swig_type_info structures are assigned staticly to an initial
6262
- * array. We just loop though that array, and handle each type individually.
6223
+ * array. We just loop through that array, and handle each type individually.
6263
6224
  * First we lookup if this type has been already loaded, and if so, use the
6264
6225
  * loaded structure instead of the generated one. Then we have to fill in the
6265
6226
  * cast linked list. The cast data is initially stored in something like a
@@ -6271,7 +6232,7 @@ static swig_cast_info *swig_cast_initial[] = {
6271
6232
  * we find the array of casts associated with the type, and loop through it
6272
6233
  * adding the casts to the list. The one last trick we need to do is making
6273
6234
  * sure the type pointer in the swig_cast_info struct is correct.
6274
-
6235
+ *
6275
6236
  * First off, we lookup the cast->type name to see if it is already loaded.
6276
6237
  * There are three cases to handle:
6277
6238
  * 1) If the cast->type has already been loaded AND the type we are adding
@@ -6284,7 +6245,7 @@ static swig_cast_info *swig_cast_initial[] = {
6284
6245
  * 3) Finally, if cast->type has not already been loaded, then we add that
6285
6246
  * swig_cast_info to the linked list (because the cast->type) pointer will
6286
6247
  * be correct.
6287
- **/
6248
+ * ----------------------------------------------------------------------------- */
6288
6249
 
6289
6250
  #ifdef __cplusplus
6290
6251
  extern "C" {
@@ -6297,32 +6258,49 @@ extern "C" {
6297
6258
  #define SWIGRUNTIME_DEBUG
6298
6259
  #endif
6299
6260
 
6261
+
6300
6262
  SWIGRUNTIME void
6301
6263
  SWIG_InitializeModule(void *clientdata) {
6302
6264
  size_t i;
6303
- swig_module_info *module_head;
6304
- static int init_run = 0;
6265
+ swig_module_info *module_head, *iter;
6266
+ int found;
6305
6267
 
6306
6268
  clientdata = clientdata;
6307
6269
 
6308
- if (init_run) return;
6309
- init_run = 1;
6310
-
6311
- /* Initialize the swig_module */
6312
- swig_module.type_initial = swig_type_initial;
6313
- swig_module.cast_initial = swig_cast_initial;
6270
+ /* check to see if the circular list has been setup, if not, set it up */
6271
+ if (swig_module.next==0) {
6272
+ /* Initialize the swig_module */
6273
+ swig_module.type_initial = swig_type_initial;
6274
+ swig_module.cast_initial = swig_cast_initial;
6275
+ swig_module.next = &swig_module;
6276
+ }
6314
6277
 
6315
6278
  /* Try and load any already created modules */
6316
6279
  module_head = SWIG_GetModule(clientdata);
6317
- if (module_head) {
6280
+ if (!module_head) {
6281
+ /* This is the first module loaded for this interpreter */
6282
+ /* so set the swig module into the interpreter */
6283
+ SWIG_SetModule(clientdata, &swig_module);
6284
+ module_head = &swig_module;
6285
+ } else {
6286
+ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
6287
+ found=0;
6288
+ iter=module_head;
6289
+ do {
6290
+ if (iter==&swig_module) {
6291
+ found=1;
6292
+ break;
6293
+ }
6294
+ iter=iter->next;
6295
+ } while (iter!= module_head);
6296
+
6297
+ /* if the is found in the list, then all is done and we may leave */
6298
+ if (found) return;
6299
+ /* otherwise we must add out module into the list */
6318
6300
  swig_module.next = module_head->next;
6319
6301
  module_head->next = &swig_module;
6320
- } else {
6321
- /* This is the first module loaded */
6322
- swig_module.next = &swig_module;
6323
- SWIG_SetModule(clientdata, &swig_module);
6324
6302
  }
6325
-
6303
+
6326
6304
  /* Now work on filling in swig_module.types */
6327
6305
  #ifdef SWIGRUNTIME_DEBUG
6328
6306
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);