Diff

Differences From Artifact [e6c673ebab]:

To Artifact [2aaf108bbf]:


259
260
261
262
263
264
265





266


267
268
269
270
271
272
273
259
260
261
262
263
264
265
266
267
268
269
270

271
272
273
274
275
276
277
278
279







+
+
+
+
+
-
+
+







						}
					}

					_ccode $handle "    _$arg = Tcl_New${convCmd}Obj($arg);"
					_ccode $handle "    if (!_$arg) $return_failure;"
				}
				char* {
					if {[info exists $types(${arg}_MemberCount)] && [info exists $types(${arg}_MemberLength)]} {
						_ccode $handle "    _$arg = Tcl_NewByteArrayObj($arg, ${arg}_MemberCount * ${arg}_MemberLength);"
					} elseif {[info exists $types(${arg}_Length)]} {
						_ccode $handle "    _$arg = Tcl_NewByteArrayObj($arg, ${arg}_Length);"
					} else {
					_ccode $handle "    _$arg = Tcl_NewStringObj($arg, -1);"
						_ccode $handle "    _$arg = Tcl_NewStringObj($arg, -1);"
					}
				}
				Tcl_Obj* {
					_ccode $handle "    _$arg = $arg;"
				}
				default {
					return -code error "Unknown type: $type"
				}