Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/OpenRoad.i
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
#include <thread>
#include <vector>

#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif

////////////////////////////////////////////////////////////////
//
// C++ helper functions used by the interface functions.
Expand Down
4 changes: 4 additions & 0 deletions src/est/src/EstimateParasitics.i
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
#include "db_sta/dbNetwork.hh"
#include "ord/OpenRoad.hh"

#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif

namespace ord {
// Defined in OpenRoad.i
est::EstimateParasitics* getEstimateParasitics();
Expand Down
4 changes: 4 additions & 0 deletions src/ifp/src/InitFloorplan.i
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#include "utl/Logger.h"
#include "odb/geom.h"

#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif

// Defined by OpenRoad.i
namespace ord {

Expand Down
6 changes: 6 additions & 0 deletions src/odb/src/swig/tcl/dbtypes.i
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2019-2025, The OpenROAD Authors

%{
#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif
%}

%import <std_vector.i>

%template(vector_str) std::vector<std::string>;
Expand Down
5 changes: 5 additions & 0 deletions src/options.i
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
%{
#include <map>
#include <string>

#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif

%}

%include "std_string.i"
Expand Down
4 changes: 4 additions & 0 deletions src/pad/src/pad.i
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ namespace ord {
pad::ICeWall* getICeWall();
utl::Logger* getLogger();
} // namespace ord

#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif
%}

%import <std_vector.i>
Expand Down
3 changes: 3 additions & 0 deletions src/pdn/src/PdnGen.i
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ utl::Logger* getLogger();
using std::regex;
using utl::PDN;

#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif
%}

%import <std_vector.i>
Expand Down
4 changes: 4 additions & 0 deletions src/ppl/src/IOPlacer.i
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ using ppl::PinList;
using std::vector;
using std::set;

#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif

template <class TYPE>
vector<TYPE> *
tclListStdSeq(Tcl_Obj *const source,
Expand Down
4 changes: 4 additions & 0 deletions src/psm/src/pdnsim.i
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ using ord::getPDNSim;
using psm::PDNSim;
using sta::Scene;

#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif

%}

// OpenSTA swig rules
Expand Down
4 changes: 4 additions & 0 deletions src/utl/src/Logger.i
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ using utl::ToolId;
using utl::Logger;
using ord::getLogger;

#if TCL_MAJOR_VERSION < 9 && !defined(Tcl_Size)
typedef int Tcl_Size;
#endif

%}

%typemap(in) utl::ToolId {
Expand Down
Loading