[brlcad-commits] SF.net SVN: brlcad:[41804] brlcad/trunk/src/mged
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2010-12-27 23:21:23
|
Revision: 41804 http://brlcad.svn.sourceforge.net/brlcad/?rev=41804&view=rev Author: brlcad Date: 2010-12-27 23:21:17 +0000 (Mon, 27 Dec 2010) Log Message: ----------- make a handful of mged functions specify a proper const argv array. mark unused params too. Modified Paths: -------------- brlcad/trunk/src/mged/chgview.c brlcad/trunk/src/mged/cmd.h Modified: brlcad/trunk/src/mged/chgview.c =================================================================== --- brlcad/trunk/src/mged/chgview.c 2010-12-27 23:08:26 UTC (rev 41803) +++ brlcad/trunk/src/mged/chgview.c 2010-12-27 23:21:17 UTC (rev 41804) @@ -133,10 +133,10 @@ /* DEBUG -- force view center */ /* Format: C x y z */ int -cmd_center(ClientData clientData, +cmd_center(ClientData UNUSED(clientData), Tcl_Interp *interp, int argc, - char **argv) + const char *argv[]) { int ret; Tcl_DString ds; @@ -483,7 +483,7 @@ int -emuves_com(int argc, char **argv) +emuves_com(int argc, const char *argv[]) { int i; struct bu_ptbl *tbl; @@ -4068,7 +4068,7 @@ int -cmd_rot(ClientData clientData, +cmd_rot(ClientData UNUSED(clientData), Tcl_Interp *interp, int argc, char **argv) @@ -4115,7 +4115,7 @@ cmd_arot(ClientData clientData, Tcl_Interp *interp, int argc, - char **argv) + const char *argv[]) { Tcl_DString ds; static const char *usage = "x y z angle"; Modified: brlcad/trunk/src/mged/cmd.h =================================================================== --- brlcad/trunk/src/mged/cmd.h 2010-12-27 23:08:26 UTC (rev 41803) +++ brlcad/trunk/src/mged/cmd.h 2010-12-27 23:21:17 UTC (rev 41804) @@ -48,14 +48,14 @@ BU_EXTERN(int cmd_ged_more_wrapper, (ClientData, Tcl_Interp *, int, const char *[])); BU_EXTERN(int cmd_ged_plain_wrapper, (ClientData, Tcl_Interp *, int, const char *[])); BU_EXTERN(int cmd_ged_view_wrapper, (ClientData, Tcl_Interp *, int, const char *[])); -BU_EXTERN(int cmd_E, (ClientData, Tcl_Interp *, int, const char **)); -BU_EXTERN(int cmd_arot, (ClientData, Tcl_Interp *, int, char **)); +BU_EXTERN(int cmd_E, (ClientData, Tcl_Interp *, int, const char *[])); +BU_EXTERN(int cmd_arot, (ClientData, Tcl_Interp *, int, const char *[])); BU_EXTERN(int cmd_autoview, (ClientData, Tcl_Interp *, int, const char *[])); BU_EXTERN(int cmd_blast, (ClientData, Tcl_Interp *, int, const char *[])); -BU_EXTERN(int cmd_center, (ClientData, Tcl_Interp *, int, char **)); -BU_EXTERN(int cmd_cmd_win, (ClientData, Tcl_Interp *, int, char **)); +BU_EXTERN(int cmd_center, (ClientData, Tcl_Interp *, int, const char *[])); +BU_EXTERN(int cmd_cmd_win, (ClientData, Tcl_Interp *, int, const char *[])); BU_EXTERN(int cmd_draw, (ClientData, Tcl_Interp *, int, const char *[])); -BU_EXTERN(int cmd_emuves, (ClientData, Tcl_Interp *, int, char **)); +BU_EXTERN(int cmd_emuves, (ClientData, Tcl_Interp *, int, const char *[])); BU_EXTERN(int cmd_ev, (ClientData, Tcl_Interp *, int, const char *[])); BU_EXTERN(int cmd_export_body, (ClientData, Tcl_Interp *, int, char **)); BU_EXTERN(int cmd_get, (ClientData, Tcl_Interp *, int, char **)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |