@@ -175,22 +175,22 @@ end
175175# ----------------------------------------------------------------
176176# Pre-computed structs
177177# ----------------------------------------------------------------
178- struct ArgInfo
178+ struct RustArgInfo
179179 name :: String
180180 rtype :: String
181181end
182182
183- struct FuncInfo
183+ struct RustFuncInfo
184184 name :: String
185185 ret :: Union{String, Nothing} # nothing = void
186- args :: Vector{ArgInfo }
186+ args :: Vector{RustArgInfo }
187187end
188188
189189# ----------------------------------------------------------------
190190# Collect all uno_* function declarations in one pass
191191# ----------------------------------------------------------------
192192function collect_funcs (root)
193- funcs = FuncInfo []
193+ funcs = RustFuncInfo []
194194 for child in Clang. children (root)
195195 k = Clang. kind (child)
196196 name = Clang. spelling (child)
@@ -202,9 +202,9 @@ function collect_funcs(root)
202202 aname = Clang. spelling (a)
203203 at = Clang. getCursorType (a)
204204 spell = Clang. spelling (at)
205- ArgInfo (aname, cltype_to_rust (at, spell))
205+ RustArgInfo (aname, cltype_to_rust (at, spell))
206206 end
207- push! (funcs, FuncInfo (name, ret, collect (args)))
207+ push! (funcs, RustFuncInfo (name, ret, collect (args)))
208208 end
209209 end
210210 return funcs
215215# ----------------------------------------------------------------
216216const RUST_MAX_COL = 100
217217
218- function gen_one_fn (io, f:: FuncInfo , trailing_blank:: Bool )
218+ function gen_one_fn (io, f:: RustFuncInfo , trailing_blank:: Bool )
219219 println (io, " // $(f. name) " )
220220 ret_str = f. ret === nothing ? " " : " -> $(f. ret) "
221221
0 commit comments