Skip to content

Commit 5136ea7

Browse files
committed
odb: move user code to user code section and ensure correct argument reading
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
1 parent 2a9bae2 commit 5136ea7

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/odb/include/odb/db.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7592,8 +7592,6 @@ class dbDatabase : public dbObject
75927592

75937593
dbChip* findChip(const char* name) const;
75947594

7595-
bool hasHierarchicalChip() const;
7596-
75977595
dbSet<dbProperty> getProperties() const;
75987596

75997597
dbSet<dbChipInst> getChipInsts() const;
@@ -7621,6 +7619,8 @@ class dbDatabase : public dbObject
76217619
void setHierarchy(bool value);
76227620
bool hasHierarchy() const;
76237621

7622+
bool hasHierarchicalChip() const;
7623+
76247624
void setTopChip(dbChip* chip);
76257625
///
76267626
/// Return the libs contained in the database. A database can contain

src/odb/src/db/dbDatabase.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -704,17 +704,6 @@ dbChip* dbDatabase::findChip(const char* name) const
704704
return (dbChip*) obj->chip_hash_.find(name);
705705
}
706706

707-
bool dbDatabase::hasHierarchicalChip() const
708-
{
709-
for (dbChip* chip : getChips()) {
710-
if (chip->getChipType() == dbChip::ChipType::HIER) {
711-
return true;
712-
}
713-
}
714-
715-
return false;
716-
}
717-
718707
dbSet<dbProperty> dbDatabase::getProperties() const
719708
{
720709
_dbDatabase* obj = (_dbDatabase*) this;
@@ -934,6 +923,17 @@ bool dbDatabase::hasHierarchy() const
934923
return db->hierarchy_;
935924
}
936925

926+
bool dbDatabase::hasHierarchicalChip() const
927+
{
928+
for (dbChip* chip : getChips()) {
929+
if (chip->getChipType() == dbChip::ChipType::HIER) {
930+
return true;
931+
}
932+
}
933+
934+
return false;
935+
}
936+
937937
void dbDatabase::read(std::istream& file)
938938
{
939939
_dbDatabase* db = (_dbDatabase*) this;

src/odb/src/swig/tcl/odb.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ proc set_extraction_rules_file { args } {
12331233
utl::error ODB 477 "Could not set extraction rules file. Tech not found."
12341234
}
12351235

1236-
$tech setExtractionRulesFile $args
1236+
$tech setExtractionRulesFile [lindex $args 0]
12371237
}
12381238

12391239
namespace eval odb {

0 commit comments

Comments
 (0)