Skip to content

Commit 81de54f

Browse files
committed
tclapi: Remove unused -bool flag from get_param and document -[su]int
1 parent cac6dd9 commit 81de54f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

kernel/tclapi.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,20 +430,19 @@ static int tcl_set_attr(ClientData, Tcl_Interp *interp, int objc, Tcl_Obj *const
430430
static int tcl_get_param(ClientData, Tcl_Interp *interp, int argc, const char *argv[])
431431
{
432432
int i;
433-
bool string_flag = false, bool_flag = false;
433+
bool string_flag = false;
434434
bool int_flag = false, sint_flag = false, uint_flag = false;
435435
for (i = 1; i < argc; i++) {
436436
FLAG(string)
437437
FLAG(int)
438438
FLAG(sint)
439439
FLAG(uint)
440-
FLAG(bool)
441440
break;
442441
}
443442

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

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

0 commit comments

Comments
 (0)