Skip to content
Tcl Source Code Artifact [ad54581286]
Login

Artifact [ad54581286]

Artifact ad54581286bd0cc9d6c906f2afe2b7a10e08197ee26739d5f92e463a8e77d2da:

Ticket change [ad54581286] - Ticket [70f3b23caddc1a1c|70f3b23cad] <i>Tcl_InitStubs: is the &quot;-&quot; in the version requirement &quot;8.5-&quot; allowed?</i> status still Open with 3 other changes by oehhar on 2024-12-15 17:47:28.
D 2024-12-15T17:47:28.101
J comment The\swiki\spage\sfor\sextension\smigration\s[https://core.tcl-lang.org/tcl/wiki?name=Migrating+C+extensions+to+Tcl+9&p]\scontains:\r\n\r\n<verbatim>\r\n#ifdef\sUSE_TCL_STUBS\r\n\s\s\s\sif\s(Tcl_InitStubs(interp,\s"8.5-",\s0)\s==\sNULL)\r\n#else\r\n\s\s\s\sif\s(Tcl_PkgRequire(interp,\s"Tcl",\s"8.5-",\s0)\s==\sNULL)\r\n#endif\r\n\s\s\s\s{\r\n\s\s\s\s\s\s\s\sreturn\sTCL_ERROR;\r\n\s\s\s\s}\r\n</verbatim>\r\n\r\nThis\smight\sbe\swrong\sin\stwo\ssenses:\r\n\r\n\s\s\s*\s\s\sThe\s#ifdef\sis\snot\srequired,\sas\swithout\sdefining\sUSE_TCL_STUBS,\s"Tcl_InitStubs"\sworks\slike\s"Tcl_PkgRequire"\r\n\s\s*\s\s\sFollowing\sthe\sTcl_InitStubs\sdocumentation,\sthe\s"-"\scharter\sis\snot\sallowed\swithin\sthe\sargument.\r\n\r\nAlso,\sthe\ssample\sextension\sis\srelated\shere.\r\n\r\nHere\sis\sthe\sTCL\s8.6.\sdescription\sstating,\sthat\sonly\snumbers\sand\sdots\sare\sallowed:\r\n[https://core.tcl-lang.org/tcl/file?name=doc/InitStubs.3&ci=84c07aaa29698bb8&ln=23-24]\r\nIMHO,\sthe\s"PackageRequire"\scapability\swithout\s"USE_TCL_STUBS"\sis\salso\sundocumented.\r\n\r\nHere\sis\sthe\s9.0\s(main)\sdescription\swhich\sis\sidentical:\r\n[https://core.tcl-lang.org/tcl/file?udc=1&ln=on&ci=tip&name=doc%2FInitStubs.3]\r\n\r\nTHanks\sto\sFrancois\sto\spoint-out\sthis\sissue.
J login oehhar
J mimetype text/plain
K 70f3b23caddc1a1cf77a3f7ed7daa6f9f6405ee5
U oehhar
Z b02ec317edcddf742ca6bfd4e40200a9