Check-in [bb7a68b1e7]
Overview
Comment:Updated comments
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bb7a68b1e7b9bf193809e497300b0610852ec22a
User & Date: rkeene on 2014-07-16 18:02:24
Other Links: manifest | tags
Context
2014-07-19
06:17
More additional comments check-in: 57b7fc959d user: rkeene tags: trunk
2014-07-16
18:02
Updated comments check-in: bb7a68b1e7 user: rkeene tags: trunk
16:26
Cleaned up some return code handling, and added test for binary blobs check-in: 1c563bb769 user: rkeene tags: trunk
Changes

Modified tcc4tcl.tcl from [5e15b1175b] to [a8247de2cc].

144
145
146
147
148
149
150
151
152
153



154
155
156
157
158
159
160
161
162
163
164
165

166


167
168

169
170
171
172

173
174
175
176
177
178
179
144
145
146
147
148
149
150



151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184







-
-
-
+
+
+












+

+
+


+




+








		# Argument definitions (in C style) initialization
		set adefs_c [list]

		# Names of all arguments initialization
		set args [list]

		# If we aren't creating a new interp, it must be the first argument
		# If the definition of this proc already includes the interp
		# argument, use it -- otherwise add one
		# Determine if one of the arguments is a Tcl_Interp*, if not
		# then we will need to create our own Tcl interpreter for
		# local use
		set newInterp 1
		foreach {type var} $adefs {
			if {$type == "Tcl_Interp*"} {
				set newInterp 0
				set interp_name $var

				break
			}
		}

		# Create the C-style argument definition
		foreach {type var} $adefs {
			# Update definition of types
			lappend adefs_c [list $type $var]

			# Note the type for this variable
			set types($var) $type

			# The Tcl interpreter is not added to the list of Tcl arguments
			if {$type == "Tcl_Interp*"} {
				continue
			}

			# Update the list of arguments to pass to Tcl
			lappend args $var
		}

		if {[llength $adefs_c] == 0} {
			set adefs_c "void"
		} else {
			set adefs_c [join $adefs_c {, }]