Skip to content

Commit

Permalink
tclapi: Remove unused -bool flag from get_param and document -[su]int
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Dec 3, 2024
1 parent cac6dd9 commit 81de54f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel/tclapi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -430,20 +430,19 @@ static int tcl_set_attr(ClientData, Tcl_Interp *interp, int objc, Tcl_Obj *const
static int tcl_get_param(ClientData, Tcl_Interp *interp, int argc, const char *argv[])
{
int i;
bool string_flag = false, bool_flag = false;
bool string_flag = false;
bool int_flag = false, sint_flag = false, uint_flag = false;
for (i = 1; i < argc; i++) {
FLAG(string)
FLAG(int)
FLAG(sint)
FLAG(uint)
FLAG(bool)
break;
}

if ((i != argc - 3) ||
(string_flag + int_flag > 1))
ERROR("bad usage: expected \"get_param [-string|-int] <module> <cellid> <paramname>")
ERROR("bad usage: expected \"get_param [-string|-int|-sint|-uint] <module> <cellid> <paramname>")

IdString mod_id, cell_id, param_id;
mod_id = RTLIL::escape_id(argv[i++]);
Expand Down

0 comments on commit 81de54f

Please sign in to comment.