diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2022-12-02 08:15:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 08:15:31 +0100 |
commit | a64ed824ed6fadf24cf2871d7752f63ab6613c8b (patch) | |
tree | 7ef996bb64529953bb78f1d814d8edd75598753f /kernel/yosys.h | |
parent | dcc1cb7ddd580aaf68f9a225e6b45356fc327709 (diff) | |
parent | b0469b3863037cdf7a82b413c7bb7e9d9ae855f3 (diff) | |
download | yosys-a64ed824ed6fadf24cf2871d7752f63ab6613c8b.tar.gz yosys-a64ed824ed6fadf24cf2871d7752f63ab6613c8b.tar.bz2 yosys-a64ed824ed6fadf24cf2871d7752f63ab6613c8b.zip |
Merge pull request #3567 from YosysHQ/tcl_fix_crash
Fix tcl crash in case of error executing command
Diffstat (limited to 'kernel/yosys.h')
-rw-r--r-- | kernel/yosys.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h index b5b1553f2..29415ff84 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -82,6 +82,9 @@ # ifdef YOSYS_MXE_HACKS extern Tcl_Command Tcl_CreateCommand(Tcl_Interp *interp, const char *cmdName, Tcl_CmdProc *proc, ClientData clientData, Tcl_CmdDeleteProc *deleteProc); extern Tcl_Interp *Tcl_CreateInterp(void); +extern void Tcl_Preserve(ClientData data); +extern void Tcl_Release(ClientData clientData); +extern int Tcl_InterpDeleted(Tcl_Interp *interp); extern void Tcl_DeleteInterp(Tcl_Interp *interp); extern int Tcl_Eval(Tcl_Interp *interp, const char *script); extern int Tcl_EvalFile(Tcl_Interp *interp, const char *fileName); |