Thread: [Brlcad-devel] [brlcad - Developers] question about src/mged/cmd.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: SourceForge.net <no...@so...> - 2006-05-12 20:50:25
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3726411 By: jim_monte Hi, About 1/3 of the way down this file are the following lines: bu_vls_strcpy(&temp, "glob_compat_mode"); Tcl_LinkVar(interp, bu_vls_addr(&temp), (char *)&glob_compat_mode, TCL_LINK_BOOLEAN); bu_vls_strcpy(&temp, "output_as_return"); Tcl_LinkVar(interp, bu_vls_addr(&temp), (char *)&output_as_return, TCL_LINK_BOOLEAN); The bu_vls_strcpy() seems to be useless since Tcl_LinkVar() has a const char * for the argument. But it also seems like someone made a special effor to avoid something much more direct like Tcl_LinkVar(interp, "glob_compat_mode",(char *)&glob_compat_mode, TCL_LINK_BOOLEAN); Tcl_LinkVar(interp, "output_as_return", (char *)&output_as_return, TCL_LINK_BOOLEAN); Does anyone know of the reasoning behind this code? Thanks for any info. Jim Monte ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=362511 |