Commit Graph

19 Commits

Author SHA1 Message Date
Henner Zeller e8218f2db1
Tcl 9 compatibility changes (#414)
* Provide close2proc function to prevent tcl9 from crashing.

Tcl 9 does not test if the close2Proc function pointer is non-null,
but calls it unconditionally:
https://github.com/tcltk/tcl/blob/core-9-0-3/generic/tclIO.c#L384

So we need to provide a non-null function pointer for our code
to not crash with Tcl9.

Use the same implementation as the previous close channel
had.

Signed-off-by: Henner Zeller <h.zeller@acm.org>

* Use non-deprecated trace add variable syntax.

In modern tcl, `trace variable` is now i`trace add variable`,
and `"rw"` should be spelled out as `{read write}`
There were backwards compatible forms in Tcl 8.x but now loudly
complains in Tcl 9

Signed-off-by: Henner Zeller <h.zeller@acm.org>

* Use `Tcl_Size` for all tcl functions returning sizes.

This is the type the Tcl-API provides in its prototypes and
starting from Tcl9 this typedef actually changes from `int` to `long`,
so will no longer compile when passing an `int*`.

So whenever we get a return value of this type, use the
correct typedef to declare the variable. This makes it forward and
backward compatible.

Signed-off-by: Henner Zeller <h.zeller@acm.org>

* Address review comments: compare with `read`/`write` not `r`, `w`

Signed-off-by: Henner Zeller <h.zeller@acm.org>

---------

Signed-off-by: Henner Zeller <h.zeller@acm.org>
2026-04-03 11:02:25 -07:00
James Cherry d6e7b4256c lvf squish
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-13 14:06:35 -07:00
James Cherry 981f44db68 update copyright
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-10 14:57:45 -07:00
James Cherry d42b821c00 rel 3.0
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-01-13 09:36:45 -07:00
James Cherry 2a4fd08211 update copyright
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-01-21 18:54:33 -07:00
James Cherry d51497c12d link_design -no_black_boxes instead of var
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2024-07-24 09:04:08 -07:00
James Cherry 422a5819bd update copyright
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2024-01-11 16:34:49 -08:00
James Cherry 3b721ba40a renumber error/warn messages
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2024-01-07 19:23:53 -07:00
James Cherry cc2ef1783f update copyright
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2023-02-18 17:55:40 -07:00
James Cherry 2bc6e8f68c update copyright
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2022-01-04 10:17:08 -07:00
James Cherry eced277fc6 sta_recovery_removal_checks_enabled
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2021-11-04 18:34:35 -07:00
James Cherry 2e8f0035dc update copyright 2021-06-25 10:25:49 -07:00
James Cherry d42f791da2 sta_warn/sta_error id 2020-12-15 22:31:08 -07:00
James Cherry 4a017e86eb update copyright 2020-03-06 18:50:37 -08:00
James Cherry d8146af755 remove autotools/configure support 2019-02-16 12:07:59 -08:00
James Cherry 3f65204717 2.0.6 2019-01-26 23:03:01 -08:00
James Cherry 3d8d088b89 sync 2019-01-05 16:09:27 -08:00
James Cherry b075ccc783 update copyright 2019-01-01 12:26:11 -08:00
James Cherry 1154fb89fd and then there was light... 2018-09-28 08:54:21 -07:00