From 81de54f436ce1ad478f83897b3b8a821251c6915 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Tue, 3 Dec 2024 18:59:52 +0100 Subject: [PATCH] tclapi: Remove unused -bool flag from get_param and document -[su]int --- kernel/tclapi.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/tclapi.cc b/kernel/tclapi.cc index 4516f73cf20..91874d5b910 100644 --- a/kernel/tclapi.cc +++ b/kernel/tclapi.cc @@ -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] ") + ERROR("bad usage: expected \"get_param [-string|-int|-sint|-uint] ") IdString mod_id, cell_id, param_id; mod_id = RTLIL::escape_id(argv[i++]);