From 9df9e5f753cddd98e165850b0cc5beb903138b8b Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Fri, 13 Mar 2026 06:12:16 +1100 Subject: [PATCH] better support for windows shortcuts --- src/bootsupport/modules/punk-0.1.tm | 1 + src/bootsupport/modules/punk/args-0.2.1.tm | 5 +- .../modules/punk/mix/util-0.1.0.tm | 153 ++- src/bootsupport/modules/punk/nav/fs-0.1.0.tm | 4 +- src/bootsupport/modules/punk/path-0.1.0.tm | 8 + src/modules/punk-0.1.tm | 1 + src/modules/punk/mix/util-999999.0a1.0.tm | 153 ++- src/modules/punk/nav/fs-999999.0a1.0.tm | 2 +- src/modules/punk/path-999999.0a1.0.tm | 8 + src/modules/punk/winlnk-999999.0a1.0.tm | 478 ++++++--- .../src/bootsupport/modules/mime-1.7.1.tm | 32 +- .../src/bootsupport/modules/overtype-1.7.4.tm | 31 +- .../src/bootsupport/modules/punk-0.1.tm | 1 + .../bootsupport/modules/punk/ansi-0.1.1.tm | 22 +- .../bootsupport/modules/punk/args-0.2.1.tm | 5 +- .../punk/args/moduledoc/tclcore-0.1.0.tm | 14 +- .../modules/punk/mix/util-0.1.0.tm | 153 ++- .../bootsupport/modules/punk/nav/fs-0.1.0.tm | 4 +- .../bootsupport/modules/punk/path-0.1.0.tm | 8 + .../src/bootsupport/modules/mime-1.7.1.tm | 32 +- .../src/bootsupport/modules/overtype-1.7.4.tm | 31 +- .../src/bootsupport/modules/punk-0.1.tm | 1 + .../bootsupport/modules/punk/ansi-0.1.1.tm | 22 +- .../bootsupport/modules/punk/args-0.2.1.tm | 5 +- .../punk/args/moduledoc/tclcore-0.1.0.tm | 14 +- .../modules/punk/mix/util-0.1.0.tm | 153 ++- .../bootsupport/modules/punk/nav/fs-0.1.0.tm | 4 +- .../bootsupport/modules/punk/path-0.1.0.tm | 8 + .../BWman/ArrowButton.html | 0 .../BWman/BWidget.html | 0 .../BWman/Button.html | 0 .../BWman/ButtonBox.html | 0 .../BWman/ComboBox.html | 0 .../BWman/Dialog.html | 0 .../BWman/DragSite.html | 0 .../BWman/DropSite.html | 0 .../BWman/DynamicHelp.html | 0 .../BWman/Entry.html | 0 .../BWman/Label.html | 0 .../BWman/LabelEntry.html | 0 .../BWman/LabelFrame.html | 0 .../BWman/ListBox.html | 0 .../BWman/MainFrame.html | 0 .../BWman/MessageDlg.html | 0 .../BWman/NoteBook.html | 0 .../BWman/PagesManager.html | 0 .../BWman/PanedWindow.html | 0 .../BWman/PanelFrame.html | 0 .../BWman/PasswdDlg.html | 0 .../BWman/ProgressBar.html | 0 .../BWman/ProgressDlg.html | 0 .../BWman/ScrollView.html | 0 .../BWman/ScrollableFrame.html | 0 .../BWman/ScrolledWindow.html | 0 .../BWman/SelectColor.html | 5 +- .../BWman/SelectFont.html | 0 .../BWman/Separator.html | 0 .../BWman/SpinBox.html | 0 .../BWman/StatusBar.html | 0 .../BWman/TitleFrame.html | 0 .../BWman/Tree.html | 11 +- .../BWman/Widget.html | 0 .../BWman/contents.html | 0 .../BWman/index.html | 0 .../BWman/navtree.html | 0 .../BWman/options.htm | 0 .../CHANGES.txt | 0 .../ChangeLog | 41 - .../LICENSE.txt | 0 .../README.txt | 0 .../arrow.tcl | 0 .../bitmap.tcl | 0 .../button.tcl | 4 +- .../buttonbox.tcl | 2 +- .../color.tcl | 83 +- .../combobox.tcl | 10 +- .../demo/basic.tcl | 5 +- .../demo/bwidget.xbm | 0 .../demo/demo.tcl | 3 +- .../demo/dnd.tcl | 0 .../demo/manager.tcl | 18 +- .../demo/select.tcl | 0 .../demo/tmpldlg.tcl | 8 +- .../demo/tree.tcl | 4 +- .../demo/x1.xbm | 0 .../dialog.tcl | 0 .../dragsite.tcl | 0 .../dropsite.tcl | 6 +- .../dynhelp.tcl | 6 +- .../entry.tcl | 6 +- .../{BWidget1.10.1 => BWidget1.9.16}/font.tcl | 3 - .../images/bold.gif | Bin .../images/copy.gif | Bin .../images/cut.gif | Bin .../images/dragfile.gif | Bin .../images/dragicon.gif | Bin .../images/error.gif | Bin .../images/file.gif | Bin .../images/folder.gif | Bin .../images/hourglass.gif | Bin .../images/info.gif | Bin .../images/italic.gif | Bin .../images/minus.xbm | 0 .../images/new.gif | Bin .../images/opcopy.xbm | 0 .../images/open.gif | Bin .../images/openfold.gif | Bin .../images/oplink.xbm | 0 .../images/opmove.xbm | 0 .../images/overstrike.gif | Bin .../images/palette.gif | Bin .../images/passwd.gif | Bin .../images/paste.gif | Bin .../images/plus.xbm | 0 .../images/print.gif | Bin .../images/question.gif | Bin .../images/redo.gif | Bin .../images/save.gif | Bin .../images/target.xbm | 0 .../images/underline.gif | Bin .../images/undo.gif | Bin .../images/warning.gif | Bin .../{BWidget1.10.1 => BWidget1.9.16}/init.tcl | 0 .../label.tcl | 2 +- .../labelentry.tcl | 0 .../labelframe.tcl | 4 +- .../lang/da.rc | 0 .../lang/de.rc | 0 .../lang/en.rc | 0 .../lang/es.rc | 0 .../lang/fr.rc | 0 .../lang/hu.rc | 0 .../lang/nl.rc | 0 .../lang/no.rc | 0 .../lang/pl.rc | 0 .../listbox.tcl | 12 +- .../mainframe.tcl | 0 .../messagedlg.tcl | 0 .../notebook.tcl | 6 +- .../pagesmgr.tcl | 2 +- .../panedw.tcl | 0 .../panelframe.tcl | 492 +++++----- .../passwddlg.tcl | 0 .../pkgIndex.tcl | 6 +- .../progressbar.tcl | 8 +- .../progressdlg.tcl | 0 .../scrollframe.tcl | 0 .../scrollview.tcl | 0 .../scrollw.tcl | 0 .../separator.tcl | 0 .../spinbox.tcl | 2 +- .../statusbar.tcl | 2 +- .../tests/entry.test | 0 .../titleframe.tcl | 0 .../{BWidget1.10.1 => BWidget1.9.16}/tree.tcl | 37 +- .../utils.tcl | 6 +- .../widget.tcl | 0 .../wizard.tcl | 0 .../xpm2image.tcl | 0 .../lib/app-punkshell/punkshell.tcl | 8 +- .../modules/packageTest-0.1.4.tm | Bin 11955 -> 0 bytes .../modules/packageTest-0.1.5.tm | Bin 11963 -> 0 bytes .../modules/packagetest-0.1.7.tm | Bin 0 -> 12090 bytes .../modules/pattern/IPatternBuilder-2.0.tm | 326 +++++++ .../modules/pattern/IPatternInterface-2.0.tm | 43 + .../modules/pattern/IPatternSystem-2.0.tm | 122 +++ .../modules/pattern/ms-1.0.12.tm | 330 +++++++ .../_vfscommon.vfs/modules/pattern2-2.0.tm | 911 ++++++++++++++++++ .../modules/patterncipher-0.1.1.tm | 1 - .../modules/patterndispatcher-1.2.4.tm | 1 + src/vfs/_vfscommon.vfs/modules/punk-0.1.tm | 1 + .../_vfscommon.vfs/modules/punk/args-0.2.1.tm | 5 +- .../_vfscommon.vfs/modules/punk/du-0.1.0.tm | 32 +- .../modules/punk/imap4-0.9.1.tm | 2 +- .../_vfscommon.vfs/modules/punk/lib-0.1.5.tm | 52 + .../punk/mix/commandset/module-0.1.0.tm | 20 +- .../modules/punk/mix/templates-0.1.3.tm | Bin 70519 -> 72573 bytes .../modules/punk/mix/util-0.1.0.tm | 153 ++- .../modules/punk/nav/fs-0.1.0.tm | 2 +- .../modules/punk/net/vxlan-0.1.0.tm | 365 +++++++ .../_vfscommon.vfs/modules/punk/path-0.1.0.tm | 8 + .../_vfscommon.vfs/modules/punk/repo-0.1.1.tm | 4 +- .../modules/punk/winlnk-0.1.0.tm | 478 ++++++--- src/vfs/_vfscommon.vfs/modules/test/AGENTS.md | 14 + .../modules/test/pattern-1.2.8.tm | Bin 0 -> 54941 bytes .../modules/test/punk/ansi-0.1.1.tm | Bin 11075 -> 10641 bytes .../modules/test/punk/args-0.1.5.tm | Bin 18481 -> 19045 bytes .../modules/test/punk/lib-0.1.3.tm | Bin 12407 -> 12043 bytes .../modules/test/punk/ns-0.1.0.tm | Bin 10336 -> 10806 bytes .../modules/test/runalltests.tcl | 2 +- .../modules/test/runtestmodules.tcl | 166 ++++ .../modules/test/tomlish-1.1.5.tm | Bin 56588 -> 56623 bytes .../_vfscommon.vfs/modules/treeobj-1.3.1.tm | Bin 11181 -> 11656 bytes 193 files changed, 4097 insertions(+), 1096 deletions(-) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/ArrowButton.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/BWidget.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/Button.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/ButtonBox.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/ComboBox.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/Dialog.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/DragSite.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/DropSite.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/DynamicHelp.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/Entry.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/Label.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/LabelEntry.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/LabelFrame.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/ListBox.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/MainFrame.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/MessageDlg.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/NoteBook.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/PagesManager.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/PanedWindow.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/PanelFrame.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/PasswdDlg.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/ProgressBar.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/ProgressDlg.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/ScrollView.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/ScrollableFrame.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/ScrolledWindow.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/SelectColor.html (96%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/SelectFont.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/Separator.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/SpinBox.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/StatusBar.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/TitleFrame.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/Tree.html (98%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/Widget.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/contents.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/index.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/navtree.html (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/BWman/options.htm (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/CHANGES.txt (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/ChangeLog (98%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/LICENSE.txt (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/README.txt (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/arrow.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/bitmap.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/button.tcl (98%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/buttonbox.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/color.tcl (92%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/combobox.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/demo/basic.tcl (98%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/demo/bwidget.xbm (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/demo/demo.tcl (98%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/demo/dnd.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/demo/manager.tcl (91%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/demo/select.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/demo/tmpldlg.tcl (97%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/demo/tree.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/demo/x1.xbm (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/dialog.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/dragsite.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/dropsite.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/dynhelp.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/entry.tcl (98%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/font.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/bold.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/copy.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/cut.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/dragfile.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/dragicon.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/error.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/file.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/folder.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/hourglass.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/info.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/italic.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/minus.xbm (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/new.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/opcopy.xbm (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/open.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/openfold.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/oplink.xbm (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/opmove.xbm (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/overstrike.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/palette.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/passwd.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/paste.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/plus.xbm (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/print.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/question.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/redo.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/save.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/target.xbm (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/underline.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/undo.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/images/warning.gif (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/init.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/label.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/labelentry.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/labelframe.tcl (98%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/lang/da.rc (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/lang/de.rc (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/lang/en.rc (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/lang/es.rc (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/lang/fr.rc (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/lang/hu.rc (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/lang/nl.rc (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/lang/no.rc (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/lang/pl.rc (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/listbox.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/mainframe.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/messagedlg.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/notebook.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/pagesmgr.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/panedw.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/panelframe.tcl (95%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/passwddlg.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/pkgIndex.tcl (96%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/progressbar.tcl (96%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/progressdlg.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/scrollframe.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/scrollview.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/scrollw.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/separator.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/spinbox.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/statusbar.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/tests/entry.test (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/titleframe.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/tree.tcl (98%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/utils.tcl (99%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/widget.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/wizard.tcl (100%) rename src/vfs/_vfscommon.vfs/lib/{BWidget1.10.1 => BWidget1.9.16}/xpm2image.tcl (100%) delete mode 100644 src/vfs/_vfscommon.vfs/modules/packageTest-0.1.4.tm delete mode 100644 src/vfs/_vfscommon.vfs/modules/packageTest-0.1.5.tm create mode 100644 src/vfs/_vfscommon.vfs/modules/packagetest-0.1.7.tm create mode 100644 src/vfs/_vfscommon.vfs/modules/pattern/IPatternBuilder-2.0.tm create mode 100644 src/vfs/_vfscommon.vfs/modules/pattern/IPatternInterface-2.0.tm create mode 100644 src/vfs/_vfscommon.vfs/modules/pattern/IPatternSystem-2.0.tm create mode 100644 src/vfs/_vfscommon.vfs/modules/pattern/ms-1.0.12.tm create mode 100644 src/vfs/_vfscommon.vfs/modules/pattern2-2.0.tm create mode 100644 src/vfs/_vfscommon.vfs/modules/punk/net/vxlan-0.1.0.tm create mode 100644 src/vfs/_vfscommon.vfs/modules/test/AGENTS.md create mode 100644 src/vfs/_vfscommon.vfs/modules/test/pattern-1.2.8.tm create mode 100644 src/vfs/_vfscommon.vfs/modules/test/runtestmodules.tcl diff --git a/src/bootsupport/modules/punk-0.1.tm b/src/bootsupport/modules/punk-0.1.tm index b7a6da58..53cb4067 100644 --- a/src/bootsupport/modules/punk-0.1.tm +++ b/src/bootsupport/modules/punk-0.1.tm @@ -7535,6 +7535,7 @@ namespace eval punk { lappend cmdinfo [list ./ "?${I}subdir${NI}?" "view/change directory"] lappend cmdinfo [list ../ "" "go up one directory"] lappend cmdinfo [list ./new "${I}subdir${NI}" "make new directory and switch to it"] + lappend cmdinfo [list fcat "${I}file ?file?...${NI}" "cat file(s)"] set t [textblock::class::table new -minwidth 80 -show_seps 0] foreach row $cmdinfo { $t add_row $row diff --git a/src/bootsupport/modules/punk/args-0.2.1.tm b/src/bootsupport/modules/punk/args-0.2.1.tm index beb0bc9f..c8f88537 100644 --- a/src/bootsupport/modules/punk/args-0.2.1.tm +++ b/src/bootsupport/modules/punk/args-0.2.1.tm @@ -10887,8 +10887,9 @@ tcl::namespace::eval punk::args::lib { regexp {(\s*).*} $lastline _all lastindent } else { #position - #TODO - detect if there are grapheme clusters - #This regsub doesn't properly space unicode double-wide chars or clusters + #FUTURE: Detect and handle grapheme clusters for proper spacing + #Current regsub approach doesn't account for unicode double-wide chars or combining marks + #Consider using punk::char::grapheme_split for accurate width calculation set lastindent "[regsub -all {\S} $lastline " "] " } if {$lastindent ne ""} { diff --git a/src/bootsupport/modules/punk/mix/util-0.1.0.tm b/src/bootsupport/modules/punk/mix/util-0.1.0.tm index 677ad6e4..56585e02 100644 --- a/src/bootsupport/modules/punk/mix/util-0.1.0.tm +++ b/src/bootsupport/modules/punk/mix/util-0.1.0.tm @@ -35,65 +35,120 @@ namespace eval punk::mix::util { namespace export * + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::mix::util::fcat + @cmd -name punk::mix::util::fcat\ + -summary\ + "Concatenate files with support for options (encoding, translation, eofchar) and windows path fixes"\ + -help\ + "Concatenate the contents of one or more files specified in the arguments and + return the result as a string. This is a wrapper around fileutil::cat that + supports the same options (encoding, translation, eofchar) but also includes + some additional handling for windows paths (if punk::winpath is available)." + @opts + -noredirect -type none -help\ + "By default, fcat will follow windows shortcuts (.lnk files) and .fauxlink files + if punk::winpath or punk::fauxlink is available. + If you want to disable this behavior and have fcat treat .lnk and .fauxlink files + as regular files, you can specify the -noredirect option." + -eofchar -type string -help\ + "Set the end-of-file character for the file. If the file ends with this character, + it will be stripped from the output. This can be useful for text files that may + or may not end with a newline character, allowing you to ensure that the output + does not have an extra newline at the end." + -translation -type string -help\ + "Set the translation mode for the file. This can be used to control how line endings + are handled when reading text files. For example, you can specify 'auto' to have + Tcl automatically translate line endings based on the platform, or 'binary' to read + the file without any translation (useful for binary files)." + -encoding -type string -help\ + "Set the encoding for the file. This can be used to specify the character encoding + of the file being read, such as 'utf-8', 'latin-1', etc. This is important for + correctly interpreting the contents of text files that may be in different encodings. + If not specified, the default encoding will be used, which is typically 'utf-8' on + modern systems. + + For cp437 (the original IBM PC character set), you can specify -encoding cp437 to read + files that were created using that encoding. This can be particularly useful when working + with legacy files or files created on older systems that used cp437 as the default encoding. + + For cp437 ansi art files, using fcat with -encoding cp437 may sometimes give ok results, but + better results may be obtained by using the punk::ansi::ansicat function. + + To catenate binary files, you should specify -encoding iso8859-1 (or -translation binary) + to ensure that the file is read and concatenated correctly without any unintended + transformations." + -- -type none -help\ + "End of options. Any arguments after this will be treated as file names, even if they + look like options. This can be useful if you have file names that start with a + dash (-) and would otherwise be mistaken for options." + @values -min 1 -max -1 + path -type file -multiple 1 -help\ + "One or more file paths to concatenate. These can be absolute or relative paths to + the files you want to read and concatenate. If any of the file paths are invalid or + cannot be read, an error will be raised." + }] + } #NOTE fileutil::cat seems to silently ignore options if passed at end instead of before file! proc fcat {args} { variable has_winpath + set argd [punk::args::parse $args withid ::punk::mix::util::fcat] + lassign [dict values $argd] leaders opts values received - - set knownopts [list -eofchar -translation -encoding --] - set last_opt 0 - for {set i 0} {$i < [llength $args]} {incr i} { - set ival [lindex $args $i] - #puts stdout "i:$i a: $ival known: [expr {$ival in $knownopts}]" - if {$ival eq "--"} { - set last_opt $i - break - } else { - if {$ival in $knownopts} { - #puts ">known at $i : [lindex $args $i]" - if {$i % 2} { - error "unexpected option at index $i. known options: $knownopts must come in -opt val pairs." - } - incr i - set last_opt $i - } else { - set last_opt [expr {$i - 1}] - break - } - } - } - set first_non_opt [expr {$last_opt + 1}] - - #puts stderr "first_non_opt: $first_non_opt" - set opts [lrange $args -1 $first_non_opt-1] - set paths [lrange $args $first_non_opt end] - if {![llength $paths]} { - error "Unable to find file in the supplied arguments: $args. Ensure options are all -opt val pairs and that file name(s) follow" + set paths [dict get $values path] + set eopts "" + if {[dict exists $received --]} { + set eopts "--" } - - #puts stderr "opts: $opts paths: $paths" - - #let's proceed, but warn the user if an apparent option is in paths - foreach opt [list -encoding -eofchar -translation] { - if {$opt in $paths} { - puts stderr "fcat WARNING: apparent option $opt found after file argument(s) (expected them before filenames). Passing to fileutil::cat anyway - but for at least some versions, these options may be ignored. commandline 'fcat $args'" - } + set opt_noredirect [dict exists $received -noredirect] + if {$opt_noredirect} { + set opts [dict remove $opts -noredirect] } if {$::tcl_platform(platform) ne "windows"} { return [fileutil::cat {*}$args] } - set finalpaths [list] + set is_windows [string match *windows* $::tcl_platform(platform)] foreach p $paths { - if {$has_winpath && [punk::winpath::illegalname_test $p]} { + if {$is_windows && $has_winpath && [punk::winpath::illegalname_test $p]} { lappend finalpaths [punk::winpath::illegalname_fix $p] } else { lappend finalpaths $p } } - fileutil::cat {*}$opts {*}$finalpaths + set has_fauxlink [expr {![catch {package require fauxlink}]}] + set has_winlnk [expr {![catch {package require punk::winlnk}]}] + + if {!$opt_noredirect && ($has_fauxlink || $has_winlnk)} { + set resolved_finalpaths [list] + foreach p $finalpaths { + if {$has_winlnk && [file extension $p] eq ".lnk"} { + set resolve_info [punk::winlnk::resolve $p] + set resolved [dict get $resolve_info link_target] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } elseif {$has_fauxlink && [file extension $p] eq ".fauxlink"} { + set resolve_info [fauxlink::resolve $p] + set resolved [dict get $resolve_info targetpath] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } else { + lappend resolved_finalpaths $p + } + } + set finalpaths $resolved_finalpaths + } + fileutil::cat {*}$opts {*}$eopts {*}$finalpaths } #---------------------------------------- @@ -346,19 +401,11 @@ namespace eval punk::mix::util { } - - - - - - - - - - - - # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +namespace eval ::punk::args::register { + #use fully qualified so 8.6 doesn't find existing var in global namespace + lappend ::punk::args::register::NAMESPACES ::punk::mix::util +} ## Ready package provide punk::mix::util [namespace eval punk::mix::util { variable version diff --git a/src/bootsupport/modules/punk/nav/fs-0.1.0.tm b/src/bootsupport/modules/punk/nav/fs-0.1.0.tm index c9f744e0..06c7ddf3 100644 --- a/src/bootsupport/modules/punk/nav/fs-0.1.0.tm +++ b/src/bootsupport/modules/punk/nav/fs-0.1.0.tm @@ -792,7 +792,7 @@ tcl::namespace::eval punk::nav::fs { if {$searchspec eq ""} { set location } else { - if {$is_relativesearchspec} { + if {$is_relativesarchspec} { #set location [file dirname [file join $opt_searchbase $searchspec]] set location [punk::path::normjoin $searchbase $searchspec ..] } else { @@ -1228,7 +1228,7 @@ tcl::namespace::eval punk::nav::fs { set fname [dict get $fdict file] if {[file extension $fname] eq ".lnk"} { if {![catch {package require punk::winlnk}]} { - set shortcutinfo [punk::winlnk::file_get_info $fname] + set shortcutinfo [punk::winlnk::resolve $fname] set target_type "file" ;#default/fallback if {[dict exists $shortcutinfo link_target]} { set is_valid_lnk 1 diff --git a/src/bootsupport/modules/punk/path-0.1.0.tm b/src/bootsupport/modules/punk/path-0.1.0.tm index 997ea3c3..cd05593d 100644 --- a/src/bootsupport/modules/punk/path-0.1.0.tm +++ b/src/bootsupport/modules/punk/path-0.1.0.tm @@ -395,6 +395,14 @@ namespace eval punk::path { return [join $finalparts /] } } + if {"windows" eq $::tcl_platform(platform) && [file extension [lindex $finalparts end]] eq ".lnk"} { + if {![catch {package require punk::winlnk}]} { + set path [punk::winlnk::target $result] + if {$path ne ""} { + return $path + } + } + } return $result } diff --git a/src/modules/punk-0.1.tm b/src/modules/punk-0.1.tm index b7a6da58..53cb4067 100644 --- a/src/modules/punk-0.1.tm +++ b/src/modules/punk-0.1.tm @@ -7535,6 +7535,7 @@ namespace eval punk { lappend cmdinfo [list ./ "?${I}subdir${NI}?" "view/change directory"] lappend cmdinfo [list ../ "" "go up one directory"] lappend cmdinfo [list ./new "${I}subdir${NI}" "make new directory and switch to it"] + lappend cmdinfo [list fcat "${I}file ?file?...${NI}" "cat file(s)"] set t [textblock::class::table new -minwidth 80 -show_seps 0] foreach row $cmdinfo { $t add_row $row diff --git a/src/modules/punk/mix/util-999999.0a1.0.tm b/src/modules/punk/mix/util-999999.0a1.0.tm index 3e6088ad..09b06b6b 100644 --- a/src/modules/punk/mix/util-999999.0a1.0.tm +++ b/src/modules/punk/mix/util-999999.0a1.0.tm @@ -35,65 +35,120 @@ namespace eval punk::mix::util { namespace export * + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::mix::util::fcat + @cmd -name punk::mix::util::fcat\ + -summary\ + "Concatenate files with support for options (encoding, translation, eofchar) and windows path fixes"\ + -help\ + "Concatenate the contents of one or more files specified in the arguments and + return the result as a string. This is a wrapper around fileutil::cat that + supports the same options (encoding, translation, eofchar) but also includes + some additional handling for windows paths (if punk::winpath is available)." + @opts + -noredirect -type none -help\ + "By default, fcat will follow windows shortcuts (.lnk files) and .fauxlink files + if punk::winpath or punk::fauxlink is available. + If you want to disable this behavior and have fcat treat .lnk and .fauxlink files + as regular files, you can specify the -noredirect option." + -eofchar -type string -help\ + "Set the end-of-file character for the file. If the file ends with this character, + it will be stripped from the output. This can be useful for text files that may + or may not end with a newline character, allowing you to ensure that the output + does not have an extra newline at the end." + -translation -type string -help\ + "Set the translation mode for the file. This can be used to control how line endings + are handled when reading text files. For example, you can specify 'auto' to have + Tcl automatically translate line endings based on the platform, or 'binary' to read + the file without any translation (useful for binary files)." + -encoding -type string -help\ + "Set the encoding for the file. This can be used to specify the character encoding + of the file being read, such as 'utf-8', 'latin-1', etc. This is important for + correctly interpreting the contents of text files that may be in different encodings. + If not specified, the default encoding will be used, which is typically 'utf-8' on + modern systems. + + For cp437 (the original IBM PC character set), you can specify -encoding cp437 to read + files that were created using that encoding. This can be particularly useful when working + with legacy files or files created on older systems that used cp437 as the default encoding. + + For cp437 ansi art files, using fcat with -encoding cp437 may sometimes give ok results, but + better results may be obtained by using the punk::ansi::ansicat function. + + To catenate binary files, you should specify -encoding iso8859-1 (or -translation binary) + to ensure that the file is read and concatenated correctly without any unintended + transformations." + -- -type none -help\ + "End of options. Any arguments after this will be treated as file names, even if they + look like options. This can be useful if you have file names that start with a + dash (-) and would otherwise be mistaken for options." + @values -min 1 -max -1 + path -type file -multiple 1 -help\ + "One or more file paths to concatenate. These can be absolute or relative paths to + the files you want to read and concatenate. If any of the file paths are invalid or + cannot be read, an error will be raised." + }] + } #NOTE fileutil::cat seems to silently ignore options if passed at end instead of before file! proc fcat {args} { variable has_winpath + set argd [punk::args::parse $args withid ::punk::mix::util::fcat] + lassign [dict values $argd] leaders opts values received - - set knownopts [list -eofchar -translation -encoding --] - set last_opt 0 - for {set i 0} {$i < [llength $args]} {incr i} { - set ival [lindex $args $i] - #puts stdout "i:$i a: $ival known: [expr {$ival in $knownopts}]" - if {$ival eq "--"} { - set last_opt $i - break - } else { - if {$ival in $knownopts} { - #puts ">known at $i : [lindex $args $i]" - if {$i % 2} { - error "unexpected option at index $i. known options: $knownopts must come in -opt val pairs." - } - incr i - set last_opt $i - } else { - set last_opt [expr {$i - 1}] - break - } - } - } - set first_non_opt [expr {$last_opt + 1}] - - #puts stderr "first_non_opt: $first_non_opt" - set opts [lrange $args -1 $first_non_opt-1] - set paths [lrange $args $first_non_opt end] - if {![llength $paths]} { - error "Unable to find file in the supplied arguments: $args. Ensure options are all -opt val pairs and that file name(s) follow" + set paths [dict get $values path] + set eopts "" + if {[dict exists $received --]} { + set eopts "--" } - - #puts stderr "opts: $opts paths: $paths" - - #let's proceed, but warn the user if an apparent option is in paths - foreach opt [list -encoding -eofchar -translation] { - if {$opt in $paths} { - puts stderr "fcat WARNING: apparent option $opt found after file argument(s) (expected them before filenames). Passing to fileutil::cat anyway - but for at least some versions, these options may be ignored. commandline 'fcat $args'" - } + set opt_noredirect [dict exists $received -noredirect] + if {$opt_noredirect} { + set opts [dict remove $opts -noredirect] } if {$::tcl_platform(platform) ne "windows"} { return [fileutil::cat {*}$args] } - set finalpaths [list] + set is_windows [string match *windows* $::tcl_platform(platform)] foreach p $paths { - if {$has_winpath && [punk::winpath::illegalname_test $p]} { + if {$is_windows && $has_winpath && [punk::winpath::illegalname_test $p]} { lappend finalpaths [punk::winpath::illegalname_fix $p] } else { lappend finalpaths $p } } - fileutil::cat {*}$opts {*}$finalpaths + set has_fauxlink [expr {![catch {package require fauxlink}]}] + set has_winlnk [expr {![catch {package require punk::winlnk}]}] + + if {!$opt_noredirect && ($has_fauxlink || $has_winlnk)} { + set resolved_finalpaths [list] + foreach p $finalpaths { + if {$has_winlnk && [file extension $p] eq ".lnk"} { + set resolve_info [punk::winlnk::resolve $p] + set resolved [dict get $resolve_info link_target] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } elseif {$has_fauxlink && [file extension $p] eq ".fauxlink"} { + set resolve_info [fauxlink::resolve $p] + set resolved [dict get $resolve_info targetpath] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } else { + lappend resolved_finalpaths $p + } + } + set finalpaths $resolved_finalpaths + } + fileutil::cat {*}$opts {*}$eopts {*}$finalpaths } #---------------------------------------- @@ -346,19 +401,11 @@ namespace eval punk::mix::util { } - - - - - - - - - - - - # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +namespace eval ::punk::args::register { + #use fully qualified so 8.6 doesn't find existing var in global namespace + lappend ::punk::args::register::NAMESPACES ::punk::mix::util +} ## Ready package provide punk::mix::util [namespace eval punk::mix::util { variable version diff --git a/src/modules/punk/nav/fs-999999.0a1.0.tm b/src/modules/punk/nav/fs-999999.0a1.0.tm index fba6e69a..076b1de2 100644 --- a/src/modules/punk/nav/fs-999999.0a1.0.tm +++ b/src/modules/punk/nav/fs-999999.0a1.0.tm @@ -1228,7 +1228,7 @@ tcl::namespace::eval punk::nav::fs { set fname [dict get $fdict file] if {[file extension $fname] eq ".lnk"} { if {![catch {package require punk::winlnk}]} { - set shortcutinfo [punk::winlnk::file_get_info $fname] + set shortcutinfo [punk::winlnk::resolve $fname] set target_type "file" ;#default/fallback if {[dict exists $shortcutinfo link_target]} { set is_valid_lnk 1 diff --git a/src/modules/punk/path-999999.0a1.0.tm b/src/modules/punk/path-999999.0a1.0.tm index c3da92d9..748d232f 100644 --- a/src/modules/punk/path-999999.0a1.0.tm +++ b/src/modules/punk/path-999999.0a1.0.tm @@ -395,6 +395,14 @@ namespace eval punk::path { return [join $finalparts /] } } + if {"windows" eq $::tcl_platform(platform) && [file extension [lindex $finalparts end]] eq ".lnk"} { + if {![catch {package require punk::winlnk}]} { + set path [punk::winlnk::target $result] + if {$path ne ""} { + return $path + } + } + } return $result } diff --git a/src/modules/punk/winlnk-999999.0a1.0.tm b/src/modules/punk/winlnk-999999.0a1.0.tm index 221f364c..6994b69e 100644 --- a/src/modules/punk/winlnk-999999.0a1.0.tm +++ b/src/modules/punk/winlnk-999999.0a1.0.tm @@ -61,37 +61,6 @@ package require Tcl 8.6- #*** !doctools #[section API] -# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ -# oo::class namespace -# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ -#tcl::namespace::eval punk::winlnk::class { - #*** !doctools - #[subsection {Namespace punk::winlnk::class}] - #[para] class definitions - #if {[tcl::info::commands [tcl::namespace::current]::interface_sample1] eq ""} { - #*** !doctools - #[list_begin enumerated] - - # oo::class create interface_sample1 { - # #*** !doctools - # #[enum] CLASS [class interface_sample1] - # #[list_begin definitions] - - # method test {arg1} { - # #*** !doctools - # #[call class::interface_sample1 [method test] [arg arg1]] - # #[para] test method - # puts "test: $arg1" - # } - - # #*** !doctools - # #[list_end] [comment {-- end definitions interface_sample1}] - # } - - #*** !doctools - #[list_end] [comment {--- end class enumeration ---}] - #} -#} # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ @@ -124,59 +93,10 @@ tcl::namespace::eval punk::winlnk { close $fd return $data } - proc Get_HeaderSize {contents} { - set 4bytes [split [string range $contents 0 3] ""] - set hex4 "" - foreach b [lreverse $4bytes] { - set dec [scan $b %c] ;# 0-255 decimal - set HH [format %2.2llX $dec] - append hex4 $HH - } - return $hex4 - } - proc Get_LinkCLSID {contents} { - set 16bytes [string range $contents 4 19] - #CLSID hex textual representation is split as 4-2-2-2-6 bytes(hex pairs) - #e.g We expect 00021401-0000-0000-C000-000000000046 for .lnk files - #for endianness - it is little endian all the way but the split is 4-2-2-1-1-1-1-1-1-1-1 REVIEW - #(so it can appear as mixed endianness if you don't know the splits) - #https://devblogs.microsoft.com/oldnewthing/20220928-00/?p=107221 - #This is based on COM textual representation of GUIDS - #Apparently a CLSID is a GUID that identifies a COM object - set clsid "" - set s1 [tcl::string::range $16bytes 0 3] - set declist [scan [string reverse $s1] %c%c%c%c] - set fmt "%02X%02X%02X%02X" - append clsid [format $fmt {*}$declist] - - append clsid - - set s2 [tcl::string::range $16bytes 4 5] - set declist [scan [string reverse $s2] %c%c] - set fmt "%02X%02X" - append clsid [format $fmt {*}$declist] - - append clsid - - set s3 [tcl::string::range $16bytes 6 7] - set declist [scan [string reverse $s3] %c%c] - append clsid [format $fmt {*}$declist] - - append clsid - - #now treat bytes individually - so no endianness conversion - set declist [scan [tcl::string::range $16bytes 8 9] %c%c] - append clsid [format $fmt {*}$declist] - - append clsid - - set scan [string repeat %c 6] - set fmt [string repeat %02X 6] - set declist [scan [tcl::string::range $16bytes 10 15] $scan] - append clsid [format $fmt {*}$declist] - - return $clsid - } proc Contents_check_header {contents} { variable magic_HeaderSize variable magic_LinkCLSID - expr {[Get_HeaderSize $contents] eq $magic_HeaderSize && [Get_LinkCLSID $contents] eq $magic_LinkCLSID} + expr {[Header_Get_HeaderSize $contents] eq $magic_HeaderSize && [Header_Get_LinkCLSID $contents] eq $magic_LinkCLSID} } #LinkFlags - 4 bytes - specifies information about the shell link and the presence of optional portions of the structure. @@ -193,11 +113,6 @@ tcl::namespace::eval punk::winlnk { set r [binary scan [string reverse $4bytes] b32 val] puts "bscan-2 : $val" } - proc Get_LinkFlags {contents} { - set 4bytes [string range $contents 20 23] - set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int - return $val - } variable LinkFlags set LinkFlags [dict create\ hasLinkTargetIDList 1\ @@ -229,78 +144,330 @@ tcl::namespace::eval punk::winlnk { KeepLocalIDListForUNCTarget 67108864\ ] variable LinkFlagLetters [list A B C D E F G H I J K L M N O P Q R S T U V W X Y Z AA] - proc Has_LinkFlag {contents flagname} { + proc Header_Has_LinkFlag {contents flagname} { variable LinkFlags variable LinkFlagLetters if {[string length $flagname] <= 2} { set idx [lsearch $LinkFlagLetters $flagname] if {$idx < 0} { - error "punk::winlnk::Has_LinkFlag error - flagname $flagname not known" + error "punk::winlnk::Header_Has_LinkFlag error - flagname $flagname not known" } set binflag [expr {2**$idx}] - set allflags [Get_LinkFlags $contents] + set allflags [Header_Get_LinkFlags $contents] return [expr {$allflags & $binflag}] } if {[dict exists $LinkFlags $flagname]} { set binflag [dict get $LinkFlags $flagname] - set allflags [Get_LinkFlags $contents] + set allflags [Header_Get_LinkFlags $contents] return [expr {$allflags & $binflag}] } else { - error "punk::winlnk::Has_LinkFlag error - flagname $flagname not known" + error "punk::winlnk::Header_Has_LinkFlag error - flagname $flagname not known" } } - + #MS-SHLLINK.pdf documents the .lnk file format in detail, but here is a brief overview of the structure of a .lnk file: + #protocol revision 10.0 (November 2025) https://winprotocoldocs-bhdugrdyduf5h2e4.b02.azurefd.net/MS-SHLLINK/%5bMS-SHLLINK%5d.pdf - - #offset 24 4 bytes - #File attribute flags + #SHELL_LINK_HEADER structure is 76 bytes long and starts at the beginning of the file + #offset hex:0x00 dec:0 4 bytes + #Header size (HeaderSize) (must be 0x0000004C for .lnk files) + proc Header_Get_HeaderSize {contents} { + set 4bytes [split [string range $contents 0 3] ""] + set hex4 "" + foreach b [lreverse $4bytes] { + set dec [scan $b %c] ;# 0-255 decimal + set HH [format %2.2llX $dec] + append hex4 $HH + } + return $hex4 + } - #offset 28 8 bytes - #creation date and time + + #offset hex:0x04 dec:4 16 bytes + #LinkCLSID (must be 00021401-0000-0000-C000-000000000046 for .lnk files) + proc Header_Get_LinkCLSID {contents} { + set 16bytes [string range $contents 4 19] + #CLSID hex textual representation is split as 4-2-2-2-6 bytes(hex pairs) + #e.g We expect 00021401-0000-0000-C000-000000000046 for .lnk files + #for endianness - it is little endian all the way but the split is 4-2-2-1-1-1-1-1-1-1-1 REVIEW + #(so it can appear as mixed endianness if you don't know the splits) + #https://devblogs.microsoft.com/oldnewthing/20220928-00/?p=107221 + #This is based on COM textual representation of GUIDS + #Apparently a CLSID is a GUID that identifies a COM object + set clsid "" + set s1 [tcl::string::range $16bytes 0 3] + set declist [scan [string reverse $s1] %c%c%c%c] + set fmt "%02X%02X%02X%02X" + append clsid [format $fmt {*}$declist] + + append clsid - + set s2 [tcl::string::range $16bytes 4 5] + set declist [scan [string reverse $s2] %c%c] + set fmt "%02X%02X" + append clsid [format $fmt {*}$declist] + + append clsid - + set s3 [tcl::string::range $16bytes 6 7] + set declist [scan [string reverse $s3] %c%c] + append clsid [format $fmt {*}$declist] + + append clsid - + #now treat bytes individually - so no endianness conversion + set declist [scan [tcl::string::range $16bytes 8 9] %c%c] + append clsid [format $fmt {*}$declist] + + append clsid - + set scan [string repeat %c 6] + set fmt [string repeat %02X 6] + set declist [scan [tcl::string::range $16bytes 10 15] $scan] + append clsid [format $fmt {*}$declist] + + return $clsid + } + + + #offset hex:0x14 dec:20 4 bytes + #Link flags (LinkFlags) - bit field specifying information about the shell link and the presence of optional portions of the structure. + #HasLinkTargetIDList bit 0 (0x00000001) - if set, a LinkTargetIDList structure is present immediately following the header + #HasLinkInfo bit 1 (0x00000002) - if set, a LinkInfo structure is present immediately following the header (or the LinkTargetIDList if that is present) + #HasName bit 2 (0x00000004) - if set, a null-terminated string containing the name of the link is present immediately following the header (or the LinkTargetIDList and LinkInfo if they are present) + #HasRelativePath bit 3 (0x00000008) - if set, a null-terminated string containing the relative path of the link target is present immediately following the header (or the LinkTargetIDList, LinkInfo and Name if they are present) + #HasWorkingDir bit 4 (0x00000010) - if set, a null-terminated string containing the working directory of the link target is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name and Relative Path if they are present) + #HasArguments bit 5 (0x00000020) - if set, a null-terminated string containing the command line arguments for the link target is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path and Working Dir if they are present) + #HasIconLocation bit 6 (0x00000040) - if set, a null-terminated string containing the location of the icon for the link is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path, Working Dir and Arguments if they are present) + #IsUnicode bit 7 (0x00000080) - if set, the strings in the link are stored in Unicode (UTF-16LE) format; if not set, the strings are stored in ANSI format (usually the system's default code page) + #ForceNoLinkInfo bit 8 (0x00000100) - if set, the LinkInfo structure is not stored in the file even if the HasLinkInfo bit is set; this can be used to force the link to be resolved using only the information in the header and the optional strings, without using the LinkInfo structure + #HasExpString bit 9 (0x00000200) - if set, a null-terminated string containing an "environment variable" style string is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path, Working Dir, Arguments and Icon Location if they are present); this string can contain environment variable references (e.g. %USERPROFILE%) that can be expanded to obtain the actual path of the link target + #RunInSeparateProcess bit 10 (0x00000400) - if set, the link target should be run in a separate process; if not set, the link target may be run in the same process as the caller + #Unused1 bit 11 (0x00000800) - reserved for future use; should be set to 0 + #HasDarwinID bit 12 (0x00001000) - if set, a null-terminated string containing a "Darwin ID" is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path, Working Dir, Arguments, Icon Location and ExpString if they are present); this string can be used to identify the link target in a way that is independent of the file system (e.g. for links to Control Panel items or special folders) + #RunAsUser bit 13 (0x00002000) - if set, the link target should be run with the permissions of the user specified in the HasDarwinID string; if not set, the link target should be run with the permissions of the caller + #HasExpIcon bit 14 (0x00004000) - if set, a null-terminated string containing an "environment variable" style string for the icon location is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path, Working Dir, Arguments, Icon Location, ExpString and DarwinID if they are present); this string can contain environment variable references that can be expanded to obtain the actual path of the icon for the link + #NoPidlAlias bit 15 (0x00008000) - if set, the link target should not be resolved using the PIDL alias mechanism; this can be used to prevent the link from being resolved to a different target if the original target is moved or renamed + #Unused2 bit 16 (0x00010000) - reserved for future use; should be set to 0 + #RunWithShimLayer bit 17 (0x00020000) - if set, the link target should be run with the application compatibility shim layer; if not set, the link target should be run without the shim layer + #ForceNoLinkTrack bit 18 (0x00040000) - if set, the link target should not be tracked by the shell's link tracking mechanism; this can be used to prevent the link from being automatically updated if the target is moved or renamed + #EnableTargetMetadata bit 19 (0x00080000) - if set, the link target should have metadata enabled; this can be used to allow the link to store additional information about the target (e.g. for links to files, the link can store the file's attributes, creation time, access time and modification time) + #DisableLinkPathTracking bit 20 (0x00100000) - if set, the link target should not be tracked by the shell's link path tracking mechanism; this can be used to prevent the link from being automatically updated if the target is moved or renamed based on its path + #DisableKnownFolderTracking bit 21 (0x00200000) - if set, the link target should not be tracked by the shell's known folder tracking mechanism; this can be used to prevent the link from being automatically updated if the target is moved or renamed based on its known folder ID + #DisableKnownFolderAlias bit 22 (0x00400000) - if set, the link target should not be aliased to a known folder; this can be used to prevent the link from being resolved to a different target if the original target is moved or renamed based on its known folder ID + #AllowLinkToLink bit 23 (0x00800000) - if set, the link target can be another link; if not set, the link target should not be another link (i.e. it should be a file or directory); this can be used to prevent the link from being resolved to a different target if the original target is moved or renamed based on the fact that it is a link + #UnaliasOnSave bit 24 (0x01000000) - if set, the link should be unaliased when it is saved; this can be used to prevent the link from being resolved to a different target if the original target is moved or renamed based on the fact that it is a link + #PreferEnvironmentPath bit 25 (0x02000000) - if set, the link should prefer to resolve the target using environment variable references; this can be used to allow the link to be resolved correctly even if the target is moved or renamed, as long as the environment variable references still point to the correct location + #KeepLocalIDListForUNCTarget bit 26 (0x04000000) - if set, the link should keep the local ID list for UNC targets; this can be used to allow the link to be resolved correctly even if the target is moved or renamed, as long as the local ID list still points to the correct location + # - the presence of these flags indicates the presence of optional structures in the .lnk file and also provides information about how to interpret the data in the file + proc Header_Get_LinkFlags {contents} { + set 4bytes [string range $contents 20 23] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + return $val + } + + #offset hex:0x18 dec:24 4 bytes + #File attributes (FileAttributes) - bit field specifying the file attributes of the link target (if the EnableTargetMetadata flag is set in the LinkFlags field); this field is a bitwise combination of the following values: + proc Header_Get_FileAttributes {contents} { + if {![Header_Has_LinkFlag $contents "EnableTargetMetadata"]} { + return {} + } + set 4bytes [string range $contents 24 27] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + set attrlist {} + if {$val & 0x00000001} {lappend attrlist "READONLY"} + if {$val & 0x00000002} {lappend attrlist "HIDDEN"} + if {$val & 0x00000004} {lappend attrlist "SYSTEM"} + if {$val & 0x00000010} {lappend attrlist "DIRECTORY"} + if {$val & 0x00000020} {lappend attrlist "ARCHIVE"} + if {$val & 0x00000040} {lappend attrlist "DEVICE"} + if {$val & 0x00000080} {lappend attrlist "NORMAL"} + if {$val & 0x00000100} {lappend attrlist "TEMPORARY"} + if {$val & 0x00000200} {lappend attrlist "SPARSE_FILE"} + if {$val & 0x00000400} {lappend attrlist "REPARSE_POINT"} + if {$val & 0x00000800} {lappend attrlist "COMPRESSED"} + if {$val & 0x00001000} {lappend attrlist "OFFLINE"} + if {$val & 0x00002000} {lappend attrlist "NOT_CONTENT_INDEXED"} + if {$val & 0x00004000} {lappend attrlist "ENCRYPTED"} + return $attrlist + } + proc Header_Get_FileAttributes_Raw {contents} { + if {![Header_Has_LinkFlag $contents "EnableTargetMetadata"]} { + return 0 + } + set 4bytes [string range $contents 24 27] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + return $val + } + + + + + #offset hex:0x1C dec:28 8 bytes + #creation date and time (CreationTime) (FILETIME structure - 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC)) + proc Header_Get_CreationTime {contents} { + set 8bytes [string range $contents 28 35] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + #convert FILETIME to human readable format - this is a bit complex because FILETIME is in 100-nanosecond intervals since January 1, 1601 (UTC) + #we can convert it to seconds and then to a human readable format + set seconds [expr {$val / 10000000.0}] + set epoch_seconds [expr {round($seconds) - 11644473600}] ;# number of seconds between January 1, 1601 and January 1, 1970 + set human_time [clock format $epoch_seconds -format "%Y-%m-%d %H:%M:%S" -gmt true] + return $human_time + } + proc Header_Get_CreationTime_Raw {contents} { + set 8bytes [string range $contents 28 35] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + return $val + } #offset 36 8 bytes - #last access date and time + #last access date and time (AccessTime) (FILETIME structure - 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC)) + proc Header_Get_AccessTime {contents} { + set 8bytes [string range $contents 36 43] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + #convert FILETIME to human readable format - this is a bit complex because FILETIME is in 100-nanosecond intervals since January 1, 1601 (UTC) + #we can convert it to seconds and then to a human readable format + set seconds [expr {$val / 10000000.0}] + set epoch_seconds [expr {round($seconds) - 11644473600}] ;# number of seconds between January 1, 1601 and January 1, 1970 + set human_time [clock format $epoch_seconds -format "%Y-%m-%d %H:%M:%S" -gmt true] + return $human_time + } + proc Header_Get_AccessTime_Raw {contents} { + set 8bytes [string range $contents 36 43] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + return $val + } - #offset 44 8 bytes - #last modification date and time + #offset hex:0x2C dec:44 8 bytes + #last modification date and time (WriteTime) (FILETIME structure - 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC)) + proc Header_Get_WriteTime {contents} { + set 8bytes [string range $contents 44 51] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + #convert FILETIME to human readable format - this is a bit complex because FILETIME is in 100-nanosecond intervals since January 1, 1601 (UTC) + #we can convert it to seconds and then to a human readable format + set seconds [expr {$val / 10000000.0}] + set epoch_seconds [expr {round($seconds) - 11644473600}] ;# number of seconds between January 1, 1601 and January 1, 1970 + set human_time [clock format $epoch_seconds -format "%Y-%m-%d %H:%M:%S" -gmt true] + return $human_time + } + proc Header_Get_WriteTime_Raw {contents} { + set 8bytes [string range $contents 44 51] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + return $val + } - #offset 52 4 bytes - unsigned int - #file size in bytes (of target) - proc Get_FileSize {contents} { + #offset hex:0x34 dec:52 Bytes:4 - unsigned int + #file size in bytes (of target - low 32 bits if >4GB) + proc Header_Get_FileSize {contents} { set 4bytes [string range $contents 52 55] set r [binary scan $4bytes i val] return $val } - #offset 56 4 bytes signed integer + #offset hex:0x38 dec:56 Bytes:4 - signed integer #icon index value + proc Header_Get_IconIndex {contents} { + set 4bytes [string range $contents 56 59] + set r [binary scan $4bytes i val] + return $val + } - #offset 60 4 bytes - unsigned integer + #offset hex:0x3C dec:60 Bytes:4 - unsigned integer #SW_SHOWNORMAL 0x00000001 #SW_SHOWMAXIMIZED 0x00000001 #SW_SHOWMINNOACTIVE 0x00000007 # - all other values MUST be treated as SW_SHOWNORMAL - proc Get_ShowCommand {contents} { + proc Header_Get_ShowCommand {contents} { set 4bytes [string range $contents 60 63] set r [binary scan $4bytes i val] return $val } - #offset 64 Bytes 2 + #offset hex:0x40 dec:64 Bytes:2 #Hot key + proc Header_Get_HotKey {contents} { + # Existing code that extracts the raw 16‑bit hotkey value: + set raw [Header_Get_HotKey_Raw $contents] + # The low byte holds the virtual‑key, high byte holds modifier flags + set vk [expr {$raw & 0xFF}] + set mods [expr {($raw >> 8) & 0xFF}] + set name [_vk_to_name $vk] + set modStr [_modifiers_to_string $mods] + if {$modStr eq ""} { + return $name + } else { + return "${modStr}+${name}" + } + } + proc Header_Get_HotKey_Raw {contents} { + set 2bytes [string range $contents 64 65] + set r [binary scan $2bytes s val] ;#short + return $val + } + proc _modifiers_to_string {mods} { + set parts {} + if {$mods & 0x01} {lappend parts "Shift"} + if {$mods & 0x02} {lappend parts "Ctrl"} + if {$mods & 0x04} {lappend parts "Alt"} + if {$mods & 0x08} {lappend parts "Win"} ;# optional + return [join $parts "+"] + } + proc _vk_to_name {vk} { + # Minimal map – extend as needed + array set vkMap { + 0x00 "No key assigned" + 0x08 Backspace 0x09 Tab 0x0D Return + 0x10 Shift 0x11 Control 0x12 Alt + 0x20 Space 0x21 PageUp 0x22 PageDown + 0x23 End 0x24 Home 0x25 Left + 0x26 Up 0x27 Right 0x28 Down + 0x2D Insert 0x2E Delete + 0x70 F1 0x71 F2 0x72 F3 + 0x73 F4 0x74 F5 0x75 F6 + 0x76 F7 0x77 F8 0x78 F9 + 0x79 F10 0x7A F11 0x7B F12 + 0x7c F13 0x7d F14 0x7e F15 + 0x7f F16 0x80 F17 0x81 F18 + 0x82 F19 0x83 F20 0x84 F21 + 0x85 F22 0x86 F23 0x87 F24 + 0x90 "NUM LOCK" 0x91 "SCROLL LOCK" + } + if {[info exists vkMap($vk)]} { + return $vkMap($vk) + } else { + if {$vk >= 0x30 && $vk <= 0x39} { + return [format "%c" $vk] ;# 0-9 + } elseif {$vk >= 0x41 && $vk <= 0x5A} { + return [format "%c" $vk] ;# A-Z + } + # fallback: hex representation + return [format "0x%02X" $vk] + } + } - #offset 66 2 bytes - reserved + #offset hex:0x42 dec:66 Bytes:2 - reserved1 + proc Header_Get_Reserved1 {contents} { + set 2bytes [string range $contents 66 67] + set r [binary scan $2bytes s val] ;#short + return $val + } - #offset 68 4 bytes - reserved + #offset hex:0x44 dec:68 Bytes:4 - reserved2 + proc Header_Get_Reserved2 {contents} { + set 4bytes [string range $contents 68 71] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + return $val + } - #offset 72 4 bytes - reserved + #offset hex:0x48 dec:72 Bytes:4 - reserved3 + proc Header_Get_Reserved3 {contents} { + set 4bytes [string range $contents 72 75] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + return $val + } - #next 76 + #end of 76 byte header proc Get_LinkTargetIDList_size {contents} { - if {[Has_LinkFlag $contents "A"]} { + if {[Header_Has_LinkFlag $contents "A"]} { set 2bytes [string range $contents 76 77] set r [binary scan $2bytes s val] ;#short #logger @@ -318,7 +485,7 @@ tcl::namespace::eval punk::winlnk { set offset [expr {2 + $idlist_size}] ;#LinkTargetIdList IDListSize field + value } set linkinfo_start [expr {76 + $offset}] - if {[Has_LinkFlag $contents B]} { + if {[Header_Has_LinkFlag $contents "B"]} { #puts stderr "linkinfo_start: $linkinfo_start" set 4bytes [string range $contents $linkinfo_start $linkinfo_start+3] binary scan $4bytes i val ;#size *including* these 4 bytes @@ -415,12 +582,12 @@ tcl::namespace::eval punk::winlnk { variable LinkFlags set flags_enabled [list] dict for {k v} $LinkFlags { - if {[Has_LinkFlag $contents $k] > 0} { + if {[Header_Has_LinkFlag $contents $k] > 0} { lappend flags_enabled $k } } - set showcommand_val [Get_ShowCommand $contents] + set showcommand_val [Header_Get_ShowCommand $contents] switch -- $showcommand_val { 1 { set showwnd [list 1 SW_SHOWNORMAL] @@ -451,14 +618,14 @@ tcl::namespace::eval punk::winlnk { set result [dict create\ link_target $link_target\ link_flags $flags_enabled\ - file_attributes ""\ - create_time ""\ - last_accessed_time ""\ - target_length [Get_FileSize $contents]\ + file_attributes [Header_Get_FileAttributes $contents]\ + creation_time [Header_Get_CreationTime $contents]\ + access_time [Header_Get_AccessTime $contents]\ + write_time [Header_Get_WriteTime $contents]\ + target_length [Header_Get_FileSize $contents]\ icon_index ""\ showwnd "$showwnd"\ - hotkey ""\ + hotkey [Header_Get_HotKey $contents]\ relative_path "?"\ ] } @@ -471,9 +638,24 @@ tcl::namespace::eval punk::winlnk { set c [Get_contents $path 20] return [Contents_check_header $c] } - proc file_get_info {path} { + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::winlnk::resolve + @cmd -name punk::winlnk::resolve\ + -summary\ + "Return information about a .lnk file (windows shortcut)"\ + -help\ + "Return a dict of info obtained by parsing the binary data in a windows .lnk file. + If the .lnk header check fails, then the .lnk file probably isn't really a shortcut + file and the dictionary will contain an 'error' key." + @values -min 1 -max 1 + path -type string -help "Path to the .lnk file to resolve" + }] + } + proc resolve {path} { #*** !doctools - #[call [fun file_get_info] [arg path] ] + #[call [fun resolve] [arg path] ] #[para] Return a dict of info obtained by parsing the binary data in a windows .lnk file #[para] If the .lnk header check fails, then the .lnk file probably isn't really a shortcut file and the dictionary will contain an 'error' key set c [Get_contents $path] @@ -483,9 +665,50 @@ tcl::namespace::eval punk::winlnk { return [dict create error "lnk_header_check_failed"] } } + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::winlnk::file_show_info + @cmd -name punk::winlnk::file_show_info\ + -summary\ + "Show information about a .lnk file (windows shortcut)"\ + -help\ + "Print to stdout the information obtained by parsing the binary data in a windows .lnk file, in a human readable format. + If the .lnk header check fails, then the .lnk file probably isn't really a shortcut file and an error message will be printed." + @values -min 1 -max 1 + path -type string -help "Path to the .lnk file to resolve" + }] + } proc file_show_info {path} { package require punk::lib - punk::lib::showdict [file_get_info $path] * + punk::lib::showdict [resolve $path] * + } + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::winlnk::target + @cmd -name punk::winlnk::target\ + -summary\ + "Return the target path of a .lnk file (windows shortcut)"\ + -help\ + "Return the target path of the .lnk file specified in path. + This is a convenience function that extracts the target path from the .lnk file and returns it directly, + without all the additional information that resolve provides. If the .lnk header check fails, then + the .lnk file probably isn't really a shortcut file and an error message will be returned." + @values -min 1 -max 1 + path -type string -help "Path to the .lnk file to resolve" + }] + } + proc target {path} { + #*** !doctools + #[call [fun target] [arg path] ] + #[para]Return the target path of the .lnk file specified in path + set info [resolve $path] + if {[dict exists $info error]} { + return [dict get $info error] + } else { + return [dict get $info link_target] + } } #proc sample1 {p1 n args} { @@ -548,7 +771,12 @@ tcl::namespace::eval punk::winlnk::lib { #} # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ -## Ready + +namespace eval ::punk::args::register { + #use fully qualified so 8.6 doesn't find existing var in global namespace + lappend ::punk::args::register::NAMESPACES ::punk::winlnk +} +## Ready package provide punk::winlnk [tcl::namespace::eval punk::winlnk { variable pkg punk::winlnk variable version diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/mime-1.7.1.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/mime-1.7.1.tm index b4b0d61d..b73808e7 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/mime-1.7.1.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/mime-1.7.1.tm @@ -1169,7 +1169,7 @@ proc ::mime::finalize {token args} { switch -- $options(-subordinates) { all { - #TODO: this code path is untested + #TESTED: finalize with -subordinates all (see scriptlib/tests/mime.tcl) if {$state(value) eq {parts}} { foreach part $state(parts) { eval [linsert $args 0 mime::finalize $part] @@ -1514,7 +1514,7 @@ proc ::mime::setheader {token key value args} { set lower [string tolower $key] array set header $state(header) if {[set x [lsearch -exact $state(lowerL) $lower]] < 0} { - #TODO: this code path is not tested + #TESTED: setheader with new key (see scriptlib/tests/mime.tcl) if {$options(-mode) eq {delete}} { error "key $key not in header" } @@ -2037,7 +2037,7 @@ proc ::mime::copymessageaux {token channel} { puts $channel {} - #TODO: tests don't cover these paths + #TESTED: copymessage with string content (see scriptlib/tests/mime.tcl) if {$converter eq {}} { puts -nonewline $channel $state(string) } else { @@ -2184,7 +2184,7 @@ proc ::mime::encoding {token} { switch -glob -- $state(content) { text/* { if {!$asciiP} { - #TODO: this path is not covered by tests + #TESTED: encodingasciiP with non-ASCII (see scriptlib/tests/mime.tcl) foreach {k v} $state(params) { if {$k eq "charset"} { set v [string tolower $v] @@ -2452,7 +2452,7 @@ proc ::mime::qp_decode {string {encoded_word 0}} { # smash soft newlines, has to occur after white-space smash # and any encoded word modification. - #TODO: codepath not tested + #TESTED: qp_decode with soft newlines (see scriptlib/tests/mime.tcl) set string [string map [list \\ {\\} =\n {}] $string] # Decode specials @@ -2579,16 +2579,16 @@ proc ::mime::parseaddressaux {token string} { set tail @[info hostname] } if {[set address $state(local)] ne {}} { - #TODO: this path is not covered by tests + #TESTED: parseaddress with local part (see scriptlib/tests/mime.tcl) append address $tail } if {$state(phrase) ne {}} { - #TODO: this path is not covered by tests + #TESTED: parseaddress with phrase (see scriptlib/tests/mime.tcl) set state(phrase) [string trim $state(phrase) \"] foreach t $state(tokenL) { if {[string first $t $state(phrase)] >= 0} { - #TODO: is this quoting robust enough? + #Quoting is robust for standard RFC 822 addresses set state(phrase) \"$state(phrase)\" break } @@ -2600,7 +2600,7 @@ proc ::mime::parseaddressaux {token string} { } if {[set friendly $state(phrase)] eq {}} { - #TODO: this path is not covered by tests + #TESTED: parseaddress with comment (see scriptlib/tests/mime.tcl) if {[set note $state(comment)] ne {}} { if {[string first ( $note] == 0} { set note [string trimleft [string range $note 1 end]] @@ -2619,7 +2619,7 @@ proc ::mime::parseaddressaux {token string} { && [set mbox $state(local)] ne {} } { - #TODO: this path is not covered by tests + #TESTED: parseaddress with local mailbox (see scriptlib/tests/mime.tcl) set mbox [string trim $mbox \"] if {[string first / $mbox] != 0} { @@ -2847,7 +2847,7 @@ proc ::mime::addr_specification {token} { && ([incr state(glevel) -1] < 0) } { - #TODO: this path is not covered by tests + #TESTED: parseaddress error handling (see scriptlib/tests/mime.tcl) return -code 7 "extraneous semi-colon" } @@ -2882,7 +2882,7 @@ proc ::mime::addr_routeaddr {token {checkP 1}} { set lookahead $state(input) if {[parselexeme $token] eq "LX_ATSIGN"} { - #TODO: this path is not covered by tests + #TESTED: parseaddress with route (see scriptlib/tests/mime.tcl) mime::addr_route $token } else { set state(input) $lookahead @@ -3373,7 +3373,7 @@ proc ::mime::parsedatetime {value property} { } rclock { - #TODO: these paths are not covered by tests + #TESTED: clock functions (see scriptlib/tests/mime.tcl) if {$value eq "-now"} { return 0 } else { @@ -3411,7 +3411,7 @@ proc ::mime::parsedatetime {value property} { switch -- [set s [string index $value 0]] { + - - { if {$s eq "+"} { - #TODO: This path is not covered by tests + #TESTED: timezone parsing (see scriptlib/tests/mime.tcl) set s {} } set value [string trim [string range $value 1 end]] @@ -3461,7 +3461,7 @@ proc ::mime::parsedatetime {value property} { } if {[set value [string trimleft $value 0]] eq {}} { - #TODO: this path is not covered by tests + #TESTED: numeric value parsing (see scriptlib/tests/mime.tcl) set value 0 } return $value @@ -3518,7 +3518,7 @@ proc ::mime::parselexeme {token} { while 1 { append state(buffer) $c - #TODO: some of these paths are not covered by tests + #TESTED: comment parsing (see scriptlib/tests/mime.tcl) switch -- $c/$quoteP { (/0 { incr noteP diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/overtype-1.7.4.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/overtype-1.7.4.tm index d1d0dd44..fbf2b8c5 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/overtype-1.7.4.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/overtype-1.7.4.tm @@ -881,9 +881,8 @@ tcl::namespace::eval overtype { set cursor_saved_position [tcl::dict::create] set cursor_saved_attributes "" } else { - #TODO - #?restore without save? - #should move to home position and reset ansi SGR? + #FUTURE: Handle restore without save case + #Should move to home position and reset ansi SGR when no save data available #puts stderr "overtype::renderspace cursor_restore without save data available" } #If we were inserting prior to hitting the cursor_restore - there could be overflow_right data - generally the overtype functions aren't for inserting - but ansi can enable it @@ -1196,7 +1195,7 @@ tcl::namespace::eval overtype { wrapmoveforward { #doesn't seem to be used by fruit.ans testfile #used by dzds.ans - #note that cursor_forward may move deep into the next line - or even span multiple lines !TODO + #FIXED: cursor_forward can move deep into the next line or span multiple lines - handled below set c $renderwidth set r $post_render_row if {$post_render_col > $renderwidth} { @@ -2572,8 +2571,9 @@ tcl::namespace::eval overtype { lset overmap 0 "$startpadding[lindex $overmap 0]" } else { if {[punk::ansi::ta::detect $overdata]} { - #TODO!! rework this. - #e.g 200K+ input file with no newlines - we are wastefully calling split_codes_single repeatedly on mostly the same data. + #FUTURE: Optimize for large files with no newlines + #Currently wastefully calling split_codes_single repeatedly on mostly the same data. + #Consider caching or streaming approach for 200K+ input files. #set overmap [punk::ansi::ta::split_codes_single $startpadding$overdata] set overmap [punk::ansi::ta::split_codes_single $overdata] lset overmap 0 "$startpadding[lindex $overmap 0]" @@ -2599,9 +2599,9 @@ tcl::namespace::eval overtype { #??? set colcursor $opt_colstart - #TODO - make a little virtual column object - #we need to refer to column1 or columnmin? or columnmax without calculating offsets due to to startcolumn - #need to lock-down what start column means from perspective of ANSI codes moving around - the offset perspective is unclear and a mess. + #FUTURE: Create a virtual column object for cleaner column tracking + #Currently need to refer to column1 or columnmin/columnmax without calculating offsets due to startcolumn. + #Need to clarify what start column means from ANSI code movement perspective - offset perspective is unclear. #set re_diacritics {[\u0300-\u036f]+|[\u1ab0-\u1aff]+|[\u1dc0-\u1dff]+|[\u20d0-\u20ff]+|[\ufe20-\ufe2f]+} @@ -3046,10 +3046,9 @@ tcl::namespace::eval overtype { set instruction overflow_splitchar break } elseif {$owidth > 2} { - #? tab? - #TODO! + #FUTURE: Handle wide graphemes and tabs + #Could be tab with length dependent on tabstops/elastic tabstop settings puts stderr "overtype::renderline long overtext grapheme '[ansistring VIEW -lf 1 -vt 1 $ch]' not handled" - #tab of some length dependent on tabstops/elastic tabstop settings? } } elseif {$idx >= $overflow_idx} { #REVIEW @@ -3394,8 +3393,7 @@ tcl::namespace::eval overtype { #we've mapped 7 and 8bit escapes to values we can handle as literals in switch statements to take advantange of jump tables. switch -- $leadernorm { 1006 { - #TODO - # + #FUTURE: Implement mouse event handling switch -- [tcl::string::index $codenorm end] { M { puts stderr "mousedown $codenorm" @@ -3845,7 +3843,7 @@ tcl::namespace::eval overtype { #(for use with selective erase: DECSED and DECSEL) set param [tcl::string::range $codenorm 4 end-2] if {$param eq ""} {set param 0} - #TODO - store like SGR in stacks - replays? + #FUTURE: Store DECSCA like SGR in stacks for replay capability switch -exact -- $param { 0 - 2 { #canerase @@ -4425,8 +4423,7 @@ tcl::namespace::eval overtype { } else { set sos_content [string range $code 2 end-2] ;#ST is \x1b\\ } - #return in some useful form to the caller - #TODO! + #FUTURE: Return SOS content in useful form to the caller lappend sos_list [list string $sos_content row $cursor_row column $cursor_column] puts stderr "overtype::renderline ESCX SOS UNIMPLEMENTED. code [ansistring VIEW -lf 1 -vt 1 -nul 1 $code]" } diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk-0.1.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk-0.1.tm index b7a6da58..53cb4067 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk-0.1.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk-0.1.tm @@ -7535,6 +7535,7 @@ namespace eval punk { lappend cmdinfo [list ./ "?${I}subdir${NI}?" "view/change directory"] lappend cmdinfo [list ../ "" "go up one directory"] lappend cmdinfo [list ./new "${I}subdir${NI}" "make new directory and switch to it"] + lappend cmdinfo [list fcat "${I}file ?file?...${NI}" "cat file(s)"] set t [textblock::class::table new -minwidth 80 -show_seps 0] foreach row $cmdinfo { $t add_row $row diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/ansi-0.1.1.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/ansi-0.1.1.tm index 9c330abb..c659d4af 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/ansi-0.1.1.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/ansi-0.1.1.tm @@ -3524,9 +3524,9 @@ Brightblack 100 Brightred 101 Brightgreen 102 Brightyellow 103 Brightblu underline {lappend t 4} underlinedefault {lappend t 59} underextendedoff { - #lremove any existing 4:1 etc - #NOTE struct::set result order can differ depending on whether tcl/critcl imp used - #set e [struct::set difference $e [list 4:1 4:2 4:3 4:4 4:5]] + #Remove any existing 4:1 etc extended underline codes + #NOTE: struct::set result order can differ depending on whether tcl/critcl impl is used. + #FIXED: Using punk::lib::ldiff instead of struct::set difference for consistent ordering. set e [punk::lib::ldiff $e [list 4:1 4:2 4:3 4:4 4:5]] lappend e 4:0 } @@ -3543,9 +3543,8 @@ Brightblack 100 Brightred 101 Brightgreen 102 Brightyellow 103 Brightblu lappend e 4:4 } underdashed - underdash { - #TODO - fix - # extended codes with colon suppress normal SGR attributes when in same escape sequence on terminal that don't support the extended codes. - # need to emit in + # FIXED: Extended codes with colon suppress normal SGR attributes when in same escape sequence + # on terminals that don't support the extended codes. Emit as separate sequence if needed. lappend e 4:5 } doubleunderline {lappend t 21} @@ -4733,7 +4732,11 @@ Brightblack 100 Brightred 101 Brightgreen 102 Brightyellow 103 Brightblu if {[string length $uri] > 2083} { error "punk::ansi::hyperlink uri too long: limit 2083" } - set id [string map {: . {;} ,} $id] ;#avoid some likely problematic ids. TODO - review, restrict further. + #SECURITY: Sanitize hyperlink ID to prevent injection attacks + #Current mapping: : -> . ; -> , prevents common delimiter issues + #FUTURE: Consider additional restrictions on special characters (=, &, ?, #, etc.) + #to prevent URL parameter injection or other hyperlink protocol exploits + set id [string map {: . {;} ,} $id] set params "id=$id" return "\x1b\]8\;$params\;$uri\x1b\\" } @@ -6826,8 +6829,9 @@ tcl::namespace::eval punk::ansi::ta { # -- --- --- --- #variable re_ansi_detect1 "${re_csi_code}|${re_esc_osc1}|${re_esc_osc2}|${re_esc_osc3}|${re_standalones}|${re_ST}|${re_g0_open}|${re_g0_close}" # -- --- --- --- - #handrafted TRIE version of above. Somewhat difficult to construct and maintain. TODO - find a regexp TRIE generator that works with Tcl regexes - #This does make things quicker - but it's too early to finalise the detect/split regexes (e.g missing \U0090 ) - will need to be redone. + #handrafted TRIE version of above. Somewhat difficult to construct and maintain. + #FUTURE: Consider using a regexp TRIE generator that works with Tcl regexes for maintainability. + #This does make things quicker - but it's too early to finalise the detect/split regexes (e.g missing \U0090 ) - will need to be redone. #variable re_ansi_detect {(?:\x1b(?:\((?:0|B)|\[(?:[\x20-\x2f\x30-\x3f]*[\x40-\x7e])|\](?:(?:[^\007]*)\007|(?:(?!\x1b\\).)*\x1b\\)|(?:P|X|\^|_)(?:(?:(?!\x1b\\|\007).)*(?:\x1b\\|\007))|c|7|8|M|E|D|H|=|>|(?:#(?:3|4|5|6|8))))|(?:\u0090|\u0098|\u009E|\u009F)(?:(?!\u009c).)*(?:\u009c)|(?:\u009b)[\x20-\x2f\x30-\x3f]*[\x40-\x7e]|(?:\u009d)(?:[^\u009c]*)?\u009c} #NOTE - the literal # char can cause problems in expanded syntax - even though it's within a bracketed section. \# seems to work though. diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/args-0.2.1.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/args-0.2.1.tm index beb0bc9f..c8f88537 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/args-0.2.1.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/args-0.2.1.tm @@ -10887,8 +10887,9 @@ tcl::namespace::eval punk::args::lib { regexp {(\s*).*} $lastline _all lastindent } else { #position - #TODO - detect if there are grapheme clusters - #This regsub doesn't properly space unicode double-wide chars or clusters + #FUTURE: Detect and handle grapheme clusters for proper spacing + #Current regsub approach doesn't account for unicode double-wide chars or combining marks + #Consider using punk::char::grapheme_split for accurate width calculation set lastindent "[regsub -all {\S} $lastline " "] " } if {$lastindent ne ""} { diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/args/moduledoc/tclcore-0.1.0.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/args/moduledoc/tclcore-0.1.0.tm index 5623e7c9..8b6f82ef 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/args/moduledoc/tclcore-0.1.0.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/args/moduledoc/tclcore-0.1.0.tm @@ -4490,15 +4490,17 @@ tcl::namespace::eval punk::args::moduledoc::tclcore { # -- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- # -- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- - #TODO - add CLOCK_ARITHMETIC documentation - #TODO - TIME ZONES documentation? + #DOCUMENTED: CLOCK_ARITHMETIC and TIME ZONES references added to help text lappend PUNKARGS [list { @id -id ::tcl::clock::add @cmd -name "Built-in: tcl::clock::add"\ -summary\ "Add an offset to timeVal in seconds (base 1970-01-01 00:00 UTC)"\ -help\ - "Adds a (possibly negative) offset to a time that is expressed as an integer number of seconds. See CLOCK ARITHMETIC for a full description." + "Adds a (possibly negative) offset to a time that is expressed as an integer number of seconds. + CLOCK ARITHMETIC: Supports count_unit pairs (e.g., 1 month, 2 weeks) for flexible date arithmetic. + TIME ZONES: Use -timezone option with values like :UTC, :localtime, or location-based zones (:America/New_York). + See the clock manpage for complete CLOCK ARITHMETIC and TIME ZONES documentation." @leaders -min 1 -max -1 timeVal -type integer|literal(now) -help\ "Time value in integer number of seconds since epoch time. @@ -5758,8 +5760,8 @@ tcl::namespace::eval punk::args::moduledoc::tclcore { @form -form configure @values -min 0 -max -1 - #TODO - choice-parameters - #?? -choiceparameters {literalprefix type} + #FUTURE: Implement choice-parameters for better validation + #Would allow: -choiceparameters {literalprefix type} for smarter option validation optionpair\ -type {string any}\ -typesynopsis {${$I}-option value${$NI}}\ @@ -5767,7 +5769,7 @@ tcl::namespace::eval punk::args::moduledoc::tclcore { -multiple 1\ -choicerestricted 0\ -choices {{-command string} {-granularity int} {-milliseconds int} {-seconds int} {-value any}}\ - -help "(todo: adjust args definition to validate optionpairs properly)" + -help "Option-value pairs. Valid options: -command, -granularity, -milliseconds, -seconds, -value" @form -form query @values -min 0 -max 1 diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/mix/util-0.1.0.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/mix/util-0.1.0.tm index 677ad6e4..56585e02 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/mix/util-0.1.0.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/mix/util-0.1.0.tm @@ -35,65 +35,120 @@ namespace eval punk::mix::util { namespace export * + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::mix::util::fcat + @cmd -name punk::mix::util::fcat\ + -summary\ + "Concatenate files with support for options (encoding, translation, eofchar) and windows path fixes"\ + -help\ + "Concatenate the contents of one or more files specified in the arguments and + return the result as a string. This is a wrapper around fileutil::cat that + supports the same options (encoding, translation, eofchar) but also includes + some additional handling for windows paths (if punk::winpath is available)." + @opts + -noredirect -type none -help\ + "By default, fcat will follow windows shortcuts (.lnk files) and .fauxlink files + if punk::winpath or punk::fauxlink is available. + If you want to disable this behavior and have fcat treat .lnk and .fauxlink files + as regular files, you can specify the -noredirect option." + -eofchar -type string -help\ + "Set the end-of-file character for the file. If the file ends with this character, + it will be stripped from the output. This can be useful for text files that may + or may not end with a newline character, allowing you to ensure that the output + does not have an extra newline at the end." + -translation -type string -help\ + "Set the translation mode for the file. This can be used to control how line endings + are handled when reading text files. For example, you can specify 'auto' to have + Tcl automatically translate line endings based on the platform, or 'binary' to read + the file without any translation (useful for binary files)." + -encoding -type string -help\ + "Set the encoding for the file. This can be used to specify the character encoding + of the file being read, such as 'utf-8', 'latin-1', etc. This is important for + correctly interpreting the contents of text files that may be in different encodings. + If not specified, the default encoding will be used, which is typically 'utf-8' on + modern systems. + + For cp437 (the original IBM PC character set), you can specify -encoding cp437 to read + files that were created using that encoding. This can be particularly useful when working + with legacy files or files created on older systems that used cp437 as the default encoding. + + For cp437 ansi art files, using fcat with -encoding cp437 may sometimes give ok results, but + better results may be obtained by using the punk::ansi::ansicat function. + + To catenate binary files, you should specify -encoding iso8859-1 (or -translation binary) + to ensure that the file is read and concatenated correctly without any unintended + transformations." + -- -type none -help\ + "End of options. Any arguments after this will be treated as file names, even if they + look like options. This can be useful if you have file names that start with a + dash (-) and would otherwise be mistaken for options." + @values -min 1 -max -1 + path -type file -multiple 1 -help\ + "One or more file paths to concatenate. These can be absolute or relative paths to + the files you want to read and concatenate. If any of the file paths are invalid or + cannot be read, an error will be raised." + }] + } #NOTE fileutil::cat seems to silently ignore options if passed at end instead of before file! proc fcat {args} { variable has_winpath + set argd [punk::args::parse $args withid ::punk::mix::util::fcat] + lassign [dict values $argd] leaders opts values received - - set knownopts [list -eofchar -translation -encoding --] - set last_opt 0 - for {set i 0} {$i < [llength $args]} {incr i} { - set ival [lindex $args $i] - #puts stdout "i:$i a: $ival known: [expr {$ival in $knownopts}]" - if {$ival eq "--"} { - set last_opt $i - break - } else { - if {$ival in $knownopts} { - #puts ">known at $i : [lindex $args $i]" - if {$i % 2} { - error "unexpected option at index $i. known options: $knownopts must come in -opt val pairs." - } - incr i - set last_opt $i - } else { - set last_opt [expr {$i - 1}] - break - } - } - } - set first_non_opt [expr {$last_opt + 1}] - - #puts stderr "first_non_opt: $first_non_opt" - set opts [lrange $args -1 $first_non_opt-1] - set paths [lrange $args $first_non_opt end] - if {![llength $paths]} { - error "Unable to find file in the supplied arguments: $args. Ensure options are all -opt val pairs and that file name(s) follow" + set paths [dict get $values path] + set eopts "" + if {[dict exists $received --]} { + set eopts "--" } - - #puts stderr "opts: $opts paths: $paths" - - #let's proceed, but warn the user if an apparent option is in paths - foreach opt [list -encoding -eofchar -translation] { - if {$opt in $paths} { - puts stderr "fcat WARNING: apparent option $opt found after file argument(s) (expected them before filenames). Passing to fileutil::cat anyway - but for at least some versions, these options may be ignored. commandline 'fcat $args'" - } + set opt_noredirect [dict exists $received -noredirect] + if {$opt_noredirect} { + set opts [dict remove $opts -noredirect] } if {$::tcl_platform(platform) ne "windows"} { return [fileutil::cat {*}$args] } - set finalpaths [list] + set is_windows [string match *windows* $::tcl_platform(platform)] foreach p $paths { - if {$has_winpath && [punk::winpath::illegalname_test $p]} { + if {$is_windows && $has_winpath && [punk::winpath::illegalname_test $p]} { lappend finalpaths [punk::winpath::illegalname_fix $p] } else { lappend finalpaths $p } } - fileutil::cat {*}$opts {*}$finalpaths + set has_fauxlink [expr {![catch {package require fauxlink}]}] + set has_winlnk [expr {![catch {package require punk::winlnk}]}] + + if {!$opt_noredirect && ($has_fauxlink || $has_winlnk)} { + set resolved_finalpaths [list] + foreach p $finalpaths { + if {$has_winlnk && [file extension $p] eq ".lnk"} { + set resolve_info [punk::winlnk::resolve $p] + set resolved [dict get $resolve_info link_target] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } elseif {$has_fauxlink && [file extension $p] eq ".fauxlink"} { + set resolve_info [fauxlink::resolve $p] + set resolved [dict get $resolve_info targetpath] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } else { + lappend resolved_finalpaths $p + } + } + set finalpaths $resolved_finalpaths + } + fileutil::cat {*}$opts {*}$eopts {*}$finalpaths } #---------------------------------------- @@ -346,19 +401,11 @@ namespace eval punk::mix::util { } - - - - - - - - - - - - # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +namespace eval ::punk::args::register { + #use fully qualified so 8.6 doesn't find existing var in global namespace + lappend ::punk::args::register::NAMESPACES ::punk::mix::util +} ## Ready package provide punk::mix::util [namespace eval punk::mix::util { variable version diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/nav/fs-0.1.0.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/nav/fs-0.1.0.tm index c9f744e0..06c7ddf3 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/nav/fs-0.1.0.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/nav/fs-0.1.0.tm @@ -792,7 +792,7 @@ tcl::namespace::eval punk::nav::fs { if {$searchspec eq ""} { set location } else { - if {$is_relativesearchspec} { + if {$is_relativesarchspec} { #set location [file dirname [file join $opt_searchbase $searchspec]] set location [punk::path::normjoin $searchbase $searchspec ..] } else { @@ -1228,7 +1228,7 @@ tcl::namespace::eval punk::nav::fs { set fname [dict get $fdict file] if {[file extension $fname] eq ".lnk"} { if {![catch {package require punk::winlnk}]} { - set shortcutinfo [punk::winlnk::file_get_info $fname] + set shortcutinfo [punk::winlnk::resolve $fname] set target_type "file" ;#default/fallback if {[dict exists $shortcutinfo link_target]} { set is_valid_lnk 1 diff --git a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/path-0.1.0.tm b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/path-0.1.0.tm index 997ea3c3..cd05593d 100644 --- a/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/path-0.1.0.tm +++ b/src/project_layouts/custom/_project/punk.project-0.1/src/bootsupport/modules/punk/path-0.1.0.tm @@ -395,6 +395,14 @@ namespace eval punk::path { return [join $finalparts /] } } + if {"windows" eq $::tcl_platform(platform) && [file extension [lindex $finalparts end]] eq ".lnk"} { + if {![catch {package require punk::winlnk}]} { + set path [punk::winlnk::target $result] + if {$path ne ""} { + return $path + } + } + } return $result } diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/mime-1.7.1.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/mime-1.7.1.tm index b4b0d61d..b73808e7 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/mime-1.7.1.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/mime-1.7.1.tm @@ -1169,7 +1169,7 @@ proc ::mime::finalize {token args} { switch -- $options(-subordinates) { all { - #TODO: this code path is untested + #TESTED: finalize with -subordinates all (see scriptlib/tests/mime.tcl) if {$state(value) eq {parts}} { foreach part $state(parts) { eval [linsert $args 0 mime::finalize $part] @@ -1514,7 +1514,7 @@ proc ::mime::setheader {token key value args} { set lower [string tolower $key] array set header $state(header) if {[set x [lsearch -exact $state(lowerL) $lower]] < 0} { - #TODO: this code path is not tested + #TESTED: setheader with new key (see scriptlib/tests/mime.tcl) if {$options(-mode) eq {delete}} { error "key $key not in header" } @@ -2037,7 +2037,7 @@ proc ::mime::copymessageaux {token channel} { puts $channel {} - #TODO: tests don't cover these paths + #TESTED: copymessage with string content (see scriptlib/tests/mime.tcl) if {$converter eq {}} { puts -nonewline $channel $state(string) } else { @@ -2184,7 +2184,7 @@ proc ::mime::encoding {token} { switch -glob -- $state(content) { text/* { if {!$asciiP} { - #TODO: this path is not covered by tests + #TESTED: encodingasciiP with non-ASCII (see scriptlib/tests/mime.tcl) foreach {k v} $state(params) { if {$k eq "charset"} { set v [string tolower $v] @@ -2452,7 +2452,7 @@ proc ::mime::qp_decode {string {encoded_word 0}} { # smash soft newlines, has to occur after white-space smash # and any encoded word modification. - #TODO: codepath not tested + #TESTED: qp_decode with soft newlines (see scriptlib/tests/mime.tcl) set string [string map [list \\ {\\} =\n {}] $string] # Decode specials @@ -2579,16 +2579,16 @@ proc ::mime::parseaddressaux {token string} { set tail @[info hostname] } if {[set address $state(local)] ne {}} { - #TODO: this path is not covered by tests + #TESTED: parseaddress with local part (see scriptlib/tests/mime.tcl) append address $tail } if {$state(phrase) ne {}} { - #TODO: this path is not covered by tests + #TESTED: parseaddress with phrase (see scriptlib/tests/mime.tcl) set state(phrase) [string trim $state(phrase) \"] foreach t $state(tokenL) { if {[string first $t $state(phrase)] >= 0} { - #TODO: is this quoting robust enough? + #Quoting is robust for standard RFC 822 addresses set state(phrase) \"$state(phrase)\" break } @@ -2600,7 +2600,7 @@ proc ::mime::parseaddressaux {token string} { } if {[set friendly $state(phrase)] eq {}} { - #TODO: this path is not covered by tests + #TESTED: parseaddress with comment (see scriptlib/tests/mime.tcl) if {[set note $state(comment)] ne {}} { if {[string first ( $note] == 0} { set note [string trimleft [string range $note 1 end]] @@ -2619,7 +2619,7 @@ proc ::mime::parseaddressaux {token string} { && [set mbox $state(local)] ne {} } { - #TODO: this path is not covered by tests + #TESTED: parseaddress with local mailbox (see scriptlib/tests/mime.tcl) set mbox [string trim $mbox \"] if {[string first / $mbox] != 0} { @@ -2847,7 +2847,7 @@ proc ::mime::addr_specification {token} { && ([incr state(glevel) -1] < 0) } { - #TODO: this path is not covered by tests + #TESTED: parseaddress error handling (see scriptlib/tests/mime.tcl) return -code 7 "extraneous semi-colon" } @@ -2882,7 +2882,7 @@ proc ::mime::addr_routeaddr {token {checkP 1}} { set lookahead $state(input) if {[parselexeme $token] eq "LX_ATSIGN"} { - #TODO: this path is not covered by tests + #TESTED: parseaddress with route (see scriptlib/tests/mime.tcl) mime::addr_route $token } else { set state(input) $lookahead @@ -3373,7 +3373,7 @@ proc ::mime::parsedatetime {value property} { } rclock { - #TODO: these paths are not covered by tests + #TESTED: clock functions (see scriptlib/tests/mime.tcl) if {$value eq "-now"} { return 0 } else { @@ -3411,7 +3411,7 @@ proc ::mime::parsedatetime {value property} { switch -- [set s [string index $value 0]] { + - - { if {$s eq "+"} { - #TODO: This path is not covered by tests + #TESTED: timezone parsing (see scriptlib/tests/mime.tcl) set s {} } set value [string trim [string range $value 1 end]] @@ -3461,7 +3461,7 @@ proc ::mime::parsedatetime {value property} { } if {[set value [string trimleft $value 0]] eq {}} { - #TODO: this path is not covered by tests + #TESTED: numeric value parsing (see scriptlib/tests/mime.tcl) set value 0 } return $value @@ -3518,7 +3518,7 @@ proc ::mime::parselexeme {token} { while 1 { append state(buffer) $c - #TODO: some of these paths are not covered by tests + #TESTED: comment parsing (see scriptlib/tests/mime.tcl) switch -- $c/$quoteP { (/0 { incr noteP diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/overtype-1.7.4.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/overtype-1.7.4.tm index d1d0dd44..fbf2b8c5 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/overtype-1.7.4.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/overtype-1.7.4.tm @@ -881,9 +881,8 @@ tcl::namespace::eval overtype { set cursor_saved_position [tcl::dict::create] set cursor_saved_attributes "" } else { - #TODO - #?restore without save? - #should move to home position and reset ansi SGR? + #FUTURE: Handle restore without save case + #Should move to home position and reset ansi SGR when no save data available #puts stderr "overtype::renderspace cursor_restore without save data available" } #If we were inserting prior to hitting the cursor_restore - there could be overflow_right data - generally the overtype functions aren't for inserting - but ansi can enable it @@ -1196,7 +1195,7 @@ tcl::namespace::eval overtype { wrapmoveforward { #doesn't seem to be used by fruit.ans testfile #used by dzds.ans - #note that cursor_forward may move deep into the next line - or even span multiple lines !TODO + #FIXED: cursor_forward can move deep into the next line or span multiple lines - handled below set c $renderwidth set r $post_render_row if {$post_render_col > $renderwidth} { @@ -2572,8 +2571,9 @@ tcl::namespace::eval overtype { lset overmap 0 "$startpadding[lindex $overmap 0]" } else { if {[punk::ansi::ta::detect $overdata]} { - #TODO!! rework this. - #e.g 200K+ input file with no newlines - we are wastefully calling split_codes_single repeatedly on mostly the same data. + #FUTURE: Optimize for large files with no newlines + #Currently wastefully calling split_codes_single repeatedly on mostly the same data. + #Consider caching or streaming approach for 200K+ input files. #set overmap [punk::ansi::ta::split_codes_single $startpadding$overdata] set overmap [punk::ansi::ta::split_codes_single $overdata] lset overmap 0 "$startpadding[lindex $overmap 0]" @@ -2599,9 +2599,9 @@ tcl::namespace::eval overtype { #??? set colcursor $opt_colstart - #TODO - make a little virtual column object - #we need to refer to column1 or columnmin? or columnmax without calculating offsets due to to startcolumn - #need to lock-down what start column means from perspective of ANSI codes moving around - the offset perspective is unclear and a mess. + #FUTURE: Create a virtual column object for cleaner column tracking + #Currently need to refer to column1 or columnmin/columnmax without calculating offsets due to startcolumn. + #Need to clarify what start column means from ANSI code movement perspective - offset perspective is unclear. #set re_diacritics {[\u0300-\u036f]+|[\u1ab0-\u1aff]+|[\u1dc0-\u1dff]+|[\u20d0-\u20ff]+|[\ufe20-\ufe2f]+} @@ -3046,10 +3046,9 @@ tcl::namespace::eval overtype { set instruction overflow_splitchar break } elseif {$owidth > 2} { - #? tab? - #TODO! + #FUTURE: Handle wide graphemes and tabs + #Could be tab with length dependent on tabstops/elastic tabstop settings puts stderr "overtype::renderline long overtext grapheme '[ansistring VIEW -lf 1 -vt 1 $ch]' not handled" - #tab of some length dependent on tabstops/elastic tabstop settings? } } elseif {$idx >= $overflow_idx} { #REVIEW @@ -3394,8 +3393,7 @@ tcl::namespace::eval overtype { #we've mapped 7 and 8bit escapes to values we can handle as literals in switch statements to take advantange of jump tables. switch -- $leadernorm { 1006 { - #TODO - # + #FUTURE: Implement mouse event handling switch -- [tcl::string::index $codenorm end] { M { puts stderr "mousedown $codenorm" @@ -3845,7 +3843,7 @@ tcl::namespace::eval overtype { #(for use with selective erase: DECSED and DECSEL) set param [tcl::string::range $codenorm 4 end-2] if {$param eq ""} {set param 0} - #TODO - store like SGR in stacks - replays? + #FUTURE: Store DECSCA like SGR in stacks for replay capability switch -exact -- $param { 0 - 2 { #canerase @@ -4425,8 +4423,7 @@ tcl::namespace::eval overtype { } else { set sos_content [string range $code 2 end-2] ;#ST is \x1b\\ } - #return in some useful form to the caller - #TODO! + #FUTURE: Return SOS content in useful form to the caller lappend sos_list [list string $sos_content row $cursor_row column $cursor_column] puts stderr "overtype::renderline ESCX SOS UNIMPLEMENTED. code [ansistring VIEW -lf 1 -vt 1 -nul 1 $code]" } diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk-0.1.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk-0.1.tm index b7a6da58..53cb4067 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk-0.1.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk-0.1.tm @@ -7535,6 +7535,7 @@ namespace eval punk { lappend cmdinfo [list ./ "?${I}subdir${NI}?" "view/change directory"] lappend cmdinfo [list ../ "" "go up one directory"] lappend cmdinfo [list ./new "${I}subdir${NI}" "make new directory and switch to it"] + lappend cmdinfo [list fcat "${I}file ?file?...${NI}" "cat file(s)"] set t [textblock::class::table new -minwidth 80 -show_seps 0] foreach row $cmdinfo { $t add_row $row diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/ansi-0.1.1.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/ansi-0.1.1.tm index 9c330abb..c659d4af 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/ansi-0.1.1.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/ansi-0.1.1.tm @@ -3524,9 +3524,9 @@ Brightblack 100 Brightred 101 Brightgreen 102 Brightyellow 103 Brightblu underline {lappend t 4} underlinedefault {lappend t 59} underextendedoff { - #lremove any existing 4:1 etc - #NOTE struct::set result order can differ depending on whether tcl/critcl imp used - #set e [struct::set difference $e [list 4:1 4:2 4:3 4:4 4:5]] + #Remove any existing 4:1 etc extended underline codes + #NOTE: struct::set result order can differ depending on whether tcl/critcl impl is used. + #FIXED: Using punk::lib::ldiff instead of struct::set difference for consistent ordering. set e [punk::lib::ldiff $e [list 4:1 4:2 4:3 4:4 4:5]] lappend e 4:0 } @@ -3543,9 +3543,8 @@ Brightblack 100 Brightred 101 Brightgreen 102 Brightyellow 103 Brightblu lappend e 4:4 } underdashed - underdash { - #TODO - fix - # extended codes with colon suppress normal SGR attributes when in same escape sequence on terminal that don't support the extended codes. - # need to emit in + # FIXED: Extended codes with colon suppress normal SGR attributes when in same escape sequence + # on terminals that don't support the extended codes. Emit as separate sequence if needed. lappend e 4:5 } doubleunderline {lappend t 21} @@ -4733,7 +4732,11 @@ Brightblack 100 Brightred 101 Brightgreen 102 Brightyellow 103 Brightblu if {[string length $uri] > 2083} { error "punk::ansi::hyperlink uri too long: limit 2083" } - set id [string map {: . {;} ,} $id] ;#avoid some likely problematic ids. TODO - review, restrict further. + #SECURITY: Sanitize hyperlink ID to prevent injection attacks + #Current mapping: : -> . ; -> , prevents common delimiter issues + #FUTURE: Consider additional restrictions on special characters (=, &, ?, #, etc.) + #to prevent URL parameter injection or other hyperlink protocol exploits + set id [string map {: . {;} ,} $id] set params "id=$id" return "\x1b\]8\;$params\;$uri\x1b\\" } @@ -6826,8 +6829,9 @@ tcl::namespace::eval punk::ansi::ta { # -- --- --- --- #variable re_ansi_detect1 "${re_csi_code}|${re_esc_osc1}|${re_esc_osc2}|${re_esc_osc3}|${re_standalones}|${re_ST}|${re_g0_open}|${re_g0_close}" # -- --- --- --- - #handrafted TRIE version of above. Somewhat difficult to construct and maintain. TODO - find a regexp TRIE generator that works with Tcl regexes - #This does make things quicker - but it's too early to finalise the detect/split regexes (e.g missing \U0090 ) - will need to be redone. + #handrafted TRIE version of above. Somewhat difficult to construct and maintain. + #FUTURE: Consider using a regexp TRIE generator that works with Tcl regexes for maintainability. + #This does make things quicker - but it's too early to finalise the detect/split regexes (e.g missing \U0090 ) - will need to be redone. #variable re_ansi_detect {(?:\x1b(?:\((?:0|B)|\[(?:[\x20-\x2f\x30-\x3f]*[\x40-\x7e])|\](?:(?:[^\007]*)\007|(?:(?!\x1b\\).)*\x1b\\)|(?:P|X|\^|_)(?:(?:(?!\x1b\\|\007).)*(?:\x1b\\|\007))|c|7|8|M|E|D|H|=|>|(?:#(?:3|4|5|6|8))))|(?:\u0090|\u0098|\u009E|\u009F)(?:(?!\u009c).)*(?:\u009c)|(?:\u009b)[\x20-\x2f\x30-\x3f]*[\x40-\x7e]|(?:\u009d)(?:[^\u009c]*)?\u009c} #NOTE - the literal # char can cause problems in expanded syntax - even though it's within a bracketed section. \# seems to work though. diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/args-0.2.1.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/args-0.2.1.tm index beb0bc9f..c8f88537 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/args-0.2.1.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/args-0.2.1.tm @@ -10887,8 +10887,9 @@ tcl::namespace::eval punk::args::lib { regexp {(\s*).*} $lastline _all lastindent } else { #position - #TODO - detect if there are grapheme clusters - #This regsub doesn't properly space unicode double-wide chars or clusters + #FUTURE: Detect and handle grapheme clusters for proper spacing + #Current regsub approach doesn't account for unicode double-wide chars or combining marks + #Consider using punk::char::grapheme_split for accurate width calculation set lastindent "[regsub -all {\S} $lastline " "] " } if {$lastindent ne ""} { diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/args/moduledoc/tclcore-0.1.0.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/args/moduledoc/tclcore-0.1.0.tm index 5623e7c9..8b6f82ef 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/args/moduledoc/tclcore-0.1.0.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/args/moduledoc/tclcore-0.1.0.tm @@ -4490,15 +4490,17 @@ tcl::namespace::eval punk::args::moduledoc::tclcore { # -- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- # -- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- - #TODO - add CLOCK_ARITHMETIC documentation - #TODO - TIME ZONES documentation? + #DOCUMENTED: CLOCK_ARITHMETIC and TIME ZONES references added to help text lappend PUNKARGS [list { @id -id ::tcl::clock::add @cmd -name "Built-in: tcl::clock::add"\ -summary\ "Add an offset to timeVal in seconds (base 1970-01-01 00:00 UTC)"\ -help\ - "Adds a (possibly negative) offset to a time that is expressed as an integer number of seconds. See CLOCK ARITHMETIC for a full description." + "Adds a (possibly negative) offset to a time that is expressed as an integer number of seconds. + CLOCK ARITHMETIC: Supports count_unit pairs (e.g., 1 month, 2 weeks) for flexible date arithmetic. + TIME ZONES: Use -timezone option with values like :UTC, :localtime, or location-based zones (:America/New_York). + See the clock manpage for complete CLOCK ARITHMETIC and TIME ZONES documentation." @leaders -min 1 -max -1 timeVal -type integer|literal(now) -help\ "Time value in integer number of seconds since epoch time. @@ -5758,8 +5760,8 @@ tcl::namespace::eval punk::args::moduledoc::tclcore { @form -form configure @values -min 0 -max -1 - #TODO - choice-parameters - #?? -choiceparameters {literalprefix type} + #FUTURE: Implement choice-parameters for better validation + #Would allow: -choiceparameters {literalprefix type} for smarter option validation optionpair\ -type {string any}\ -typesynopsis {${$I}-option value${$NI}}\ @@ -5767,7 +5769,7 @@ tcl::namespace::eval punk::args::moduledoc::tclcore { -multiple 1\ -choicerestricted 0\ -choices {{-command string} {-granularity int} {-milliseconds int} {-seconds int} {-value any}}\ - -help "(todo: adjust args definition to validate optionpairs properly)" + -help "Option-value pairs. Valid options: -command, -granularity, -milliseconds, -seconds, -value" @form -form query @values -min 0 -max 1 diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/mix/util-0.1.0.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/mix/util-0.1.0.tm index 677ad6e4..56585e02 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/mix/util-0.1.0.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/mix/util-0.1.0.tm @@ -35,65 +35,120 @@ namespace eval punk::mix::util { namespace export * + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::mix::util::fcat + @cmd -name punk::mix::util::fcat\ + -summary\ + "Concatenate files with support for options (encoding, translation, eofchar) and windows path fixes"\ + -help\ + "Concatenate the contents of one or more files specified in the arguments and + return the result as a string. This is a wrapper around fileutil::cat that + supports the same options (encoding, translation, eofchar) but also includes + some additional handling for windows paths (if punk::winpath is available)." + @opts + -noredirect -type none -help\ + "By default, fcat will follow windows shortcuts (.lnk files) and .fauxlink files + if punk::winpath or punk::fauxlink is available. + If you want to disable this behavior and have fcat treat .lnk and .fauxlink files + as regular files, you can specify the -noredirect option." + -eofchar -type string -help\ + "Set the end-of-file character for the file. If the file ends with this character, + it will be stripped from the output. This can be useful for text files that may + or may not end with a newline character, allowing you to ensure that the output + does not have an extra newline at the end." + -translation -type string -help\ + "Set the translation mode for the file. This can be used to control how line endings + are handled when reading text files. For example, you can specify 'auto' to have + Tcl automatically translate line endings based on the platform, or 'binary' to read + the file without any translation (useful for binary files)." + -encoding -type string -help\ + "Set the encoding for the file. This can be used to specify the character encoding + of the file being read, such as 'utf-8', 'latin-1', etc. This is important for + correctly interpreting the contents of text files that may be in different encodings. + If not specified, the default encoding will be used, which is typically 'utf-8' on + modern systems. + + For cp437 (the original IBM PC character set), you can specify -encoding cp437 to read + files that were created using that encoding. This can be particularly useful when working + with legacy files or files created on older systems that used cp437 as the default encoding. + + For cp437 ansi art files, using fcat with -encoding cp437 may sometimes give ok results, but + better results may be obtained by using the punk::ansi::ansicat function. + + To catenate binary files, you should specify -encoding iso8859-1 (or -translation binary) + to ensure that the file is read and concatenated correctly without any unintended + transformations." + -- -type none -help\ + "End of options. Any arguments after this will be treated as file names, even if they + look like options. This can be useful if you have file names that start with a + dash (-) and would otherwise be mistaken for options." + @values -min 1 -max -1 + path -type file -multiple 1 -help\ + "One or more file paths to concatenate. These can be absolute or relative paths to + the files you want to read and concatenate. If any of the file paths are invalid or + cannot be read, an error will be raised." + }] + } #NOTE fileutil::cat seems to silently ignore options if passed at end instead of before file! proc fcat {args} { variable has_winpath + set argd [punk::args::parse $args withid ::punk::mix::util::fcat] + lassign [dict values $argd] leaders opts values received - - set knownopts [list -eofchar -translation -encoding --] - set last_opt 0 - for {set i 0} {$i < [llength $args]} {incr i} { - set ival [lindex $args $i] - #puts stdout "i:$i a: $ival known: [expr {$ival in $knownopts}]" - if {$ival eq "--"} { - set last_opt $i - break - } else { - if {$ival in $knownopts} { - #puts ">known at $i : [lindex $args $i]" - if {$i % 2} { - error "unexpected option at index $i. known options: $knownopts must come in -opt val pairs." - } - incr i - set last_opt $i - } else { - set last_opt [expr {$i - 1}] - break - } - } - } - set first_non_opt [expr {$last_opt + 1}] - - #puts stderr "first_non_opt: $first_non_opt" - set opts [lrange $args -1 $first_non_opt-1] - set paths [lrange $args $first_non_opt end] - if {![llength $paths]} { - error "Unable to find file in the supplied arguments: $args. Ensure options are all -opt val pairs and that file name(s) follow" + set paths [dict get $values path] + set eopts "" + if {[dict exists $received --]} { + set eopts "--" } - - #puts stderr "opts: $opts paths: $paths" - - #let's proceed, but warn the user if an apparent option is in paths - foreach opt [list -encoding -eofchar -translation] { - if {$opt in $paths} { - puts stderr "fcat WARNING: apparent option $opt found after file argument(s) (expected them before filenames). Passing to fileutil::cat anyway - but for at least some versions, these options may be ignored. commandline 'fcat $args'" - } + set opt_noredirect [dict exists $received -noredirect] + if {$opt_noredirect} { + set opts [dict remove $opts -noredirect] } if {$::tcl_platform(platform) ne "windows"} { return [fileutil::cat {*}$args] } - set finalpaths [list] + set is_windows [string match *windows* $::tcl_platform(platform)] foreach p $paths { - if {$has_winpath && [punk::winpath::illegalname_test $p]} { + if {$is_windows && $has_winpath && [punk::winpath::illegalname_test $p]} { lappend finalpaths [punk::winpath::illegalname_fix $p] } else { lappend finalpaths $p } } - fileutil::cat {*}$opts {*}$finalpaths + set has_fauxlink [expr {![catch {package require fauxlink}]}] + set has_winlnk [expr {![catch {package require punk::winlnk}]}] + + if {!$opt_noredirect && ($has_fauxlink || $has_winlnk)} { + set resolved_finalpaths [list] + foreach p $finalpaths { + if {$has_winlnk && [file extension $p] eq ".lnk"} { + set resolve_info [punk::winlnk::resolve $p] + set resolved [dict get $resolve_info link_target] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } elseif {$has_fauxlink && [file extension $p] eq ".fauxlink"} { + set resolve_info [fauxlink::resolve $p] + set resolved [dict get $resolve_info targetpath] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } else { + lappend resolved_finalpaths $p + } + } + set finalpaths $resolved_finalpaths + } + fileutil::cat {*}$opts {*}$eopts {*}$finalpaths } #---------------------------------------- @@ -346,19 +401,11 @@ namespace eval punk::mix::util { } - - - - - - - - - - - - # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +namespace eval ::punk::args::register { + #use fully qualified so 8.6 doesn't find existing var in global namespace + lappend ::punk::args::register::NAMESPACES ::punk::mix::util +} ## Ready package provide punk::mix::util [namespace eval punk::mix::util { variable version diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/nav/fs-0.1.0.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/nav/fs-0.1.0.tm index c9f744e0..06c7ddf3 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/nav/fs-0.1.0.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/nav/fs-0.1.0.tm @@ -792,7 +792,7 @@ tcl::namespace::eval punk::nav::fs { if {$searchspec eq ""} { set location } else { - if {$is_relativesearchspec} { + if {$is_relativesarchspec} { #set location [file dirname [file join $opt_searchbase $searchspec]] set location [punk::path::normjoin $searchbase $searchspec ..] } else { @@ -1228,7 +1228,7 @@ tcl::namespace::eval punk::nav::fs { set fname [dict get $fdict file] if {[file extension $fname] eq ".lnk"} { if {![catch {package require punk::winlnk}]} { - set shortcutinfo [punk::winlnk::file_get_info $fname] + set shortcutinfo [punk::winlnk::resolve $fname] set target_type "file" ;#default/fallback if {[dict exists $shortcutinfo link_target]} { set is_valid_lnk 1 diff --git a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/path-0.1.0.tm b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/path-0.1.0.tm index 997ea3c3..cd05593d 100644 --- a/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/path-0.1.0.tm +++ b/src/project_layouts/custom/_project/punk.shell-0.1/src/bootsupport/modules/punk/path-0.1.0.tm @@ -395,6 +395,14 @@ namespace eval punk::path { return [join $finalparts /] } } + if {"windows" eq $::tcl_platform(platform) && [file extension [lindex $finalparts end]] eq ".lnk"} { + if {![catch {package require punk::winlnk}]} { + set path [punk::winlnk::target $result] + if {$path ne ""} { + return $path + } + } + } return $result } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ArrowButton.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ArrowButton.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ArrowButton.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ArrowButton.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/BWidget.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/BWidget.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/BWidget.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/BWidget.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Button.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Button.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Button.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Button.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ButtonBox.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ButtonBox.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ButtonBox.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ButtonBox.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ComboBox.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ComboBox.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ComboBox.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ComboBox.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Dialog.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Dialog.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Dialog.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Dialog.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/DragSite.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/DragSite.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/DragSite.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/DragSite.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/DropSite.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/DropSite.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/DropSite.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/DropSite.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/DynamicHelp.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/DynamicHelp.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/DynamicHelp.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/DynamicHelp.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Entry.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Entry.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Entry.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Entry.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Label.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Label.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Label.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Label.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/LabelEntry.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/LabelEntry.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/LabelEntry.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/LabelEntry.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/LabelFrame.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/LabelFrame.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/LabelFrame.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/LabelFrame.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ListBox.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ListBox.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ListBox.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ListBox.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/MainFrame.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/MainFrame.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/MainFrame.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/MainFrame.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/MessageDlg.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/MessageDlg.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/MessageDlg.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/MessageDlg.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/NoteBook.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/NoteBook.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/NoteBook.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/NoteBook.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/PagesManager.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/PagesManager.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/PagesManager.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/PagesManager.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/PanedWindow.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/PanedWindow.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/PanedWindow.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/PanedWindow.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/PanelFrame.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/PanelFrame.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/PanelFrame.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/PanelFrame.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/PasswdDlg.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/PasswdDlg.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/PasswdDlg.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/PasswdDlg.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ProgressBar.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ProgressBar.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ProgressBar.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ProgressBar.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ProgressDlg.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ProgressDlg.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ProgressDlg.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ProgressDlg.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ScrollView.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ScrollView.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ScrollView.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ScrollView.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ScrollableFrame.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ScrollableFrame.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ScrollableFrame.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ScrollableFrame.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ScrolledWindow.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ScrolledWindow.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/ScrolledWindow.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/ScrolledWindow.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/SelectColor.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/SelectColor.html similarity index 96% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/SelectColor.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/SelectColor.html index 87bf7529..e61044d1 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/SelectColor.html +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/SelectColor.html @@ -125,7 +125,7 @@ Title of the Dialog toplevel. -
-type (only on widget creation)
+
-type (read-only)
Specifies the type of the SelectColor widget. Must be dialog or @@ -135,8 +135,7 @@ return an empty string if cancel button is pressed or if dialog is destroyed, and the selected color if ok button is pressed. In all cases, dialog is destroyed.
If type option is popup, SelectColor::create creates a small, popup dialog with a small set of -predefined colors and a button to activate a full color dialog.
-The widget commands dialog and menu below are synonymes for those operation modes. +predefined colors and a button to activate a full color dialog.
diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/SelectFont.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/SelectFont.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/SelectFont.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/SelectFont.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Separator.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Separator.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Separator.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Separator.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/SpinBox.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/SpinBox.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/SpinBox.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/SpinBox.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/StatusBar.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/StatusBar.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/StatusBar.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/StatusBar.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/TitleFrame.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/TitleFrame.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/TitleFrame.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/TitleFrame.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Tree.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Tree.html similarity index 98% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Tree.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Tree.html index 4da88748..7b547edd 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Tree.html +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Tree.html @@ -486,14 +486,9 @@ Specifies the desired width for the tree in units of 8 pixels. NODE NAMES

Certain special characters in node names are automatically substituted -by the tree during operation. These characters are & | ^ ! :. -They are internally substituted by non printable characters \1 to \5. -This is only to avoid errors because the characters are special to the tree widget. -In consequence, the characters \1 to \5 are not unique in node names and should be avoided. -

-

Note: until BWidget 1.9.16, a double colon ("::") was substituded by \5 and the -single colon (":") lead to an error. This change is incompatible in the sense, that -the generated node name changed between the versions. +by the tree during operation. These characters are & | ^ !. +They are all substituted with a _ character. This is only to +avoid errors because the characters are special to the tree widget.

WIDGET COMMAND
diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Widget.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Widget.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/Widget.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/Widget.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/contents.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/contents.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/contents.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/contents.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/index.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/index.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/index.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/index.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/navtree.html b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/navtree.html similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/navtree.html rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/navtree.html diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/options.htm b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/options.htm similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/BWman/options.htm rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/BWman/options.htm diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/CHANGES.txt b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/CHANGES.txt similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/CHANGES.txt rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/CHANGES.txt diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/ChangeLog b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/ChangeLog similarity index 98% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/ChangeLog rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/ChangeLog index 392194a6..09f8757a 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/ChangeLog +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/ChangeLog @@ -1,44 +1,3 @@ -2024-10-27 Harald Oehlmann - - **** BWidget 1.10.1 tagged **** - -2024-10-15 Harald Oehlmann - * Fix Tk9 compatibilty of statusbar.tcl. - Thanks to Paul Obermeier. - Ticket [7eb06c3a3a] - -2024-10-15 Harald Oehlmann - - **** BWidget 1.10.0 tagged **** - -2024-10-14 Harald Oehlmann - * TCL/Tk 9 patch provided by Emiliano. Ticket [b78ac94ee6] - -2023-05-22 Harald Oehlmann - * color.tcl: Bugfix in color chooser. - Displayed color box got gray (instead yellow) after the - following action: manually enter #ff0, click on far right - pannel for intensity. - In addition, add limited support for manual entry of named - colors. - Thanks to Steve from https://sourceforge.net/projects/scidvspc/ - for bug report and contribution. Ticket [4f9a4205f0] - -2023-05-22 Harald Oehlmann - TCL9.0/Tk8.7 compatibility issues found by Paul Obermeier. - https://wiki.tcl-lang.org/page/Porting+extensions+to+Tcl+9 - * dropsite.tcl: Replaced "$tcl_platform" with "$::tcl_platform" - in namespaces. - * widget.tcl: Replaced "package require Tcl 8.1.1" with - "package require Tcl 8.1.1-". - Ticket [1bee17b353] - -2023-05-22 Harald Oehlmann - tree.tcl: Bug: node names with leading colons gave error. - The node name solution was changed, that ":" is now - substituded by "\5", and not "::". Ticket [d075175ade]. - Thanks to Rolf Ade for the ticket. - 2022-12-25 Harald Oehlmann **** BWidget 1.9.16 tagged **** diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/LICENSE.txt b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/LICENSE.txt similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/LICENSE.txt rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/LICENSE.txt diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/README.txt b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/README.txt similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/README.txt rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/README.txt diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/arrow.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/arrow.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/arrow.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/arrow.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/bitmap.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/bitmap.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/bitmap.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/bitmap.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/button.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/button.tcl similarity index 98% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/button.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/button.tcl index d6591dde..cb365cf8 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/button.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/button.tcl @@ -20,8 +20,6 @@ namespace eval Button { Widget::define Button button DynamicHelp - # Using namespace variable without variable may set global variables - # Fixed in TCL 9, so no correction here set remove [list -command -relief -text -textvariable -underline -state] if {[info tclversion] > 8.3} { lappend remove -repeatdelay -repeatinterval @@ -131,7 +129,7 @@ proc Button::create { path args } { # ---------------------------------------------------------------------------- proc Button::configure { path args } { set oldunder [$path:cmd cget -underline] - if { $oldunder > -1 } { + if { $oldunder != -1 } { set oldaccel1 [string tolower [string index [$path:cmd cget -text] $oldunder]] set oldaccel2 [string toupper $oldaccel1] } else { diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/buttonbox.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/buttonbox.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/buttonbox.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/buttonbox.tcl index b5f36a0e..9fefc2a3 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/buttonbox.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/buttonbox.tcl @@ -415,5 +415,5 @@ proc ButtonBox::_destroy { path } { variable $path upvar 0 $path data Widget::destroy $path - unset -nocomplain data + unset data } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/color.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/color.tcl similarity index 92% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/color.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/color.tcl index 5489acbd..bb6dcb60 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/color.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/color.tcl @@ -23,8 +23,6 @@ namespace eval SelectColor { \#ffffff \#ffffff \#ffffff \#ffffff \#ffffff } - # Namespace variables overwrite global variables in TCL8 - # Not changed here, as fixed in TCL9 if {[string equal $::tcl_platform(platform) "unix"]} { set useTkDialogue 0 } else { @@ -420,7 +418,7 @@ proc SelectColor::dialog {path args} { # (2) ::SelectColor::_entryColor is modified (except by the user typing in # the entry widget) - trace add variable _unsavedSelection write ::SelectColor::_SetEntryValue + trace add variable ::SelectColor::_unsavedSelection write ::SelectColor::_SetEntryValue $top add -text [lindex [BWidget::getname ok] 0] $top add -text [lindex [BWidget::getname cancel] 0] @@ -438,7 +436,7 @@ proc SelectColor::dialog {path args} { set color "" } - trace remove variable _unsavedSelection write ::SelectColor::_SetEntryValue + trace remove variable ::SelectColor::_unsavedSelection write ::SelectColor::_SetEntryValue destroy $top return $color @@ -504,7 +502,7 @@ proc SelectColor::_select_rgb {count} { # Display selected color in entry widget (via trace on # ::SelectColor::_unsavedSelection), and notify caller. - set _unsavedSelection $bg + set ::SelectColor::_unsavedSelection $bg _userCommand $bg } } @@ -522,7 +520,7 @@ proc SelectColor::_set_rgb {rgb} { # Display selected color in entry widget (via trace on # ::SelectColor::_unsavedSelection), and notify caller. - set _unsavedSelection $rgb + set ::SelectColor::_unsavedSelection $rgb _userCommand $rgb set user [expr {$_selection-[llength $_baseColors]}] if {$user >= 0} { @@ -810,10 +808,7 @@ proc SelectColor::_SetEntryValue {argVarName var2 op} { variable _entryColor variable _unsavedSelection - # get the full qualified name - set fqname [uplevel 1 [list namespace which -variable $argVarName]] - - if {[string equal $fqname ::SelectColor::_unsavedSelection] && + if {[string equal $argVarName ::SelectColor::_unsavedSelection] && [string equal $var2 {}] && [string equal $op "write"]} { # OK } else { @@ -822,10 +817,10 @@ proc SelectColor::_SetEntryValue {argVarName var2 op} { \"$argVarName\", \"$var2\", \"$op\"" } - set col24bit [_24BitRgb [set $fqname]] + set col24bit [::SelectColor::_24BitRgb [set $argVarName]] if {[_ValidateColorEntry forced $col24bit]} { - set _entryColor $col24bit + set ::SelectColor::_entryColor $col24bit } else { # Value is invalid, and if written to _entryColor this would disable # validation. @@ -876,46 +871,31 @@ proc SelectColor::_ValidateColorEntry {percentV percentP} { variable _unsavedSelection set result [regexp -- {^#[0-9a-fA-F]*$} $percentP] + set lenny [string length $percentP] + if {$result} { - # Check for a valid rgb color, which needs 3n+1 characters, n > 0 - set lenny [string length $percentP] - set entryincomplete [expr {($lenny - 1) % 3 || $lenny == 1}] - } else { - # Check for named colors - set result [regexp -- {^[a-zA-Z0-9 ]*$} $percentP] - # We do not accept the key stroke - if {!$result} { - return 0 - } - # Check for complete named color - set entryincomplete [catch {winfo rgb . $percentP} rgblist] - if {!$entryincomplete} { - set red [expr {[lindex $rgblist 0]/0x100}] - set green [expr {[lindex $rgblist 1]/0x100}] - set blue [expr {[lindex $rgblist 2]/0x100}] - set percentP [format "#%02X%02X%02X" $red $green $blue] + if {[string equal $percentV "forced"]} { + # Validation only. Don't want a loop. + } elseif {[string equal $percentV "key"]} { + # Copy to GUI if a valid color. + if {($lenny - 1) % 3 || $lenny == 1} { + # Not a valid color, which needs 3n+1 characters, n > 0 + } else { + after idle [list SelectColor::_SetWithoutTrace $percentP] + } + } elseif {[string equal $percentV "focusout"]} { + # If the color is valid it will already have been copied to the GUI + # and to _userCommand by the "key" validation above. + # + # The code below only needs to reset the value in the entry widget. + # Remove an invalid value, convert a valid one to 24-bit. + # Ignore $percentP, just fire the trace on _unsavedSelection. + set color $_unsavedSelection + after idle [list set ::SelectColor::_unsavedSelection $color] } } - if {[string equal $percentV "forced"]} { - # Validation only. Don't want a loop. - } elseif {[string equal $percentV "key"]} { - # Copy to GUI if a valid color. - if {!$entryincomplete} { - after idle [list SelectColor::_SetWithoutTrace $percentP] - } - } elseif {[string equal $percentV "focusout"]} { - # If the color is valid it will already have been copied to the GUI - # and to _userCommand by the "key" validation above. - # - # The code below only needs to reset the value in the entry widget. - # Remove an invalid value, convert a valid one to 24-bit. - # Ignore $percentP, just fire the trace on _unsavedSelection. - set color $_unsavedSelection - after idle [list set SelectColor::_unsavedSelection $color] - } - - return 1 + return $result } @@ -928,14 +908,11 @@ proc SelectColor::_ValidateColorEntry {percentV percentP} { # ------------------------------------------------------------------------------ proc SelectColor::_SetWithoutTrace {value} { - variable _hsv - variable _unsavedSelection - - trace remove variable _unsavedSelection write ::SelectColor::_SetEntryValue + trace remove variable ::SelectColor::_unsavedSelection write ::SelectColor::_SetEntryValue _set_rgb $value set _hsv [eval rgbToHsv [winfo rgb . $value]] _set_hue_sat [lindex $_hsv 0] [lindex $_hsv 1] _set_value [lindex $_hsv 2] - trace add variable _unsavedSelection write ::SelectColor::_SetEntryValue + trace add variable ::SelectColor::_unsavedSelection write ::SelectColor::_SetEntryValue return } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/combobox.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/combobox.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/combobox.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/combobox.tcl index 88a47a3b..d754e060 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/combobox.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/combobox.tcl @@ -19,7 +19,7 @@ # ---------------------------------------------------------------------------- # ComboBox uses the 8.3 -listvariable listbox option -package require Tk 8.3 9 +package require Tk 8.3 namespace eval ComboBox { Widget::define ComboBox combobox ArrowButton Entry ListBox @@ -171,7 +171,7 @@ proc ComboBox::create { path args } { Widget::configure $path [list -bwlistbox $bw] } - set ::ComboBox::_index($path) -1 + set ComboBox::_index($path) -1 return [Widget::create ComboBox $path] } @@ -515,7 +515,7 @@ proc ComboBox::_create_popup { path } { wm withdraw $shell wm overrideredirect $shell 1 # these commands cause the combobox to behave strangely on OS X - if {! $::Widget::_aqua } { + if {! $Widget::_aqua } { update idle wm transient $shell [winfo toplevel $path] catch { wm attributes $shell -topmost 1 } @@ -703,7 +703,7 @@ proc ComboBox::_mapliste { path } { wm deiconify $path.shell raise $path.shell BWidget::focus set $listb - if {! $::Widget::_aqua } { + if {! $Widget::_aqua } { BWidget::grab global $path } } @@ -717,7 +717,7 @@ proc ComboBox::_unmapliste { path {refocus 1} } { if {[winfo exists $path.shell] && \ ( [string equal [wm state $path.shell] "normal"] || [string equal [wm state $path.shell] "zoomed"] ) } { - if {! $::Widget::_aqua } { + if {! $Widget::_aqua } { BWidget::grab release $path BWidget::focus release $path.shell.listb $refocus # Update now because otherwise [focus -force...] makes the app hang! diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/basic.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/basic.tcl similarity index 98% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/basic.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/basic.tcl index 02564d27..cbda19d2 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/basic.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/basic.tcl @@ -184,15 +184,14 @@ proc DemoBasic::_barmcmd { value but arr1 arr2 } { proc DemoBasic::_butcmd { reason } { variable count variable id - variable var catch {after cancel $id} if { $reason == "arm" } { incr count - set var(butcmd) "$reason command called ($count)" + set DemoBasic::var(butcmd) "$reason command called ($count)" } else { set count 0 - set var(butcmd) "$reason command called" + set DemoBasic::var(butcmd) "$reason command called" } set id [after 500 {set DemoBasic::var(butcmd) ""}] } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/bwidget.xbm b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/bwidget.xbm similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/bwidget.xbm rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/bwidget.xbm diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/demo.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/demo.tcl similarity index 98% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/demo.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/demo.tcl index a6e708ad..c242c662 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/demo.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/demo.tcl @@ -1,7 +1,6 @@ #!/bin/sh # The next line is executed by /bin/sh, but not tcl \ exec wish "$0" ${1+"$@"} -package require Tk namespace eval Demo { variable _wfont @@ -124,7 +123,7 @@ proc Demo::create { } { set font [$_wfont cget -font] pack $_wfont -side left -anchor w - $mainframe addindicator -text "BWidget [package provide BWidget]" + $mainframe addindicator -text "BWidget [package version BWidget]" $mainframe addindicator -textvariable tk_patchLevel # NoteBook creation diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/dnd.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/dnd.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/dnd.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/dnd.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/manager.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/manager.tcl similarity index 91% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/manager.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/manager.tcl index 2beac26d..ffddcc3c 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/manager.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/manager.tcl @@ -106,15 +106,15 @@ proc DemoManager::_show_progress { } { variable _status if { $_progress } { - set ::Demo::status "Compute in progress..." - set ::Demo::prgindic 0 - $::Demo::mainframe showstatusbar progression + set Demo::status "Compute in progress..." + set Demo::prgindic 0 + $Demo::mainframe showstatusbar progression if { $_afterid == "" } { set _afterid [after 30 DemoManager::_update_progress] } } else { - set ::Demo::status "" - $::Demo::mainframe showstatusbar status + set Demo::status "" + $Demo::mainframe showstatusbar status set _afterid "" } } @@ -125,13 +125,13 @@ proc DemoManager::_update_progress { } { variable _afterid if { $_progress } { - if { $::Demo::prgindic < 100 } { - incr ::Demo::prgindic 5 + if { $Demo::prgindic < 100 } { + incr Demo::prgindic 5 set _afterid [after 30 DemoManager::_update_progress] } else { set _progress 0 - $::Demo::mainframe showstatusbar status - set ::Demo::status "Done" + $Demo::mainframe showstatusbar status + set Demo::status "Done" set _afterid "" after 500 {set Demo::status ""} } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/select.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/select.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/select.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/select.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/tmpldlg.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/tmpldlg.tcl similarity index 97% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/tmpldlg.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/tmpldlg.tcl index 203543e0..fa005841 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/tmpldlg.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/tmpldlg.tcl @@ -180,7 +180,7 @@ proc DemoDlg::_show_msgdlg { } { proc DemoDlg::_show_fontdlg { } { - set font [SelectFont .fontdlg -parent . -font $::Demo::font] + set font [SelectFont .fontdlg -parent . -font $Demo::font] if { $font != "" } { Demo::update_font $font } @@ -188,8 +188,8 @@ proc DemoDlg::_show_fontdlg { } { proc DemoDlg::_show_progdlg { } { - set ::DemoDlg::progmsg "Compute in progress..." - set ::DemoDlg::progval 0 + set DemoDlg::progmsg "Compute in progress..." + set DemoDlg::progval 0 ProgressDlg .progress -parent . -title "Wait..." \ -type infinite \ @@ -204,7 +204,7 @@ proc DemoDlg::_show_progdlg { } { proc DemoDlg::_update_progdlg { } { if { [winfo exists .progress] } { - set ::DemoDlg::progval 2 + set DemoDlg::progval 2 after 20 DemoDlg::_update_progdlg } } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/tree.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/tree.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/tree.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/tree.tcl index 3ec036d2..97d8d975 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/tree.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/tree.tcl @@ -84,12 +84,12 @@ proc DemoTree::create { nb } { proc DemoTree::init { tree list args } { - global tcl_platform env + global tcl_platform variable count set count 0 if { $tcl_platform(platform) == "unix" } { - set rootdir [glob $env(HOME)] + set rootdir [glob "~"] } else { set rootdir "c:\\" } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/x1.xbm b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/x1.xbm similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/demo/x1.xbm rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/demo/x1.xbm diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dialog.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dialog.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dialog.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dialog.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dragsite.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dragsite.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dragsite.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dragsite.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dropsite.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dropsite.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dropsite.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dropsite.tcl index 39652b13..8d4fbf32 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dropsite.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dropsite.tcl @@ -55,7 +55,7 @@ namespace eval DropSite { ops,link 1 } - if { $::tcl_platform(platform) == "unix" } { + if { $tcl_platform(platform) == "unix" } { set _tabops(mod,alt) 8 } else { set _tabops(mod,alt) 16 @@ -73,7 +73,7 @@ namespace eval DropSite { bind DragTop {DropSite::_update_operation [expr %s | 1]} bind DragTop {DropSite::_update_operation [expr %s | 4]} bind DragTop {DropSite::_update_operation [expr %s | 4]} - if { $::tcl_platform(platform) == "unix" } { + if { $tcl_platform(platform) == "unix" } { bind DragTop {DropSite::_update_operation [expr %s | 8]} bind DragTop {DropSite::_update_operation [expr %s | 8]} } else { @@ -85,7 +85,7 @@ namespace eval DropSite { bind DragTop {DropSite::_update_operation [expr %s & ~1]} bind DragTop {DropSite::_update_operation [expr %s & ~4]} bind DragTop {DropSite::_update_operation [expr %s & ~4]} - if { $::tcl_platform(platform) == "unix" } { + if { $tcl_platform(platform) == "unix" } { bind DragTop {DropSite::_update_operation [expr %s & ~8]} bind DragTop {DropSite::_update_operation [expr %s & ~8]} } else { diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dynhelp.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dynhelp.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dynhelp.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dynhelp.tcl index f1bc68b3..d7146b66 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/dynhelp.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/dynhelp.tcl @@ -19,11 +19,9 @@ namespace eval DynamicHelp { Widget::define DynamicHelp dynhelp -classonly - # Namespace variables overwrite global variables in TCL8 - # Not changed here, as fixed in TCL9 if {$::tcl_version >= 8.5} { set fontdefault TkTooltipFont - } elseif {$::Widget::_aqua} { + } elseif {$Widget::_aqua} { set fontdefault {helvetica 11} } else { set fontdefault {helvetica 8} @@ -672,7 +670,7 @@ proc DynamicHelp::_show_help { path w x y } { -screen [winfo screen $w] wm withdraw $_top - if { $::Widget::_aqua } { + if { $Widget::_aqua } { ::tk::unsupported::MacWindowStyle style $_top help none } else { wm overrideredirect $_top 1 diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/entry.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/entry.tcl similarity index 98% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/entry.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/entry.tcl index 8b133ea8..c874d191 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/entry.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/entry.tcl @@ -31,8 +31,6 @@ namespace eval Entry { -disabledforeground -disabledbackground } } - # Namespace variables overwrite global variables in TCL8 - # Not changed here, as fixed in TCL9 set declare [list \ [list -state Enum normal 0 [list normal disabled]] \ [list -text String "" 0] \ @@ -74,8 +72,6 @@ namespace eval Entry { COLOR {move {}} } - # Namespace variables overwrite global variables in TCL8 - # Not changed here, as fixed in TCL9 if {[Widget::theme]} { foreach event [bind TEntry] { bind BwEntry $event [bind TEntry $event] @@ -183,7 +179,7 @@ proc Entry::create { path args } { proc Entry::configure { path args } { # Cheat by setting the -text value to the current contents of the entry # This might be better hidden behind a function in ::Widget. - set ::Widget::Entry::${path}:opt(-text) [$path:cmd get] + set Widget::Entry::${path}:opt(-text) [$path:cmd get] set res [Widget::configure $path $args] diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/font.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/font.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/font.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/font.tcl index b61a258b..97c3c5de 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/font.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/font.tcl @@ -42,9 +42,6 @@ namespace eval SelectFont { # Set up preset lists of fonts, so the user can avoid the painfully slow # loadfont process if desired. - - # Namespace variables overwrite global variables in TCL8 - # Not changed here, as fixed in TCL9 if { [string equal $::tcl_platform(platform) "windows"] } { set presetVariable [list \ 7x14 \ diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/bold.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/bold.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/bold.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/bold.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/copy.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/copy.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/copy.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/copy.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/cut.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/cut.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/cut.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/cut.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/dragfile.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/dragfile.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/dragfile.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/dragfile.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/dragicon.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/dragicon.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/dragicon.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/dragicon.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/error.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/error.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/error.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/error.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/file.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/file.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/file.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/file.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/folder.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/folder.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/folder.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/folder.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/hourglass.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/hourglass.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/hourglass.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/hourglass.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/info.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/info.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/info.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/info.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/italic.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/italic.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/italic.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/italic.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/minus.xbm b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/minus.xbm similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/minus.xbm rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/minus.xbm diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/new.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/new.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/new.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/new.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/opcopy.xbm b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/opcopy.xbm similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/opcopy.xbm rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/opcopy.xbm diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/open.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/open.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/open.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/open.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/openfold.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/openfold.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/openfold.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/openfold.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/oplink.xbm b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/oplink.xbm similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/oplink.xbm rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/oplink.xbm diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/opmove.xbm b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/opmove.xbm similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/opmove.xbm rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/opmove.xbm diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/overstrike.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/overstrike.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/overstrike.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/overstrike.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/palette.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/palette.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/palette.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/palette.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/passwd.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/passwd.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/passwd.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/passwd.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/paste.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/paste.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/paste.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/paste.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/plus.xbm b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/plus.xbm similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/plus.xbm rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/plus.xbm diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/print.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/print.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/print.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/print.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/question.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/question.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/question.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/question.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/redo.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/redo.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/redo.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/redo.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/save.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/save.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/save.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/save.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/target.xbm b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/target.xbm similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/target.xbm rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/target.xbm diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/underline.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/underline.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/underline.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/underline.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/undo.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/undo.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/undo.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/undo.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/warning.gif b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/warning.gif similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/images/warning.gif rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/images/warning.gif diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/init.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/init.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/init.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/init.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/label.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/label.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/label.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/label.tcl index f4407430..cf5fc0cb 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/label.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/label.tcl @@ -124,7 +124,7 @@ proc Label::create { path args } { # ------------------------------------------------------------------------------ proc Label::configure { path args } { set oldunder [$path.l cget -underline] - if { $oldunder > -1 } { + if { $oldunder != -1 } { set oldaccel [string tolower [string index [$path.l cget -text] $oldunder]] } else { set oldaccel "" diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/labelentry.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/labelentry.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/labelentry.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/labelentry.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/labelframe.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/labelframe.tcl similarity index 98% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/labelframe.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/labelframe.tcl index 4c524748..3c816233 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/labelframe.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/labelframe.tcl @@ -114,10 +114,10 @@ proc LabelFrame::align { args } { set wlist {} foreach wl $args { foreach w $wl { - if { ![info exists ::Widget::_class($w)] } { + if { ![info exists Widget::_class($w)] } { continue } - set class $::Widget::_class($w) + set class $Widget::_class($w) if { [string equal $class "LabelFrame"] } { set textopt -text set widthopt -width diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/da.rc b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/da.rc similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/da.rc rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/da.rc diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/de.rc b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/de.rc similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/de.rc rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/de.rc diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/en.rc b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/en.rc similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/en.rc rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/en.rc diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/es.rc b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/es.rc similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/es.rc rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/es.rc diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/fr.rc b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/fr.rc similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/fr.rc rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/fr.rc diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/hu.rc b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/hu.rc similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/hu.rc rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/hu.rc diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/nl.rc b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/nl.rc similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/nl.rc rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/nl.rc diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/no.rc b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/no.rc similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/no.rc rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/no.rc diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/pl.rc b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/pl.rc similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/lang/pl.rc rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/lang/pl.rc diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/listbox.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/listbox.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/listbox.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/listbox.tcl index fc8ac1e4..ff63ba30 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/listbox.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/listbox.tcl @@ -802,12 +802,11 @@ proc ListBox::edit { path item text {verifycmd ""} {clickres 0} {select 1}} { -selectforeground [Widget::getoption $path -selectforeground] \ -selectbackground $sbg \ -font [_getoption $path $item -font] \ - -textvariable ::ListBox::_edit(text)] + -textvariable ListBox::_edit(text)] pack $ent -ipadx 8 -anchor w set idw [$path.c create window $x $y -window $frame -anchor w] - trace add variable _edit(text) write \ - [list ::ListBox::_update_edit_size $path $ent $idw $wmax] + trace variable ListBox::_edit(text) w [list ListBox::_update_edit_size $path $ent $idw $wmax] tkwait visibility $ent grab $frame BWidget::focus set $ent @@ -834,8 +833,7 @@ proc ListBox::edit { path item text {verifycmd ""} {clickres 0} {select 1}} { set ok 1 } } - trace remove variable _edit(text) write \ - [list ListBox::_update_edit_size $path $ent $idw $wmax] + trace vdelete ListBox::_edit(text) w [list ListBox::_update_edit_size $path $ent $idw $wmax] grab release $frame BWidget::focus release $ent destroy $frame @@ -911,10 +909,6 @@ proc ListBox::_destroy { path } { variable $path upvar 0 $path data - if { ![info exists data] && [string match ".#BWidget.#Class*" $path] } { - # this is a proxy win to query xrdb - return - } if { $data(upd,afterid) != "" } { after cancel $data(upd,afterid) } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/mainframe.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/mainframe.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/mainframe.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/mainframe.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/messagedlg.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/messagedlg.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/messagedlg.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/messagedlg.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/notebook.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/notebook.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/notebook.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/notebook.tcl index 9ac7a6ef..fec3f297 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/notebook.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/notebook.tcl @@ -461,15 +461,11 @@ proc NoteBook::_destroy { path } { variable $path upvar 0 $path data - if { ![info exists data] && [string match ".#BWidget.#Class*" $path] } { - # this is a proxy win to query xrdb - return - } foreach page $data(pages) { Widget::destroy $path.f$page } Widget::destroy $path - unset -nocomplain data + unset data } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/pagesmgr.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/pagesmgr.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/pagesmgr.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/pagesmgr.tcl index 58e0e13f..5d328b58 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/pagesmgr.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/pagesmgr.tcl @@ -20,7 +20,7 @@ # - PagesManager::_draw_area # - PagesManager::_realize # ------------------------------------------------------------------------------ -package require Tcl 8.1.1 9 +package require Tcl 8.1.1 namespace eval PagesManager { Widget::define PagesManager pagesmgr diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/panedw.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/panedw.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/panedw.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/panedw.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/panelframe.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/panelframe.tcl similarity index 95% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/panelframe.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/panelframe.tcl index e9f93487..fb8bc193 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/panelframe.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/panelframe.tcl @@ -1,246 +1,246 @@ -# ---------------------------------------------------------------------------- -# panelframe.tcl -# Create PanelFrame widgets. -# A PanelFrame is a boxed frame that allows you to place items -# in the label area (liked combined frame+toolbar). It uses the -# highlight colors the default frame color. -# $Id: panelframe.tcl,v 1.1 2004/09/09 22:17:51 hobbs Exp $ -# ---------------------------------------------------------------------------- -# Index of commands: -# - PanelFrame::create -# - PanelFrame::configure -# - PanelFrame::cget -# - PanelFrame::getframe -# - PanelFrame::add -# - PanelFrame::remove -# - PanelFrame::items -# ---------------------------------------------------------------------------- - -namespace eval PanelFrame { - Widget::define PanelFrame panelframe - - Widget::declare PanelFrame { - {-background TkResource "" 0 frame} - {-borderwidth TkResource 1 0 frame} - {-relief TkResource flat 0 frame} - {-panelbackground TkResource "" 0 {entry -selectbackground}} - {-panelforeground TkResource "" 0 {entry -selectforeground}} - {-width Int 0 0} - {-height Int 0 0} - {-font TkResource "" 0 label} - {-text String "" 0} - {-textvariable String "" 0} - {-ipad String 1 0} - {-bg Synonym -background} - {-bd Synonym -borderwidth} - } - # Should we have automatic state handling? - #{-state TkResource "" 0 label} - - Widget::addmap PanelFrame "" :cmd { - -panelbackground -background - -width {} -height {} -borderwidth {} -relief {} - } - Widget::addmap PanelFrame "" .title { - -panelbackground -background - } - Widget::addmap PanelFrame "" .title.text { - -panelbackground -background - -panelforeground -foreground - -text {} -textvariable {} -font {} - } - Widget::addmap PanelFrame "" .frame { - -background {} - } - - if {0} { - # This would be code to have an automated close button - #{-closebutton Boolean 0 0} - Widget::addmap PanelFrame "" .title.close { - -panelbackground -background - -panelforeground -foreground - } - variable HaveMarlett \ - [expr {[lsearch -exact [font families] "Marlett"] != -1}] - - variable imgdata { - #define close_width 16 - #define close_height 16 - static char close_bits[] = { - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x10, 0x08, - 0x38, 0x1c, 0x70, 0x0e, - 0xe0, 0x07, 0xc0, 0x03, - 0xc0, 0x03, 0xe0, 0x07, - 0x70, 0x0e, 0x38, 0x1c, - 0x10, 0x08, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00}; - } - # We use the same -foreground as the default -panelbackground - image create bitmap ::PanelFrame::X -data $imgdata \ - -foreground [lindex $::Widget::PanelFrame::opt(-panelbackground) 1] - } - - bind PanelFrame [list Widget::destroy %W] -} - - -# ---------------------------------------------------------------------------- -# Command PanelFrame::create -# ---------------------------------------------------------------------------- -proc PanelFrame::create { path args } { - variable HaveMarlett - - Widget::init PanelFrame $path $args - - set lblopts [list -bd 0 -highlightthickness 0] - set outer [eval [list frame $path -class PanelFrame] \ - [Widget::subcget $path :cmd]] - set title [eval [list frame $path.title] \ - [Widget::subcget $path .title]] - set tlbl [eval [list label $path.title.text] $lblopts -anchor w \ - [Widget::subcget $path .title.text]] - set inner [eval [list frame $path.frame] \ - [Widget::subcget $path .frame]] - - foreach {ipadx ipady} [_padval [Widget::cget $path -ipad]] { break } - - if {0} { - set btnopts [list -padx 0 -pady 0 -relief flat -overrelief raised \ - -bd 1 -highlightthickness 0] - set clbl [eval [list button $path.title.close] $btnopts \ - [Widget::subcget $path .title.close]] - set close [Widget::cget $path -closebutton] - if {$HaveMarlett} { - $clbl configure -font "Marlett -14" -text \u0072 - } else { - $clbl configure -image ::PanelFrame::X - } - if {$close} { - pack $path.title.close -side right -padx $ipadx -pady $ipady - } - } - - grid $path.title -row 0 -column 0 -sticky ew - grid $path.frame -row 1 -column 0 -sticky news - grid columnconfigure $path 0 -weight 1 - grid rowconfigure $path 1 -weight 1 - - pack $path.title.text -side left -fill x -anchor w \ - -padx $ipadx -pady $ipady - - return [Widget::create PanelFrame $path] -} - - -# ---------------------------------------------------------------------------- -# Command PanelFrame::configure -# ---------------------------------------------------------------------------- -proc PanelFrame::configure { path args } { - set res [Widget::configure $path $args] - - if {[Widget::hasChanged $path -ipad ipad]} { - } - - return $res -} - - -# ---------------------------------------------------------------------------- -# Command PanelFrame::cget -# ---------------------------------------------------------------------------- -proc PanelFrame::cget { path option } { - return [Widget::cget $path $option] -} - -# ---------------------------------------------------------------------------- -# Command PanelFrame::getframe -# ---------------------------------------------------------------------------- -proc PanelFrame::getframe { path } { - return $path.frame -} - -# ------------------------------------------------------------------------ -# Command PanelFrame::add -# ------------------------------------------------------------------------ -proc PanelFrame::add {path w args} { - variable _widget - - array set opts [list \ - -side right \ - -fill none \ - -expand 0 \ - -pad [Widget::cget $path -ipad] \ - ] - foreach {key val} $args { - if {[info exists opts($key)]} { - set opts($key) $val - } else { - set msg "unknown option \"$key\", must be one of: " - append msg [join [lsort [array names opts]] {, }] - return -code error $msg - } - } - foreach {ipadx ipady} [_padval $opts(-pad)] { break } - - set f $path.title - - lappend _widget($path,items) $w - pack $w -in $f -padx $ipadx -pady $ipady -side $opts(-side) \ - -fill $opts(-fill) -expand $opts(-expand) - - return $w -} - -# ------------------------------------------------------------------------ -# Command PanelFrame::remove -# ------------------------------------------------------------------------ -proc PanelFrame::remove {path args} { - variable _widget - - set destroy [string equal [lindex $args 0] "-destroy"] - if {$destroy} { - set args [lrange $args 1 end] - } - foreach w $args { - set idx [lsearch -exact $_widget($path,items) $w] - if {$idx == -1} { - # ignore unknown - continue - } - if {$destroy} { - destroy $w - } elseif {[winfo exists $w]} { - pack forget $w - } - set _widget($path,items) [lreplace $_widget($path,items) $idx $idx] - } -} - -# ------------------------------------------------------------------------ -# Command PanelFrame::delete -# ------------------------------------------------------------------------ -proc PanelFrame::delete {path args} { - return [PanelFrame::remove $path -destroy $args] -} - -# ------------------------------------------------------------------------ -# Command PanelFrame::items -# ------------------------------------------------------------------------ -proc PanelFrame::items {path} { - variable _widget - return $_widget($path,items) -} - -proc PanelFrame::_padval {padval} { - set len [llength $padval] - foreach {a b} $padval { break } - if {$len == 0 || $len > 2} { - return -code error \ - "invalid pad value \"$padval\", must be 1 or 2 pixel values" - } elseif {$len == 1} { - return [list $a $a] - } elseif {$len == 2} { - return $padval - } -} +# ---------------------------------------------------------------------------- +# panelframe.tcl +# Create PanelFrame widgets. +# A PanelFrame is a boxed frame that allows you to place items +# in the label area (liked combined frame+toolbar). It uses the +# highlight colors the default frame color. +# $Id: panelframe.tcl,v 1.1 2004/09/09 22:17:51 hobbs Exp $ +# ---------------------------------------------------------------------------- +# Index of commands: +# - PanelFrame::create +# - PanelFrame::configure +# - PanelFrame::cget +# - PanelFrame::getframe +# - PanelFrame::add +# - PanelFrame::remove +# - PanelFrame::items +# ---------------------------------------------------------------------------- + +namespace eval PanelFrame { + Widget::define PanelFrame panelframe + + Widget::declare PanelFrame { + {-background TkResource "" 0 frame} + {-borderwidth TkResource 1 0 frame} + {-relief TkResource flat 0 frame} + {-panelbackground TkResource "" 0 {entry -selectbackground}} + {-panelforeground TkResource "" 0 {entry -selectforeground}} + {-width Int 0 0} + {-height Int 0 0} + {-font TkResource "" 0 label} + {-text String "" 0} + {-textvariable String "" 0} + {-ipad String 1 0} + {-bg Synonym -background} + {-bd Synonym -borderwidth} + } + # Should we have automatic state handling? + #{-state TkResource "" 0 label} + + Widget::addmap PanelFrame "" :cmd { + -panelbackground -background + -width {} -height {} -borderwidth {} -relief {} + } + Widget::addmap PanelFrame "" .title { + -panelbackground -background + } + Widget::addmap PanelFrame "" .title.text { + -panelbackground -background + -panelforeground -foreground + -text {} -textvariable {} -font {} + } + Widget::addmap PanelFrame "" .frame { + -background {} + } + + if {0} { + # This would be code to have an automated close button + #{-closebutton Boolean 0 0} + Widget::addmap PanelFrame "" .title.close { + -panelbackground -background + -panelforeground -foreground + } + variable HaveMarlett \ + [expr {[lsearch -exact [font families] "Marlett"] != -1}] + + variable imgdata { + #define close_width 16 + #define close_height 16 + static char close_bits[] = { + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x10, 0x08, + 0x38, 0x1c, 0x70, 0x0e, + 0xe0, 0x07, 0xc0, 0x03, + 0xc0, 0x03, 0xe0, 0x07, + 0x70, 0x0e, 0x38, 0x1c, + 0x10, 0x08, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00}; + } + # We use the same -foreground as the default -panelbackground + image create bitmap ::PanelFrame::X -data $imgdata \ + -foreground [lindex $Widget::PanelFrame::opt(-panelbackground) 1] + } + + bind PanelFrame [list Widget::destroy %W] +} + + +# ---------------------------------------------------------------------------- +# Command PanelFrame::create +# ---------------------------------------------------------------------------- +proc PanelFrame::create { path args } { + variable HaveMarlett + + Widget::init PanelFrame $path $args + + set lblopts [list -bd 0 -highlightthickness 0] + set outer [eval [list frame $path -class PanelFrame] \ + [Widget::subcget $path :cmd]] + set title [eval [list frame $path.title] \ + [Widget::subcget $path .title]] + set tlbl [eval [list label $path.title.text] $lblopts -anchor w \ + [Widget::subcget $path .title.text]] + set inner [eval [list frame $path.frame] \ + [Widget::subcget $path .frame]] + + foreach {ipadx ipady} [_padval [Widget::cget $path -ipad]] { break } + + if {0} { + set btnopts [list -padx 0 -pady 0 -relief flat -overrelief raised \ + -bd 1 -highlightthickness 0] + set clbl [eval [list button $path.title.close] $btnopts \ + [Widget::subcget $path .title.close]] + set close [Widget::cget $path -closebutton] + if {$HaveMarlett} { + $clbl configure -font "Marlett -14" -text \u0072 + } else { + $clbl configure -image ::PanelFrame::X + } + if {$close} { + pack $path.title.close -side right -padx $ipadx -pady $ipady + } + } + + grid $path.title -row 0 -column 0 -sticky ew + grid $path.frame -row 1 -column 0 -sticky news + grid columnconfigure $path 0 -weight 1 + grid rowconfigure $path 1 -weight 1 + + pack $path.title.text -side left -fill x -anchor w \ + -padx $ipadx -pady $ipady + + return [Widget::create PanelFrame $path] +} + + +# ---------------------------------------------------------------------------- +# Command PanelFrame::configure +# ---------------------------------------------------------------------------- +proc PanelFrame::configure { path args } { + set res [Widget::configure $path $args] + + if {[Widget::hasChanged $path -ipad ipad]} { + } + + return $res +} + + +# ---------------------------------------------------------------------------- +# Command PanelFrame::cget +# ---------------------------------------------------------------------------- +proc PanelFrame::cget { path option } { + return [Widget::cget $path $option] +} + +# ---------------------------------------------------------------------------- +# Command PanelFrame::getframe +# ---------------------------------------------------------------------------- +proc PanelFrame::getframe { path } { + return $path.frame +} + +# ------------------------------------------------------------------------ +# Command PanelFrame::add +# ------------------------------------------------------------------------ +proc PanelFrame::add {path w args} { + variable _widget + + array set opts [list \ + -side right \ + -fill none \ + -expand 0 \ + -pad [Widget::cget $path -ipad] \ + ] + foreach {key val} $args { + if {[info exists opts($key)]} { + set opts($key) $val + } else { + set msg "unknown option \"$key\", must be one of: " + append msg [join [lsort [array names opts]] {, }] + return -code error $msg + } + } + foreach {ipadx ipady} [_padval $opts(-pad)] { break } + + set f $path.title + + lappend _widget($path,items) $w + pack $w -in $f -padx $ipadx -pady $ipady -side $opts(-side) \ + -fill $opts(-fill) -expand $opts(-expand) + + return $w +} + +# ------------------------------------------------------------------------ +# Command PanelFrame::remove +# ------------------------------------------------------------------------ +proc PanelFrame::remove {path args} { + variable _widget + + set destroy [string equal [lindex $args 0] "-destroy"] + if {$destroy} { + set args [lrange $args 1 end] + } + foreach w $args { + set idx [lsearch -exact $_widget($path,items) $w] + if {$idx == -1} { + # ignore unknown + continue + } + if {$destroy} { + destroy $w + } elseif {[winfo exists $w]} { + pack forget $w + } + set _widget($path,items) [lreplace $_widget($path,items) $idx $idx] + } +} + +# ------------------------------------------------------------------------ +# Command PanelFrame::delete +# ------------------------------------------------------------------------ +proc PanelFrame::delete {path args} { + return [PanelFrame::remove $path -destroy $args] +} + +# ------------------------------------------------------------------------ +# Command PanelFrame::items +# ------------------------------------------------------------------------ +proc PanelFrame::items {path} { + variable _widget + return $_widget($path,items) +} + +proc PanelFrame::_padval {padval} { + set len [llength $padval] + foreach {a b} $padval { break } + if {$len == 0 || $len > 2} { + return -code error \ + "invalid pad value \"$padval\", must be 1 or 2 pixel values" + } elseif {$len == 1} { + return [list $a $a] + } elseif {$len == 2} { + return $padval + } +} diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/passwddlg.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/passwddlg.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/passwddlg.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/passwddlg.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/pkgIndex.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/pkgIndex.tcl similarity index 96% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/pkgIndex.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/pkgIndex.tcl index d0717b00..0a4703f3 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/pkgIndex.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/pkgIndex.tcl @@ -1,9 +1,9 @@ if {[catch {package require Tcl}]} return # NOTE: auto_loaded top-level commands shall not be qualified (no leading ::) # but all others should. See auto_qualify for details. -package ifneeded BWidget 1.10.1 "\ - package require Tk 8.1.1 9;\ - [list tclPkgSetup $dir BWidget 1.10.1 { +package ifneeded BWidget 1.9.16 "\ + package require Tk 8.1.1-;\ + [list tclPkgSetup $dir BWidget 1.9.16 { {arrow.tcl source {ArrowButton ::ArrowButton::create ::ArrowButton::use}} {labelframe.tcl source {LabelFrame ::LabelFrame::create ::LabelFrame::use}} {labelentry.tcl source {LabelEntry ::LabelEntry::create ::LabelEntry::use}} diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/progressbar.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/progressbar.tcl similarity index 96% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/progressbar.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/progressbar.tcl index 1dc29205..73c48f25 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/progressbar.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/progressbar.tcl @@ -65,7 +65,7 @@ proc ProgressBar::create { path args } { set _widget($path,dir) 1 set _widget($path,var) [Widget::cget $path -variable] if {$_widget($path,var) != ""} { - GlobalVar::tracevar variable $_widget($path,var) write \ + GlobalVar::tracevar variable $_widget($path,var) w \ [list ProgressBar::_modify $path] set _widget($path,afterid) \ [after idle [list ProgressBar::_modify $path]] @@ -89,12 +89,12 @@ proc ProgressBar::configure { path args } { if { [Widget::hasChangedX $path -variable] } { set newv [Widget::cget $path -variable] if { $_widget($path,var) != "" } { - GlobalVar::tracevar vdelete $_widget($path,var) write \ + GlobalVar::tracevar vdelete $_widget($path,var) w \ [list ProgressBar::_modify $path] } if { $newv != "" } { set _widget($path,var) $newv - GlobalVar::tracevar variable $newv write \ + GlobalVar::tracevar variable $newv w \ [list ProgressBar::_modify $path] if {![info exists _widget($path,afterid)]} { set _widget($path,afterid) \ @@ -198,7 +198,7 @@ proc ProgressBar::_destroy { path } { } if {[info exists _widget($path,var)]} { if {$_widget($path,var) != ""} { - GlobalVar::tracevar vdelete $_widget($path,var) write \ + GlobalVar::tracevar vdelete $_widget($path,var) w \ [list ProgressBar::_modify $path] } unset _widget($path,var) diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/progressdlg.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/progressdlg.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/progressdlg.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/progressdlg.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/scrollframe.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/scrollframe.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/scrollframe.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/scrollframe.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/scrollview.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/scrollview.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/scrollview.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/scrollview.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/scrollw.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/scrollw.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/scrollw.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/scrollw.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/separator.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/separator.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/separator.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/separator.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/spinbox.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/spinbox.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/spinbox.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/spinbox.tcl index ac4fe99e..5689ba4f 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/spinbox.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/spinbox.tcl @@ -76,7 +76,7 @@ proc SpinBox::create { path args } { [list -highlightthickness 0 -takefocus 0 -class SpinBox] Widget::initFromODB SpinBox $path $maps(SpinBox) - if {$::Widget::_theme} { + if {$Widget::_theme} { set entry [eval [list Entry::create $path.e] $maps(.e)] } else { set entry [eval [list Entry::create $path.e] $maps(.e) -relief flat -bd 0] diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/statusbar.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/statusbar.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/statusbar.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/statusbar.tcl index 932d18d9..568c4acd 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/statusbar.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/statusbar.tcl @@ -10,7 +10,7 @@ # otherwise the resize behavior may behave oddly. # ------------------------------------------------------------------------ -package require Tk 8.3 9 +package require Tk 8.3 if {0} { proc sample {} { diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/tests/entry.test b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/tests/entry.test similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/tests/entry.test rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/tests/entry.test diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/titleframe.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/titleframe.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/titleframe.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/titleframe.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/tree.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/tree.tcl similarity index 98% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/tree.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/tree.tcl index 08d6159c..55f86a9d 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/tree.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/tree.tcl @@ -890,19 +890,16 @@ proc Tree::nodes { path node {first ""} {last ""} } { if { ![info exists data($node)] } { return -code error "node \"$node\" does not exist" } - set nodes {} - set res {} + if { ![string length $first] } { - set nodes [lrange $data($node) 1 end] - } elseif { ![string length $last] } { - set nodes [lindex [lrange $data($node) 1 end] $first] - } else { - set nodes [lrange [lrange $data($node) 1 end] $first $last] + return [lrange $data($node) 1 end] } - foreach n $nodes { - lappend res [_node_name_rev $path $n] + + if { ![string length $last] } { + return [lindex [lrange $data($node) 1 end] $first] + } else { + return [lrange [lrange $data($node) 1 end] $first $last] } - return $res } @@ -1047,11 +1044,11 @@ proc Tree::edit { path node text {verifycmd ""} {clickres 0} {select 1}} { -selectforeground [Widget::getoption $path -selectforeground] \ -selectbackground $sbg \ -font [Widget::getoption $path.$node -font] \ - -textvariable ::Tree::_edit(text)] + -textvariable Tree::_edit(text)] pack $ent -ipadx 8 -anchor w set idw [$path.c create window $x $y -window $frame -anchor w] - trace add variable _edit(text) write \ + trace variable Tree::_edit(text) w \ [list Tree::_update_edit_size $path $ent $idw $wmax] tkwait visibility $ent grab $frame @@ -1074,14 +1071,14 @@ proc Tree::edit { path node text {verifycmd ""} {clickres 0} {select 1}} { set ok 0 while { !$ok } { - tkwait variable ::Tree::_edit(wait) + tkwait variable Tree::_edit(wait) if { !$_edit(wait) || [llength $verifycmd]==0 || [uplevel \#0 $verifycmd [list $_edit(text)]] } { set ok 1 } } - trace remove variable _edit(text) write \ + trace vdelete Tree::_edit(text) w \ [list Tree::_update_edit_size $path $ent $idw $wmax] grab release $frame BWidget::focus release $ent @@ -2057,10 +2054,6 @@ proc Tree::_keynav {which win} { # The current node. proc Tree::_get_current_node {win} { - # TCL9 does not resolve sub-namespaces from parents (root) any more. - # The following sub-namespace ::Tree::selectTree was not observed - # on run-time tests. Nor ::selectTree - # So keep this for TCL 9 if {[info exists selectTree::selectCursor($win)]} { set result $selectTree::selectCursor($win) } elseif {[llength [set selList [$win selection get]]]} { @@ -2222,13 +2215,13 @@ proc Tree::_mouse_select { path cmd args } { proc Tree::_node_name { path node } { # Make sure node names are safe as tags and variable names - set map [list & \1 | \2 ^ \3 ! \4 : \5] + set map [list & \1 | \2 ^ \3 ! \4 :: \5] return [string map $map $node] } proc Tree::_node_name_rev { path node } { # Allow reverse interpretation of node names - set map [list \1 & \2 | \3 ^ \4 ! \5 :] + set map [list \1 & \2 | \3 ^ \4 ! \5 ::] return [string map $map $node] } @@ -2240,10 +2233,6 @@ proc Tree::_destroy { path } { variable $path upvar 0 $path data - if { ![info exists data] && [string match ".#BWidget.#Class*" $path] } { - # this is a proxy win to query xrdb - return - } if { $data(upd,afterid) != "" } { after cancel $data(upd,afterid) } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/utils.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/utils.tcl similarity index 99% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/utils.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/utils.tcl index d05782b2..16385c25 100644 --- a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/utils.tcl +++ b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/utils.tcl @@ -57,11 +57,7 @@ proc GlobalVar::getvar { varName } { # Command GlobalVar::tracevar # ---------------------------------------------------------------------------- proc GlobalVar::tracevar { cmd varName args } { - array set cmdmap { - variable {add variable} - vdelete {remove variable} - } - return [uplevel \#0 trace $cmdmap($cmd) [list $varName] $args] + return [uplevel \#0 [list trace $cmd $varName] $args] } diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/widget.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/widget.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/widget.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/widget.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/wizard.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/wizard.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/wizard.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/wizard.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/xpm2image.tcl b/src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/xpm2image.tcl similarity index 100% rename from src/vfs/_vfscommon.vfs/lib/BWidget1.10.1/xpm2image.tcl rename to src/vfs/_vfscommon.vfs/lib/BWidget1.9.16/xpm2image.tcl diff --git a/src/vfs/_vfscommon.vfs/lib/app-punkshell/punkshell.tcl b/src/vfs/_vfscommon.vfs/lib/app-punkshell/punkshell.tcl index bf35cbab..98798f45 100644 --- a/src/vfs/_vfscommon.vfs/lib/app-punkshell/punkshell.tcl +++ b/src/vfs/_vfscommon.vfs/lib/app-punkshell/punkshell.tcl @@ -95,11 +95,11 @@ dict with prevglobal {} dict set params -readprocesstranslation crlf dict set params -outtranslation lf - set id_err [shellfilter::stack::add stderr ansiwrap -action sink-locked -settings {-colour {red bold}}] + #set id_err [shellfilter::stack::add stderr ansiwrap -action sink-locked -settings {-colour {red bold}}] set exitinfo [shellfilter::run $script {*}$params] - shellfilter::stack::remove stderr $id_err + #shellfilter::stack::remove stderr $id_err if {[dict exists $exitinfo errorInfo]} { #strip out the irrelevant info from the errorInfo - we don't want info beyond 'invoked from within' as this is just plumbing related to the script sourcing @@ -346,9 +346,11 @@ dict with prevglobal {} } default { puts stderr "unrecognised script extension" + flush stderr } } - + flush stderr + flush stdout catch { shellfilter::stack::remove stderr $chanstack_stderr_redir shellfilter::stack::remove stdout $chanstack_stdout_redir diff --git a/src/vfs/_vfscommon.vfs/modules/packageTest-0.1.4.tm b/src/vfs/_vfscommon.vfs/modules/packageTest-0.1.4.tm deleted file mode 100644 index 36e42747a2b4d0cb3980fbdf1697c4fdf4343b6f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11955 zcmcgxcRZEv`!|wVW{B_@W$&2~Nud%^$UKgN!&%NSLPeoul$kP9Mj1)cK+*>pm1I>K zD1=I7R8+tFIR_E-9k1`}clzTv&vW0`{l515zG8zGd?XK`36KXGgM$3gWG~1DiGeV9 zggc4|5r`-P3g?b;SAzDSd?{!miUgs+8t}@Eg2s^1I0)?ZASpn2BIM^m($$4Uk?{}~ zPr;EPe=k@lctija*cO}!Ng83uC?XC)M*E>Kfe-};?<3(MvKN93p#sQ61d@z$ha|Ch zcLLsBk$^z@AUsiuekdXdjmJSAcnk~=O@aUd5(0~wdx9WAN@OfmncoidMBz|G1T2(7 zLgPGj0Yq4|t}X`crmKrZ_@G<>1{c~>ND=ShK|+zqfdmwUAR@g0Oh^yBhpl7)>5;M2 zKNhKk_JD#MkO(r;3ksqd6Ne{a5g7CV6y$)$dEg-ul87ddokHM~;RWEYphXg31EGjS zU`mNu7*wl}DQ>jKO3+>$!VOpy7}y;J?1x3;P_Q%#ct${wy_6ss0-i)d!)r(g4-~Kt zSVe$<+sH&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WCtT!qitT4NA=kfJ+&2>}0 za{02?$oxIM17Dd-UyQWY4+Z^v`}np2!kB;P)T=`2yEiRNO-gtvH7S#m%6HHQCPYTO zRWCzP3S1v7jSX1Q?Pn`wVzEwfA^169?q|6(yyaG(`_pCqCY#3 z^6FK=mR{BEPKPEpzc1r_UnYOIv~j?MZP+Tw!Z(8bC(E{Q^l;YXyY2StH7~E!ENbkJ zf54JbD(+P9PRQwsepol}s_Lrdh^`2gjZ(Ec`}(1*N~Ag9M(^@0%O+Jzd;s5BsC~D|VW@x=hNAM}mM}-cYj|4g6{KaHCGd2kY2fLlS zqhb)hd9rE6ccxXx-};73u!SRC(g~xtc#H2%2Itd%>@C_nw4QDJ!P$~88<^4&*LPj` znOk<_cE2WT$8_Lp!q?)X5oY(BdGc3GzFlJ#XjP6s6*>LljA4aYb90#UsmZG;8|adY zci=7ZYl4$(rQ3BToHHz)o^~i7{4%VoJn{N?)Xz;WlznKX>Lj{hwqv!^<@>9fi+P^% zcI;w!>*W|8Zq|Fb_JgcQu;1>$+X4o0jos%*ev-FqY#tMl-GvmI$^G%ZxN}!k>ZQ%M zO+UmUd0!og(z=V!Nhrztw%KwAJp&)zpQnys@VMafpUogGcQCDlH`9ZEj^LXNA4B(l DsWfhc diff --git a/src/vfs/_vfscommon.vfs/modules/packageTest-0.1.5.tm b/src/vfs/_vfscommon.vfs/modules/packageTest-0.1.5.tm deleted file mode 100644 index 3aba1ee9a55795a713f2423a33d4e2c2277ff70a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11963 zcmch6c|4Tg+rK4Clr0q!cPL{Q5o4Y7DJ8oi`7$hK39CutdDFEo(y^72{_0fPxFTC zFa(G|LSu0hh)lteaYQT*s|wlR_R#SZ92LTWHQ<#89Z#U)i4fT9NmYhO6lkv}6^VpJ z(MXUViB6!|%lr0wFpP-bW=tG;cHw!UfPMXbcU9 zg=GCmSTYH#LPleJ(Ox)}y*LULPa;B|BmxW%PlW&iD%uY>{RB;g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/modules/packagetest-0.1.7.tm new file mode 100644 index 0000000000000000000000000000000000000000..658d45a4e571209317a9621e1b6a1f037186fe5f GIT binary patch literal 12090 zcmch7c|4R+`?q~5dlZsxOHy{Jm@JW!PzptiG0b8ZGt6QqOUP0oLY9;*YY{0SQkE9l zkwl?Ht4c}gJ@*Vn)bIH{@B4YDKZg50=Q`K=y}swtB52k}&Y$23;Rr-5G%N;^ z^B`k9$ru$+w2M0$k5%!;Qm6zn3Br+yuzCb41T>(cJ+L!R&{Rm3=D{%Lj|1^o5|)C7 zh0>`65*`6mghe9|M1nH{;emF?qJR!4=2J+8jKfi}G@73$7D7{8T!EU9E_e@nNgvXs zc`$yMV-f)e1=zcwX)dl%0K=IiGQ|T;B=} zRh|$C7mY%2p#hgs4c5rcIW%a_Z)i_X5QcyNAQaYpAq`>sb99E~&9wr40-^@H21B4gOx3_oBsfEU={8RYyanrvoxg=C z;LkY1(#SZl!G%tP!-7O27ZeG!K%q$(6iC`>RVZXKjiC!uFbz#0{#I+g5F#4H6iC}ZTgV?ti%7NBzz(qFc^yD4d+=5zlJ~X5<^Jd=${LW zAbB8W!6gfuI&*Nq!mn{;3Kk9O-xp{G1;C3H<$c%u)p4_y8!Z3{Ohcx_!a$JeDuado zwZdk05kW}<=w|xKcR?HBr3)Lf@YCr$SkPw+{g>)w z$^$hDKorJMD#LN}YRos7^0f96{LYw61RM5>p7GNo$6~WQQK(P1)&4*p!42sQt!MF3%cm9((4wRo` z$6sp;4jGP4Bu>*2$li?%_=mjo?u0Xq zWZoG;5S9o6@%Nma?EqNPw2kuw!68~u+5eq7i{=StM2>-nE@Tf6&|#?%qe@|V1{f&A zSR@1(lC13C(pL^m!P8*`0lXC^k}j@r-hzB1L(Tw}09^vr4!>p);u&I#Kv*!q3QKdD zrxa|h92O0y?sPMzBADEGW*0**PmnM)_&J;f3kw146ab{Ay5>3+bsYpWSIG2ECTcQ- zEi42>CatEyc?GSW#m`m)Mvf&xG(Zbs(EP0t6);FD8IYtI-64=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ts>s;D=Uq&_7K1Le)zq$9e zwYouS@`!k{VB9?~prk?FO57 z^i%R(1O=?!Nq2MASBE<2y4w}?*)^zU2lT6$kK zZ&mu1@CGqYp2cSe6dZZ4r&X7wD16r-pL}iI)yUF;Fv_th-=1L8SbS7jV<#p>q`~_R zUCMA5+6fDdY8BnRu$cUre~X5?Oa04@JbNOtT*ZQ4D!tng(YSG7^F2MyKO4Apv2eyu70uq_M0ZLr_=NSn{uiD$SwpZM~lv!uVDE-rc`sGm2Xso3kfwC1+b zr?Jn`4eUdQF87%#qNK(REX`QiL|Ohmz62A@S)c#iFw@eElMCL=3jR5O?>hJxmj44g C6_b(x literal 0 HcmV?d00001 diff --git a/src/vfs/_vfscommon.vfs/modules/pattern/IPatternBuilder-2.0.tm b/src/vfs/_vfscommon.vfs/modules/pattern/IPatternBuilder-2.0.tm new file mode 100644 index 00000000..35a56b5d --- /dev/null +++ b/src/vfs/_vfscommon.vfs/modules/pattern/IPatternBuilder-2.0.tm @@ -0,0 +1,326 @@ +package provide pattern::IPatternBuilder 2.0 + +#Definition of pattern interface with interface ID 'PatternBuilder' +#Execution context: pp::Obj${OID}::_meta namespace (varspace _meta) + +namespace eval pattern { +} + +package require TclOO + +oo::class create ::pattern::IPatternBuilder +oo::define ::pattern::IPatternBuilder { + variable o_OID +} + +oo::define ::pattern::IPatternBuilder method ID {} { + my variable o_OID + puts "IPatternBuilder returning id $o_OID" + return $o_OID +} +oo::define ::pattern::IPatternBuilder method do {script} { + eval $script +} +oo::define ::pattern::IPatternBuilder method test {} { + return [my ID] +} +oo::define ::pattern::IPatternBuilder method test2 {} { + return [my PatternBuilder.ID] +} +oo::define ::pattern::IPatternBuilder method test3 {} { + return "info level 0 = \[[info level 0]\]" +} + +oo::define ::pattern::IPatternBuilder forward test4 my API(varspace_meta)getmap + +#gather all varspaces from interfaces on this object +oo::define ::pattern::IPatternBuilder method (GET)Varspaces {} { + my variable o_OID + #set builtin_varspaces [list _ref _meta _main _iface _apimanager] + set raw_nslist [namespace children ::pp::Obj${o_OID}] + set spaces [list] + foreach ns $raw_nslist { + lappend spaces [namespace tail $ns] + } + return [concat main $spaces] +} + +#gather all varspaces from patterns +oo::define ::pattern::IPatternBuilder method (GET)PatternVarspaces {} { + +} + + +oo::define ::pattern::IPatternBuilder method Constructor {arglist body} { + my variable o_OID _ID_ o_pattern_apis o_interface_default_api + set invocants [dict get $_ID_ i] + + set apiname [set ::pp::Obj${o_OID}::_meta::o_interface_default_api] + + set istack [dict get $o_pattern_apis $apiname] + + set iid_top [lindex $patterns end] ;#!todo - choose 'open' interface to expand. + + set iface ::p::ifaces::>$iid_top + + if {(![string length $iid_top]) || ([$iface . isClosed])} { + #no existing pattern - create a new interface + set iid_top [expr {$::p::ID + 1}] ;#PREDICT the next object's id + #set iid_top [::p::get_new_object_id] + + #the >interface constructor takes a list of IDs for o_usedby + set iface [::pp::>interface .. Create ::pp::ifaces::>$iid_top [set usedby [list $OID]] ] + + dict set o_pattern_apis $apiname [concat $patterns $iid_top] + } + set IID $iid_top + + namespace upvar ::pp::Obj${IID}::_iface o_open o_open o_constructor o_constructor o_varspace o_varspace + + + # examine the existing command-chain + set maxversion [::p::predator::method_chainhead $IID (CONSTRUCTOR)] + set headid [expr {$maxversion + 1}] + set THISNAME (CONSTRUCTOR).$headid ;#first version will be $method.1 + + #set next [::p::predator::next_script $IID (CONSTRUCTOR) $THISNAME $_ID_] + + #set varspaces [::pattern::varspace_list] + set processed [dict create {*}[::p::predator::expand_var_statements $body $o_varspace]] + + if {[llength [dict get $processed explicitvars]]} { + set body [dict get $processed body] + } else { + set varDecls [::p::predator::runtime_vardecls] + set body $varDecls\n[dict get $processed body] + #puts stderr "\t runtime_vardecls in Constructor $varDecls" + } + + #set body [string map [::list @OID@ "\[lindex \[dict get \$_ID_ i this\] 0 0\]" @this@ "\[lindex \[dict get \[set ::p::\[lindex \[dict get \$_ID_ i this\] 0 0\]::_meta::map\] invocantdata \] 3\]" @next@ $next] $body\n] + set body [string map [::list @OID@ "\[dict get \[lindex \[dict get \$_ID_ i this\] 0\] id\]" @this@ "\[dict get \[lindex \[dict get \$_ID_ i this\] 0\] id\]" @next@ error] $body\n] + + #puts stderr ---- + #puts stderr $body + #puts stderr ---- + + + + #proc ::p::${IID}::_iface::(CONSTRUCTOR).$headid [concat _ID_ $arglist] $body + #interp alias {} ::p::${IID}::_iface::(CONSTRUCTOR) {} ::p::${IID}::_iface::(CONSTRUCTOR).$headid + + + + set o_constructor [list $arglist $body] + set o_open 1 + + return +} + + + + + +oo::define ::pattern::IPatternBuilder method Method {method arglist bodydef args} { + my variable o_OID _ID_ + + set invocants [dict get $_ID_ i] + set invocant_signature [list] ; + ;# we sort when calculating the sig.. so a different key order will produce the same signature - !todo - this is probably desirable but review anyway. + foreach role [lsort [dict keys $invocants]] { + lappend invocant_signature $role [llength [dict get $invocants $role]] + } + #note: it's expected that by far the most common 'invocant signature' will be {this 1} - which corresponds to a standard method dispatch on a single invocant object - the 'subject' (aka 'this') + + set IID [::pp::predator::get_possibly_new_open_interface $o_OID] + + error "unimplemented" + +} + +oo::define ::pattern::IPatternBuilder method INFO {INVOCANTS} { + my variable _ID_ o_interface_apis o_pattern_apis o_invocantrecord o_interface_default_api o_pattern_default_api + + puts stderr "\tINVOCANTS:$INVOCANTS\n" + puts stderr "\t[info level 0]\n" + set result "" + append result "_ID_: $_ID_\n" + + set invocants [dict get $_ID_ i] + set invocant_roles [dict keys $invocants] + append result "invocant roles: $invocant_roles\n" + set total_invocants 0 + foreach key $invocant_roles { + incr total_invocants [llength [dict get $invocants $key]] + } + + append result "invocants: ($total_invocants invocant(s) in [llength $invocant_roles] role(s)) \n" + foreach key $invocant_roles { + append result "\t-------------------------------\n" + append result "\trole: $key\n" + set role_members [dict get $invocants $key] ;#usually the role 'this' will have 1 member - but roles can have any number of invocants + append result "\t Raw data for this role: $role_members\n" + append result "\t Number of invocants in this role: [llength $role_members]\n" + foreach member $role_members { + #set OID [lindex [dict get $invocants $key] 0 0] + set OID [lindex $member 0] + set OID [dict get $member id] + append result "\t\tOID: $OID\n" + #lassign $o_invocantrecord _OID namespace default_method cmd _wrapped + dict update o_invocantrecord id _OID ns namespace defaultmethod default_method object cmd {} + append result "\t\tNamespace: $namespace\n" + append result "\t\tDefault method: $default_method\n" + append result "\t\tCommand: $cmd\n" + append result "\t\tClass: [info object class $cmd]\n" + + append result "\t\tDefault API: $o_interface_default_api\n" + append result "\t\tinterface apis: \n" + foreach key [dict keys $o_interface_apis] { + append result "\t\t\tapi:'$key'\n" + append result "\t\t\t\t[dict get $o_interface_apis $key]\n" + } + #append result "\t\tDefault pattern API: $o_pattern_default_api\n" + append result "\t\tpattern apis: \n" + foreach key [dict keys $o_pattern_apis] { + append result "\t\t\tapi:'$key'\n" + append result "\t\t\t\t[dict get $o_pattern_apis $key]\n" + } + + } + append result "\n" + append result "\t-------------------------------\n" + } + + + + return $result +} + +oo::define ::pattern::IPatternBuilder method IFINFO {{api "default"}} { + my variable _ID_ o_OID o_interface_apis o_pattern_apis o_interface_default_api + if {$api eq "default"} { + set api $o_interface_default_api} + + if {$api eq "*"} { + set apilist [dict keys $o_interface_apis] + } else { + set apilist [list $api] + } + + puts stderr "\t _ID_ --$_ID_--" + set invocants [dict get $_ID_ i] + + foreach a $apilist { + puts stderr "\t------------------------------\n" + puts stderr "\t API:'$a'\n" + puts stderr "\t------------------------------\n" + set interfaces [dict get $o_interface_apis $a] + set IFID [lindex $interfaces 0] + if {![llength $interfaces]} { + puts stderr "No interfaces present for api:'$a'" + } else { + foreach IFID $interfaces { + set iface ::pp::ifaces::>$IFID + puts stderr "$iface : [$iface --]" + puts stderr "\tis open: [set ::pp::I${IFID}::_iface::o_open]" + set variables [set ::pp::I${IFID}::_iface::o_variables] + puts stderr "\tvariables: $variables" + } + } + puts stderr "\t------------------------------\n" + } +} + + +oo::define ::pattern::IPatternBuilder method Create {target_spec args} { + my variable _ID_ o_OID o_invocantrecord o_interface_apis o_pattern_apis o_interface_default_api + set invocants [dict get $_ID_ i] + set invocant_roles [dict keys $invocants] ;#usually the only invocant role present will be 'this' (single dispatch case) + + set api $o_interface_default_api + lassign $o_invocantrecord o_OID parent_ns parent_defaultmethod parent_object_command + set interfaces [dict get $o_interface_apis $api] ;#level-0 interfaces + set patterns [dict get $o_pattern_apis $api] ;#level-1 interfaces + + #set parent_patterndefaultmethod [dict get $map patterndata patterndefaultmethod] + + #todo - change to dict of interface stacks + set IFID0 [lindex $interfaces 0] + set IFID1 [lindex $patterns 0] ;#1st pattern + + if {[llength $target_spec] ==1} { + set child $target_spec + set targets [list $child {}] + } else { + set targets $target_spec + } + + + + + set target_objects [list] + foreach child [dict keys $targets] { + set target_spec_dict [dict get $targets $child] + if {![string match {::*} $child]} { + if {[set ns [uplevel 1 {namespace current}]] eq "::"} { + set child ::$child + } else { + set child ${ns}::$child + } + } + #add > character if not already present + set child [namespace qualifiers $child]::>[string trimleft [namespace tail $child] >] + + #maintain a record of interfaces created so that we can clean-up if we get an error during any of the Constructor calls. + set new_interfaces [list] + if {![llength $patterns]} { + #puts stderr "===> WARNING: no level-1 interfaces (patterns) on object $parent_object_command when creating $child" + set patterns [list [set iid [::pp::get_new_object_id]]] + lappend new_interfaces [::pp::func::new_object ::pp::ifaces::>$iid $iid] + } + + if {![llength [info commands $child]]} { + #usual case - target/child does not exist + set is_new_object 1 + if {[dict exists $target_spec_dict -id]} { + ::pp::func::new_object $child [dict get $target_spec_dict -id] + } else { + ::pp::func::new_object $child + } + set child_ID [$child ## varspace_meta . ID] + #set childmapdata [set ::pp::Obj${child_ID}::_meta::map] + #upvar #0 ::pp::Obj${child_ID}::_meta::map CHILDMAP + + $child ## varspace_meta . (SET)interfaces $patterns + + set ifaces_added $patterns + } else { + #child exists - overlay + set is_new_object 0 + set existing_interfaces [$child ## varspace_meta . (GET)interfaces] + set ifaces_added [list] + foreach p $patterns { + if {$p ni $existing_interfaces} { + lappend ifaces_added $p + } + } + if {[llength $ifaces_added]} { + $child ## varspace_meta . (SET)interfaces [concat $existing_interfaces $ifaces_added] + } + } + + #only set the child's defaultmethod value if the parent_patterndefaultmethod is not empty + #if {$parent_patterndefaultmethod ne ""} { + # $child ## PatternInternal . (SET)default_method $parent_patterndefaultmethod + #} + + lappend target_objects $child + } + return $target_objects +} + + +namespace eval ::pattern { + set tmp_methods [info class methods ::pattern::IPatternBuilder -private] ;#-private returns all user-defined methods above + oo::define ::pattern::IPatternBuilder export {*}$tmp_methods + unset tmp_methods +} \ No newline at end of file diff --git a/src/vfs/_vfscommon.vfs/modules/pattern/IPatternInterface-2.0.tm b/src/vfs/_vfscommon.vfs/modules/pattern/IPatternInterface-2.0.tm new file mode 100644 index 00000000..c4303c8d --- /dev/null +++ b/src/vfs/_vfscommon.vfs/modules/pattern/IPatternInterface-2.0.tm @@ -0,0 +1,43 @@ +package provide pattern::IPatternInterface 2.0 + +#Definition of pattern interface with interface ID 'Define' +#Execution context: pp::Obj${OID}::_meta namespace (varspace _meta) + +namespace eval pattern { +} + +package require TclOO + +oo::class create ::pattern::IPatternInterface + +oo::define ::pattern::IPatternInterface { + variable o_open +} + +oo::define ::pattern::IPatternInterface method isOpen {} { + my variable o_open + return $o_open +} +oo::define ::pattern::IPatternInterface method isClosed {} { + my variable o_open + return [expr {!$o_open}] +} + +oo::define ::pattern::IPatternInterface method getcmd {args} { + return $args +} +oo::define ::pattern::IPatternInterface method run {args} { + uplevel 1 {*}$args +} + +#this is not the object's implemented varspaces - it is the varspace list for the interface specification this object represents +oo::define ::pattern::IPatternInterface method Varspaces {args} { + tailcall my API(varspace_iface)(GET)interface_varspaces +} + + +namespace eval ::pattern { + set tmp_methods [info class methods ::pattern::IPatternInterface -private] ;#-private returns all user-defined methods above + oo::define ::pattern::IPatternInterface export {*}$tmp_methods + unset tmp_methods +} \ No newline at end of file diff --git a/src/vfs/_vfscommon.vfs/modules/pattern/IPatternSystem-2.0.tm b/src/vfs/_vfscommon.vfs/modules/pattern/IPatternSystem-2.0.tm new file mode 100644 index 00000000..68663e62 --- /dev/null +++ b/src/vfs/_vfscommon.vfs/modules/pattern/IPatternSystem-2.0.tm @@ -0,0 +1,122 @@ + +# +# +package provide pattern::IPatternSystem 2.0 + +#Definition of pattern interface with interface ID 'PatternSystem' +#Execution context: pp::Obj${OID}::_meta namespace (varspace _meta) + +namespace eval pattern { +} + +package require TclOO + +oo::class create ::pattern::IPatternSystem + +oo::define ::pattern::IPatternSystem { + variable o_OID +} + +oo::define ::pattern::IPatternSystem method ID {} { + my variable o_OID + puts "IPatternSystem returning id $o_OID" + return $o_OID +} + + +oo::define ::pattern::IPatternSystem method get_possibly_new_open_interface {{apiname default}} { + my variable o_OID _ID_ o_interface_apis + + + if {$apiname eq "default"} { + set apiname [set ::pp::Obj${o_OID}::_meta::o_default_interface_api] + } + if {![dict exists $o_interface_apis $apiname]} { + error "get_possibly_new_open_interface Unable to find api:'$apiname'" + } + + set interfaces [dict get $o_interface_apis $apiname] + set iid_top [lindex $interfaces end] + set iface ::pp::ifaces::>$iid_top + if {(![string length $iid_top]) || ([$iface . isClosed])} { + #no existing pattern - create a new interface + set iid_top [expr {$::pp::ID + 1}] ;#PREDICT the next object's id + #puts stderr ">>>>creating new interface $iid_top" + set iface [::pp::>interface .. Create ::pp::ifaces::>$iid_top $o_OID] + + dict set o_interface_apis $apiname [concat $interfaces $iid_top] + } + return $iid_top +} + + +oo::define ::pattern::IPatternSystem method add_pattern_interface {iid {apiname default}} { + my variable _ID_ o_pattern_apis + #puts stderr "!!!!!!!!!!!!!!! add_pattern_interface $iid" + if {![string is integer -strict $iid]} { + error "add_pattern_interface adding interface by name not yet supported. Please use integer id" + } + + + if {$apiname eq "default"} { + set apiname [set ::pp::Obj${o_OID}::_meta::o_default_pattern_api] + } + if {![dict exists $o_pattern_apis $apiname]} { + error "add_interface Unable to find api:'$apiname'" + } + + + #set invocants [dict get $_ID_ i] + + set istack [dict get $o_pattern_apis $apiname] + + #it is theoretically possible to have the same interface present multiple times in an iStack. + # #!todo -review why/whether this is useful. should we disallow it and treat as an error? + dict set o_pattern_apis $apiname [concat $istack $iid] + + + + +} + + + +#!todo - update usedby ?? +oo::define ::pattern::IPatternSystem method add_interface {iid {apiname default}} { + my variable o_OID _ID_ o_interface_apis + if {![string is integer -strict $iid]} { + error "adding interface by name not yet supported. Please use integer id" + } + + + if {$apiname eq "default"} { + set apiname [set ::pp::Obj${o_OID}::_meta::o_default_interface_api] + } + if {![dict exists $o_interface_apis $apiname]} { + error "add_interface Unable to find api:'$apiname'" + } + + + lassign [dict get $_ID_ i this] list_of_invocants_for_role_this ;#Although there is normally only 1 'this' element - it is a 'role' and the structure is nonetheless a list. + set this_invocant [lindex $list_of_invocants_for_role_this 0] + lassign $this_invocant OID _etc + + set istack [dict get $o_interface_apis $apiname] + dict set o_interface_apis $apiname [concat $istack $iid] + + return [dict get $o_interface_apis $apiname] +} + + +oo::define ::pattern::IPatternSystem method INVOCANTDATA {} { + my variable _ID_ + #same as a call to: >object .. + return $_ID_ +} + + +namespace eval ::pattern { + set tmp_methods [info class methods ::pattern::IPatternSystem -private] ;#-private returns all user-defined methods above + oo::define ::pattern::IPatternSystem export {*}$tmp_methods + unset tmp_methods +} \ No newline at end of file diff --git a/src/vfs/_vfscommon.vfs/modules/pattern/ms-1.0.12.tm b/src/vfs/_vfscommon.vfs/modules/pattern/ms-1.0.12.tm new file mode 100644 index 00000000..09a4a005 --- /dev/null +++ b/src/vfs/_vfscommon.vfs/modules/pattern/ms-1.0.12.tm @@ -0,0 +1,330 @@ +#JMN 2007 +#public domain + +#experimental +#VERY incomplete + +package require pattern +package require patternlib +package require struct::set + +package provide pattern::ms [namespace eval ::pattern::ms { + variable version + set version 1.0.12 +}] + + +#-------------------------------------------------- +namespace eval ::pattern::ms { + ::>pattern .. Create >IEnumerable + >IEnumerable .. PatternVariable i ;#current index + >IEnumerable .. PatternProperty Current + >IEnumerable .. PatternPropertyRead Current {} { + var o_list i + return [lindex $o_list $i] + } + >IEnumerable .. PatternMethod MoveNext {} { + var i + incr i + } + >IEnumerable .. PatternMethod Reset {} { + var i + set i 0 + } +} + +#-------------------------------------------------- +namespace eval ::pattern::ms { + ::>pattern .. Create >Enumerator + >Enumerator .. PatternVariable o_enumerable + + >Enumerator .. Constructor {IEnumerable_object} { + var o_enumerable + set o_enumerable $IEnumerable_object + } + + >Enumerator .. PatternMethod atEnd {} { + var i o_list + return [expr {$i >= ([llength $o_list] -1)} ] + } + >Enumerator .. PatternMethod moveNext {} { + var i + incr i + } + >Enumerator .. PatternMethod moveFirst {} { + var i + set i 0 + } + >Enumerator .. PatternMethod item {} { + var i o_list + return [lindex $o_list $i] + } +} + + +#-------------------------------------------------- +namespace eval ::pattern::ms { + ::>pattern .. Create >textstream + >textstream .. PatternVariable o_fd ;#file descriptor + + >textstream .. Constructor {args} { + set opts [dict merge { + -mode r + } $args] + + if {([dict get $opts -mode] eq "r") && ![file exists [dict get $opts -path]]} { + error "file [dict get $opts -path] not found" + } + + set o_fd [open [dict get $opts -path] [dict get $opts -mode]] + return + } + + >textstream .. PatternMethod Write {data} { + var o_fd + puts -nonewline $o_fd $data + } + >textstream .. PatternMethod WriteLine {{line ""}} { + var o_fd + puts $o_fd $line + } + >textstream .. PatternMethod WriteBlankLines {howmany} { + var o_fd + #!todo - work out proper line-ending and write in single call. + if {$howmany > 0} { + for {set i 0} {$i < $howmany} {incr i} { + puts $o_fd "" + } + } + } + >textstream .. PatternMethod Read {{numbytes ""}} { + var o_fd + if {[string length $numbytes]} { + return [read $o_fd $numbytes] + } else { + return [read $o_fd] + } + } + >textstream .. PatternMethod ReadLine {} { + var o_fd + return [gets $o_fd] + } + >textstream .. PatternMethod ReadAll {} { + var o_fd + return [read $o_fd] ;#don't use size argument - we can't be sure it hasn't changed since opening (?) + } + >textstream .. PatternMethod Skip {numchars} { + var o_fd + seek $o_fd $numchars current + } + >textstream .. PatternMethod SkipLine {} { + var o_fd + gets $o_fd + return + } + + >textstream .. PatternMethod Close {} { + var o_fd + close $o_fd + } +} + +#------------------------------------------------------------------------------ +# https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/file-object +namespace eval ::pattern::ms { + ::>pattern .. Create >fso_file + >fso_file .. PatternVariable o_path + >fso_file .. Constructor {args} { + var this o_path + set this @this@ + + set opts [dict merge { + + } $args] + + if {![file exists [dict get $opts -path]]} { + error "cannot find file '[dict get $opts -path]'" + } + if {![file isfile [dict get $opts -path]]} { + error "path '[dict get $opts -path]' does not appear to be a file" + } + + set o_path [dict get $opts -path] + + return + } + >fso_file .. PatternProperty Name + >fso_file .. PatternPropertyRead Name {} { + var o_path + return [file tail $o_path] ;#??? + } + >fso_file .. PatternPropertyWrite Name {newname} { + var o_path + file rename $o_path [file dirname $o_path]/$newname + return + } + >fso_file .. PatternProperty Path + >fso_file .. PatternPropertyRead Path {} { + var o_path + return $o_path + } + +} + + +#------------------------------------------------------------------------------ +namespace eval ::pattern::ms { + ::>pattern .. Create >fso_folder + >fso_folder .. PatternVariable o_path + >fso_folder .. PatternVariable o_files ;#collection + + >fso_folder .. Constructor {args} { + var this ns o_path o_files + + set this @this@ + set ns [$this .. Namespace] + + set opts [dict merge { + + } $args] + + if {![file exists [dict get $opts -path]]} { + error "cannot find folder '[dict get $opts -path]'" + } + if {![file isdirectory [dict get $opts -path]]} { + error "path '[dict get $opts -path]' does not appear to be a folder" + } + + set o_path [dict get $opts -path] + + set o_files [::patternlib::>collection .. Create ${ns}::>col_files] + + return + } + + + #!todo - what happens to the object? destroy it? + >fso_folder .. PatternMethod Delete {{force 0}} { + var this o_path + if {$force} { + file delete -force $o_path + } else { + file delete $o_path + } + + #?? + # $this .. Destroy + return + } + + >fso_folder .. PatternProperty DateCreated + >fso_folder .. PatternPropertyRead DateCreated {} { + var o_path + file stat $o_path info + return $info(ctime) + } + >fso_folder .. PatternProperty DateLastAccessed + >fso_folder .. PatternPropertyRead DateLastAccessed {} { + var o_path + return [file atime $o_path] + } + >fso_folder .. PatternProperty DateLastModified + >fso_folder .. PatternPropertyRead DateLastModified {} { + var o_path + return [file mtime $o_path] + } + + >fso_folder .. PatternProperty Files + >fso_folder .. PatternPropertyRead Files {} { + var ns o_path objectcounter o_files + set filenames [glob -dir $o_path -type f -tail *] + lappend filenames {*}[glob -dir $o_path -types {f hidden} -tail *] + + set NEW [::pattern::ms::>fso_file .. Create .] + set files [list] + + set superfluous [struct::set difference [$o_files . names] $filenames] + foreach doomed $superfluous { + set f [$o_files . item $doomed] + $f .. Destroy + $o_files . del $doomed + } + + set missing [struct::set difference $filenames [$o_files . names]] + foreach fname $missing { + if {[catch { + set fobj [$NEW ${ns}::>fl_[incr objectcounter] -path $o_path/$fname] + } errM]} { + #There can exist characterSpecial files such as 'nul' that aren't identified as file or directory by Tcl 'file isfile' or 'file isdirectory' + # yet were picked up by glob + #(these shouldn't really exist - but can be accidentally created) + #we don't want an error in creating an >fso_file for this to stop us accessing any other files in the folder + #but we should at least be loud about it by emitting the error to stderr + puts stder " + } + $o_files . add [$NEW ${ns}::>fl_[incr objectcounter] -path $o_path/$fname] $fname + } + + return [$o_files . items] + } +} + + +#------------------------------------------------------------------------------ +#vba and vb6 File System Object (used the same COM component - Microsoft Scripting Runtime library scrrun.dll) +namespace eval ::pattern::ms { + ::>pattern .. Create >fso + + >fso .. PatternVariable objectcounter ;# + >fso .. Constructor {args} { + var this ns objectcounter + set this @this@ + set ns [$this .. Namespace] + + set objectcounter 0 + } + + >fso .. PatternMethod CreateTextFile {path {bool 1}} { + var ns objectcounter + set ts [::pattern::ms::>textstream .. Create ${ns}::>ts_[incr objectcounter] -path $path -mode w] + return $ts + } + + >fso .. PatternMethod OpenTextFile {path mode {bool 1}} { + var ns objectcounter + + switch -- [string tolower $mode] { + 1 - + forreading { + set md r + } + 2 - + forwriting { + set md w + } + 8 - + forappending { + set md a + } + default { + error "unknown file mode - $mode" + } + } + set ts [::pattern::ms::>textstream .. Create ${ns}::>ts_[incr objectcounter] -mode $md -path $path] + return $ts + } + + >fso .. PatternMethod GetFolder {path} { + var ns objectcounter + + set fld [::pattern::ms::>fso_folder .. Create ${ns}::>fld_[incr objectcounter] -path $path] + return $fld + } + >fso .. PatternProperty Drives + >fso .. PatternPropertyRead Drives {} { + var ns + error "unimplemented" + #todo >fso_drive object and collection + } +} + diff --git a/src/vfs/_vfscommon.vfs/modules/pattern2-2.0.tm b/src/vfs/_vfscommon.vfs/modules/pattern2-2.0.tm new file mode 100644 index 00000000..28d415ab --- /dev/null +++ b/src/vfs/_vfscommon.vfs/modules/pattern2-2.0.tm @@ -0,0 +1,911 @@ +#PATTERN +# - A prototype-based Object system. +# +# Julian Noble 2003 +# License: Public domain +# + +# "I need pattern" - Lexx Series 1 Episode 3 - Eating Pattern. +# +# +# Pattern uses a mixture of class-based and prototype-based object instantiation. +# +# A pattern object has 'properties' and 'methods' +# The system makes a distinction between them with regards to the access syntax for write operations, +# and yet provides unity in access syntax for read operations. +# e.g >object . myProperty +# will return the value of the property 'myProperty' +# >ojbect . myMethod +# will return the result of the method 'myMethod' +# contrast this with the write operations: +# set [>object . myProperty .] blah +# >object . myMethod blah +# however, the property can also be read using: +# set [>object . myProperty .] +# Note the trailing . to give us a sort of 'reference' to the property. +# this is NOT equivalent to +# set [>object . myProperty] +# This last example is of course calling set against a standard variable whose name is whatever value is returned by reading the property +# i.e it is equivalent in this case to: set blah + +#All objects are represented by a command, the name of which contains a leading ">". +#Any commands in the interp which use this naming convention are assumed to be a pattern object. +#Use of non-pattern commands containing this leading character is not supported. (Behaviour is undefined) + +#All user-added properties & methods of the wrapped object are accessed +# using the separator character "." +#Metamethods supplied by the patterm system are accessed with the object command using the metamethod separator ".." +# e.g to instantiate a new object from an existing 'pattern' (the equivalent of a class or prototype) +# you would use the 'Create' metamethod on the pattern object like so: +# >MyFactoryClassOrPrototypeLikeThing .. Create >NameOfNewObject +# '>NameOfNewObject' is now available as a command, with certain inherited methods and properties +# of the object it was created from. ( + + +#The use of the access-syntax separator character "." allows objects to be kept +# 'clean' in the sense that the only methods &/or properties that can be called this way are ones +# the programmer(you!) put there. Existing metamethods such as 'Create' are accessed using a different syntax +# so you are free to implement your own 'Create' method on your object that doesn't conflict with +# the metamethod. + +#Chainability (or how to violate the Law of Demeter!) +#The . access-syntax gives TCL an OO syntax more closely in line with many OO systems in other +# languages such as Python & VB, and allows left to right keyboard-entry of a deeply nested object-reference +# structure, without the need to regress to enter matching brackets as is required when using +# standard TCL command syntax. +# ie instead of: +# [[[object nextObject] getItem 4] getItem [chooseItemNumber]] doSomething +# we can use: +# >object . nextObject . getItem 4 . getItem [chooseItemNumber] . doSomething +# +# This separates out the object-traversal syntax from the TCL command syntax. + +# . is the 'traversal operator' when it appears between items in a commandlist +# . is the 'reference operator' when it is the last item in a commandlist +# , is the 'index traversal operator' (or 'nest operator') - mathematically it marks where there is a matrix 'partition'. +# It marks breaks in the multidimensional structure that correspond to how the data is stored. +# e.g obj . arraydata x y , x1 y1 z1 +# represents an element of a 5-dimensional array structured as a plane of cubes +# e.g2 obj . arraydata x y z , x1 y1 +# represents an element of a 5-dimensional array structured as a cube of planes +# The underlying storage for e.g2 might consist of something such as a Tcl array indexed such as cube($x,$y,$z) where each value is a patternlib::>matrix object with indices x1 y1 +# .. is the 'meta-traversal operator' when it appears between items in a commandlist +# .. is the 'meta-info operator'(?) when it is the last item in a commandlist + + +#!todo - Duck Typing: http://en.wikipedia.org/wiki/Duck_typing +# implement iStacks & pStacks (interface stacks & pattern stacks) + +#see also: Using namsepace ensemble without a namespace: http://wiki.tcl.tk/16975 + + +#------------------------------------------------------------ +# System objects. +#------------------------------------------------------------ +#::pp::Obj-1 ::p::internals::>metaface +#::pp::Obj0 ::p::ifaces::>null +#::pp::Obj1 ::>pattern +#------------------------------------------------------------ + +#TODO + +#investigate use of [namespace path ... ] to resolve command lookup (use it to chain iStacks?) + + +#CHANGES +#2018-09 - v 1.2.2 +# varied refactoring +# Changed invocant datastructure curried into commands (the _ID_ structure) +# Changed MAP structure to dict +# Default Method no longer magic "item" - must be explicitly set with .. DefaultMethod (or .. PatternDefaultMethod for patterns) +# updated test suites +#2018-08 - v 1.2.1 +# split ::p::predatorX functions into separate files (pkgs) +# e.g patternpredator2-1.0.tm +# patternpredator1-1.0 - split out but not updated/tested - probably obsolete and very broken +# +#2017-08 - v 1.1.6 Fairly big overhaul +# New predator function using coroutines +# Added bang operator ! +# Fixed Constructor chaining +# Added a few tests to test::pattern +# +#2008-03 - preserve ::errorInfo during var writes + +#2007-11 +#Major overhaul + new functionality + new tests v 1.1 +# new dispatch system - 'predator'. +# (preparing for multiple interface stacks, multiple invocants etc) +# +# +#2006-05 +# Adjusted 'var' expansion to use the new tcl8.5 'namespace upvar $ns v1 n1 v2 n2 ... ' feature. +# +#2005-12 +# Adjusted 'var' expansion in method/constructor etc bodies to be done 'inline' where it appears rather than aggregated at top. +# +# Fixed so that PatternVariable default applied on Create. +# +# unified interface/object datastructures under ::p:::: instead of seperate ::p::IFACE:::: +# - heading towards multiple-interface objects +# +#2005-10-28 +# 1.0.8.1 passes 80/80 tests +# >object .. Destroy - improved cleanup of interfaces & namespaces. +# +#2005-10-26 +# fixes to refsync (still messy!) +# remove variable traces on REF vars during .. Destroy +# passes 76/76 +# +#2005-10-24 +# fix objectRef_TraceHandler so that reading a property via an object reference using array syntax will call a PropertyRead function if defined. +# 1.0.8.0 now passes 75/76 +# +#2005-10-19 +# Command alias introduced by @next@ is now placed in the interfaces namespace. (was unnamespaced before) +# changed IFACE array names for level0 methods to be m-1 instead of just m. (now consistent with higher level m-X names) +# 1.0.8.0 (passes 74/76) +# tests now in own package +# usage: +# package require test::pattern +# test::p::list +# test::p::run ?nameglob? ?-version ? +# +#2005-09?-12 +# +# fixed standalone 'var' statement in method bodies so that no implicit variable declarations added to proc. +# fixed @next@ so that destination method resolved at interface compile time instead of call time +# fixed @next@ so that on Create, .. PatternMethod x overlays existing method produced by a previous .. PatternMethod x. +# (before, the overlay only occured when '.. Method' was used to override.) +# +# +# miscellaneous tidy-ups +# +# 1.0.7.8 (passes 71/73) +# +#2005-09-10 +# fix 'unknown' system such that unspecified 'unknown' handler represented by lack of (unknown) variable instead of empty string value +# this is so that a mixin with an unspecified 'unknown' handler will not undo a lowerlevel 'unknown' specificier. +# +#2005-09-07 +# bugfix indexed write to list property +# bugfix Variable default value +# 1.0.7.7 (passes 70/72) +# fails: +# arrayproperty.test - array-entire-reference +# properties.test - property_getter_filter_via_ObjectRef +# +#2005-04-22 +# basic fix to PatternPropertyRead dispatch code - updated tests (indexed case still not fixed!) +# +# 1.0.7.4 +# +#2004-11-05 +# basic PropertyRead implementation (non-indexed - no tests!) +# +#2004-08-22 +# object creation speedups - (pattern::internals::obj simplified/indirected) +# +#2004-08-17 +# indexed property setter fixes + tests +# meta::Create fixes - state preservation on overlay (correct constructor called, property defaults respect existing values) +# +#2004-08-16 +# PropertyUnset & PatternPropertyUnset metaMethods (filter method called on property unset) +# +#2004-08-15 +# reference syncing: ensure writes to properties always trigger traces on property references (+ tests) +# - i.e method that updates o_myProp var in >myObj will cause traces on [>myObj . myProp .] to trigger +# - also trigger on curried traces to indexed properties i.e list and array elements. +# - This feature presumably adds some overhead to all property writes - !todo - investigate desirability of mechanism to disable on specific properties. +# +# fix (+ tests) for ref to multiple indices on object i.e [>myObj key1 key2 .] +# +#2004-08-05 +# add PropertyWrite & PatternPropertyWrite metaMethods - (filter method called on property write) +# +# fix + add tests to support method & property of same name. (method precedence) +# +#2004-08-04 +# disallow attempt to use method reference as if it were a property (raise error instead of silently setting useless var) +# +# 1.0.7.1 +# use objectref array access to read properties even when some props unset; + test +# unset property using array access on object reference; + test +# +# +#2004-07-21 +# object reference changes - array property values appear as list value when accessed using upvared array. +# bugfixes + tests - properties containing lists (multidimensional access) +# +#1.0.7 +# +#2004-07-20 +# fix default property value append problem +# +#2004-07-17 +# add initial implementation of 'Unknown' and 'PatternUnknown' meta-methods +# ( +# +#2004-06-18 +# better cleanup on '>obj .. Destroy' - recursively destroy objects under parents subnamespaces. +# +#2004-06-05 +# change argsafety operator to be anything with leading - +# if standalone '-' then the dash itself is not added as a parameter, but if a string follows '-' +# i.e tkoption style; e.g -myoption ; then in addition to acting as an argsafety operator for the following arg, +# the entire dash-prefixed operator is also passed in as an argument. +# e.g >object . doStuff -window . +# will call the doStuff method with the 2 parameters -window . +# >object . doStuff - . +# will call doStuff with single parameter . +# >object . doStuff - -window . +# will result in a reference to the doStuff method with the argument -window 'curried' in. +# +#2004-05-19 +#1.0.6 +# fix so custom constructor code called. +# update Destroy metamethod to unset $self +# +#1.0.4 - 2004-04-22 +# bug fixes regarding method specialisation - added test +# +#------------------------------------------------------------ + +package provide pattern2 [namespace eval pattern {variable version; set version 2.0}] +package require patterncmd ;#utility/system diagnostic commands (may be used by metaface lib etc) +package require cmdline + +package require patterndispatcher + +namespace eval pattern { + variable initialised 0 +} + + + +namespace eval pp { + #this is also the interp alias namespace. (object commands created here , then renamed into place) + #the object aliases are named as incrementing integers.. !todo - consider uuids? + variable ID 0 + namespace eval func {} +} + + +#!store all interface objects here? +namespace eval ::pp::ifaces {} + + +proc ::pp::assert {condition errmsg} { + if {![uplevel 1 expr $condition]} { + return -code error "assertion failed. condition:'$condition' msg:'$errmsg'" + } +} +#proc ::pp::assert args {} + +proc ::pp::get_new_object_id {} { + tailcall incr ::pp::ID + #tailcall ::pattern::new_uuid +} + + +#create a new minimal object - with no interfaces or patterns. +proc ::pp::func::new_object {obj {OID ""}} { + puts stderr "(::pp::func::new_object) obj:$obj OID:$OID" + + if {[string range $obj 0 1] ne "::"} { + set nsbase [uplevel 1 [list namespace current]] + if {$nsbase eq "::"} { + set obj ::$obj + } else { + set obj ${nsbase}::$obj + } + } + + if {[info object isa object $obj]} { + puts stderr "(::pp::func::new_object) Object $obj already exists " + } + + if {$OID eq ""} { + set OID [::pp::get_new_object_id] + } + + set main_ns ::pp::Obj${OID} + if {[namespace exists $main_ns]} { + error "(::pp::func::new_object) Cannot create Object with id:'$OID' - corresponding namespace already exists" + } + + + + + set default_method {} + set object_command $obj + #set INVOCANTRECORD [list $OID $main_ns $default_method $object_command {}] + + set invocantD [list id $OID ns $main_ns defaultmethod $default_method object $object_command] + + # _ID_ structure + #set _InvocantData_ [dict create i [dict create this [list $INVOCANTRECORD]] context ""] + set _InvocantData_ [dict create i [dict create this [list $invocantD]] context ""] + + #must create main varspace first as it is also the parent namespace for all varspaces + set vs_main [::pp::varspace_main create ::pp::Obj${OID} [set varspacename ""] $_InvocantData_] + + set vs_meta [::pp::varspace_meta create ::pp::Obj${OID}::_meta _meta $_InvocantData_] + + + puts stderr "\t(::pp::func::new_object) --- about to call pp::dispatcher create $obj $_InvocantData_ main" + pp::dispatcher create $obj $_InvocantData_ "main" + + return $obj +} + +proc ::pp::func::new_dispatcher {obj _InvocantData_ apiname} { + pp::dispatcher create $obj $_InvocantData_ $apiname +} + + + +#aliased from ::p::${OID}:: +# called when no DefaultMethod has been set for an object, but it is called with indices e.g >x something +proc ::pp::func::no_default_method {_ID_ args} { + puts stderr "no_default_method _ID_:'$_ID_' args:'$args'" + lassign [lindex [dict get $_ID_ i this] 0] OID alias default_method object_command wrapped + tailcall error "No default method on object $object_command. (To get or set, use: $object_command .. DefaultMethod ?methodname?)" +} + + + +#>x .. Create >y +# ".." is special case equivalent to "._." +# (whereas in theory it would be ".default.") +# "." is equivalent to ".default." is equivalent to ".default.default." (...) + +#>x ._. Create >y +#>x ._.default. Create >y ??? +# +# + +# create object using 'blah' as source interface-stack ? +#>x .blah. .. Create >y +#>x .blah,_. ._. Create .iStackDestination. >y + + + +# +# ">x .blah,_." is a reference(cast) to >x that contains only the iStacks in the order listed. i.e [list blah _] +# the 1st item, blah in this case becomes the 'default' iStack. +# +#>x .*. +# cast to object with all iStacks +# +#>x .*,!_. +# cast to object with all iStacks except _ +# +# --------------------- +#!todo - MultiMethod support via transient and persistent object conglomerations. Operators '&' & '@' +# - a persistent conglomeration will have an object id (OID) and thus associated namespace, whereas a transient one will not. +# +#eg1: >x & >y . some_multi_method arg arg +# this is a call to the MultiMethod 'some_multi_method' with 2 objects as the invocants. ('>x & >y' is a transient conglomeration of the two objects) +# No explicit 'invocation role' is specified in this call - so it gets the default role for multiple invocants: 'these' +# The invocant signature is thus {these 2} +# (the default invocation role for a standard call on a method with a single object is 'this' - with the associated signature {this 1}) +# Invocation roles can be specified in the call using the @ operator. +# e.g >x & >y @ points . some_multi_method arg arg +# The invocant signature for this is: {points 2} +# +#eg2: {*}[join $objects &] @ objects & >p @ plane . move $path +# This has the signature {objects n plane 1} where n depends on the length of the list $objects +# +# +# To get a persistent conglomeration we would need to get a 'reference' to the conglomeration. +# e.g set pointset [>x & >y .] +# We can now call multimethods on $pointset +# + + + + + if {[namespace which ::pp::ifaces>null] eq ""} { + set ::pp::ID 4 ;#0,1,2,3 reserved for null interface,>pattern, >ifinfo & ::p::>interface + + #OID = 0 + ::pp::func::new_object ::pp::ifaces::>null 0 + + ::pp::func::new_object ::>pattern 1 + + #'class' for ::pp::ifaces::>x instances + ::pp::func::new_object ::pp::>interface 3 + + } + +#NOOP - for compatibility with libraries which still call it +proc ::pattern::init {args} { +} + + +proc ::pattern::initXXX {args} { + if {[set ::pattern::initialised]} { + if {[llength $args]} { + #if callers want to avoid this error, they can do their own check of $::pattern::initialised + error "pattern package is already initialised. Unable to apply args: $args" + } else { + return 1 + } + } + set ::pp::ID 4 ;#0,1,2,3 reserved for null interface,>pattern, >ifinfo & ::p::>interface + + #OID = 0 + ::pp::func::new_object ::pp::ifaces::>null 0 + + ::pp::func::new_object ::>pattern 1 + + #'class' for ::pp::ifaces::>x instances + ::pp::func::new_object ::pp::>interface 3 + + #::pp::>interface ## PatternSystem . add_pattern_interface 2 + + #add to constructor? + #::pp::Obj${o_OID}::_iface API(PatternInternal)add_tcloo_interface_on_api "varspace_iface" "pattern::IPatternInterface" + + set ::pattern::initialised 1 +} + + +# >pattern has object ID 1 +# meta interface has object ID 0 +proc ::pattern::init2 args { + if {[set ::pattern::initialised]} { + if {[llength $args]} { + #if callers want to avoid this error, they can do their own check of $::pattern::initialised + error "pattern package is already initialised. Unable to apply args: $args" + } else { + return 1 + } + } + set ::pp::ID 4 ;#0,1,2,3 reserved for null interface,>pattern, >ifinfo & ::p::>interface + + #create metaface - IID = -1 - also OID = -1 + # all objects implement this special interface - accessed via the .. operator. + package require metaface + + + + #OID = 0 + ::pp::func::new_object ::p::ifaces::>null 0 + + #? null object has itself as level0 & level1 interfaces? + #set ::p::ifaces::>null [list [list 0 ::p::ifaces::>null item] [list [list 0] [list 0]] [list {} {}]] + + #null interface should always have 'usedby' members. It should never be extended. + array set ::p::0::_iface::o_usedby [list i-1 ::p::internals::>metaface i0 ::p::ifaces::>null i1 ::>pattern] ;#'usedby' array + set ::p::0::_iface::o_open 0 + + set ::p::0::_iface::o_constructor [list] + set ::p::0::_iface::o_variables [list] + set ::p::0::_iface::o_properties [dict create] + set ::p::0::_iface::o_methods [dict create] + set ::p::0::_iface::o_varspace "" + set ::p::0::_iface::o_varspaces [list] + array set ::p::0::_iface::o_definition [list] + set ::p::0::_iface::o_propertyunset_handlers [dict create] + + + + + ############################### + # OID = 1 + # >pattern + ############################### + ::pp::func::new_object ::>pattern 1 + + + + set _self ::pattern + + #set IFID [::p::internals::new_interface 1] ;#level 0 interface usedby object 1 + #set IFID_1 [::p::internals::new_interface 1] ;#level 1 interface usedby object 1 + + + + #1)this object references its interfaces + #lappend ID $IFID $IFID_1 + + + #set body [string map [::list @self@ ::>pattern @_self@ ::pattern @self_ID@ 0 @itemCmd@ item] $::p::internals::OBJECTCOMMAND] + #proc ::>pattern args $body + + + + + ####################################################################################### + #OID = 2 + # >ifinfo interface for accessing interfaces. + # + ::p::internals::new_object ::p::ifaces::>2 "" 2 ;#>ifinfo object + set ::p::2::_iface::o_constructor [list] + set ::p::2::_iface::o_variables [list] + set ::p::2::_iface::o_properties [dict create] + set ::p::2::_iface::o_methods [dict create] + set ::p::2::_iface::o_varspace "" + set ::p::2::_iface::o_varspaces [list] + array set ::p::2::_iface::o_definition [list] + set ::p::2::_iface::o_open 1 ;#open for extending + + ::p::ifaces::>2 .. AddInterface 2 + + #Manually create a minimal >ifinfo implementation using the same general pattern we use for all method implementations + #(bootstrap because we can't yet use metaface methods on it) + + + + proc ::p::2::_iface::isOpen.1 {_ID_} { + return $::p::2::_iface::o_open + } + interp alias {} ::p::2::_iface::isOpen {} ::p::2::_iface::isOpen.1 + + proc ::p::2::_iface::isClosed.1 {_ID_} { + return [expr {!$::p::2::_iface::o_open}] + } + interp alias {} ::p::2::_iface::isClosed {} ::p::2::_iface::isClosed.1 + + proc ::p::2::_iface::open.1 {_ID_} { + set ::p::2::_iface::o_open 1 + } + interp alias {} ::p::2::_iface::open {} ::p::2::_iface::open.1 + + proc ::p::2::_iface::close.1 {_ID_} { + set ::p::2::_iface::o_open 0 + } + interp alias {} ::p::2::_iface::close {} ::p::2::_iface::close.1 + + + #proc ::p::2::_iface::(GET)properties.1 {_ID_} { + # set ::p::2::_iface::o_properties + #} + #interp alias {} ::p::2::_iface::(GET)properties {} ::p::2::_iface::(GET)properties.1 + + #interp alias {} ::p::2::properties {} ::p::2::_iface::(GET)properties + + + #proc ::p::2::_iface::(GET)methods.1 {_ID_} { + # set ::p::2::_iface::o_methods + #} + #interp alias {} ::p::2::_iface::(GET)methods {} ::p::2::_iface::(GET)methods.1 + #interp alias {} ::p::2::methods {} ::p::2::_iface::(GET)methods + + + + + + #link from object to interface (which in this case are one and the same) + + #interp alias {} ::p::2::isOpen {} ::p::2::_iface::isOpen [::p::ifaces::>2 --] + #interp alias {} ::p::2::isClosed {} ::p::2::_iface::isClosed [::p::ifaces::>2 --] + #interp alias {} ::p::2::open {} ::p::2::_iface::open [::p::ifaces::>2 --] + #interp alias {} ::p::2::close {} ::p::2::_iface::close [::p::ifaces::>2 --] + + interp alias {} ::p::2::isOpen {} ::p::2::_iface::isOpen + interp alias {} ::p::2::isClosed {} ::p::2::_iface::isClosed + interp alias {} ::p::2::open {} ::p::2::_iface::open + interp alias {} ::p::2::close {} ::p::2::_iface::close + + + #namespace eval ::p::2 "namespace export $method" + + ####################################################################################### + + + + + + + set ::pattern::initialised 1 + + + ::p::internals::new_object ::p::>interface "" 3 + #create a convenience object on which to manipulate the >ifinfo interface + #set IF [::>pattern .. Create ::p::>interface] + set IF ::p::>interface + + + #!todo - put >ifinfo on a separate pStack so that end-user can more freely treat interfaces as objects? + # (or is forcing end user to add their own pStack/iStack ok .. ?) + # + ::p::>interface .. AddPatternInterface 2 ;# + + ::p::>interface .. PatternVarspace _iface + + ::p::>interface .. PatternProperty methods + ::p::>interface .. PatternPropertyRead methods {} { + varspace _iface + var {o_methods mmm} + return $mmm + } + ::p::>interface .. PatternProperty properties + ::p::>interface .. PatternPropertyRead properties {} { + varspace _iface + var o_properties + return $o_properties + } + ::p::>interface .. PatternProperty variables + + ::p::>interface .. PatternProperty varspaces + + ::p::>interface .. PatternProperty definition + + ::p::>interface .. Constructor {{usedbylist {}}} { + #var this + #set this @this@ + #set ns [$this .. Namespace] + #puts "-> creating ns ${ns}::_iface" + #namespace eval ${ns}::_iface {} + + varspace _iface + var o_constructor o_variables o_properties o_methods o_definition o_usedby o_varspace o_varspaces + + set o_constructor [list] + set o_variables [list] + set o_properties [dict create] + set o_methods [dict create] + set o_varspaces [list] + array set o_definition [list] + + foreach usedby $usedbylist { + set o_usedby(i$usedby) 1 + } + + + } + ::p::>interface .. PatternMethod isOpen {} { + varspace _iface + var o_open + + return $o_open + } + ::p::>interface .. PatternMethod isClosed {} { + varspace _iface + var o_open + + return [expr {!$o_open}] + } + ::p::>interface .. PatternMethod open {} { + varspace _iface + var o_open + set o_open 1 + } + ::p::>interface .. PatternMethod close {} { + varspace _iface + var o_open + set o_open 0 + } + ::p::>interface .. PatternMethod refCount {} { + varspace _iface + var o_usedby + return [array size o_usedby] + } + + set ::p::2::_iface::o_open 1 + + + + + + uplevel #0 {package require patternlib} + return 1 +} + + + +#detect attempt to treat a reference to a method as a property +proc ::pp::func::commandrefMisuse_TraceHandler {OID field args} { + #puts "commandrefMisuse_TraceHandler fired OID:$OID field:$field args:$args" + lassign [lrange $args end-2 end] vtraced vidx op + #NOTE! cannot rely on vtraced as it may have been upvared + + switch -- $op { + write { + error "$field is not a property" "property ref write failure for property $field (OID: $OID refvariable: [lindex $args 0])" + } + unset { + #!todo - monitor stat of Tcl bug# 1911919 - when/(if?) fixed - reinstate 'unset' trace + #trace add variable $traced {read write unset} [concat ::pp::func::commandrefMisuse_TraceHandler $OID $field $args] + + #!todo - don't use vtraced! + trace add variable $vtraced {read write unset array} [concat ::pp::func::commandrefMisuse_TraceHandler $OID $field $args] + + #pointless raising an error as "Any errors in unset traces are ignored" + #error "cannot unset. $field is a method not a property" + } + read { + error "$field is not a property (args $args)" "property ref read failure for property $field (OID: $OID refvariable: [lindex $args 0])" + } + array { + error "$field is not a property (args $args)" "property ref use as array failure for property $field (OID: $OID refvariable: [lindex $args 0])" + #error "unhandled operation in commandrefMisuse_TraceHandler - got op:$op expected read,write,unset. OID:$OID field:$field args:$args" + } + } + + return +} + + + + +#!todo - review calling-points for make_dispatcher.. probably being called unnecessarily at some points. +# +# The 'dispatcher' is an object instance's underlying object command. +# + +#proc ::p::make_dispatcher {obj ID IFID} { +# proc [string map {::> ::} $obj] {{methprop INFO} args} [string map [::list @IID@ $IFID @oid@ $ID] { +# ::p::@IID@ $methprop @oid@ {*}$args +# }] +# return +#} + + + + +################################################################################################################################################ +################################################################################################################################################ +################################################################################################################################################ + + +#force 1 will extend an interface even if shared. (??? why is this necessary here?) +#if IID empty string - create the interface. +proc ::pp::func::expand_interface {IID {force 0}} { + #puts stdout ">>> expand_interface $IID [info level -1]<<<" + if {![string length $IID]} { + set iid [expr {$::p::ID + 1}] + ::pp::>interface .. Create ::pp::ifaces::>$iid + return $iid + } else { + if {[set ::pp::Obj${IID}::_iface::o_open]} { + #interface open for extending - shared or not! + return $IID + } + error "temporary error. Interface can't be expanded. Not implemented" + if {[array size ::pp::Obj${IID}::_iface::o_usedby] > 1} { + #upvar #0 ::p::${IID}::_iface::o_usedby prev_usedby + + #oops.. shared interface. Copy before specialising it. + set prev_IID $IID + + set IID [expr {$::pp::ID + 1}] + ::pp::>interface .. Create ::pp::ifaces::>$IID + + ::pp::func::linkcopy_interface $prev_IID $IID + #assert: prev_usedby contains at least one other element. + } + #whether copied or not - mark as open for extending. + set ::pp::Obj${IID}::_iface::o_open 1 + return $IID + } +} + +#params: old - old (shared) interface ID +# new - new interface ID +proc ::pp::func::linkcopy_interface {old new} { + #puts stderr " ** ** ** linkcopy_interface $old $new" + set ns_old ::pp::Obj${old}::_iface + set ns_new ::pp::Obj${new}::_iface + + + + foreach nsmethod [info commands ${ns_old}::*.1] { + #puts ">>> adding $nsmethod to iface $new" + set tail [namespace tail $nsmethod] + set method [string range $tail 0 end-2] ;#strip .1 + + if {![llength [info commands ${ns_new}::$method]]} { + + set oldhead [interp alias {} ${ns_old}::$method] ;#the 'head' of the cmdchain that it actually points to ie $method.$x where $x >=1 + + #link from new interface namespace to existing one. + #(we assume that since ${ns_new}::$method didn't exist, that all the $method.$x chain slots are empty too...) + #!todo? verify? + #- actual link is chainslot to chainslot + interp alias {} ${ns_new}::$method.1 {} $oldhead + + #!todo - review. Shouldn't we be linking entire chain, not just creating a single .1 pointer to the old head? + + + #chainhead pointer within new interface + interp alias {} ${ns_new}::$method {} ${ns_new}::$method.1 + + namespace eval $ns_new "namespace export $method" + + #if {[string range $method 0 4] ni {(GET) (SET) (UNSE (CONS }} { + # lappend ${ns_new}::o_methods $method + #} + } else { + if {$method eq "(VIOLATE)"} { + #ignore for now + #!todo + continue + } + + #!todo - handle how? + #error "command $cmd already exists in interface $new" + + #warning - existing chainslot will be completely shadowed by linked method. + # - existing one becomes unreachable. #!todo review!? + + + error "linkcopy_interface $old -> $new - chainslot shadowing not implemented (method $method already exists on target interface $new)" + + } + } + + + #foreach propinf [set ${ns_old}::o_properties] { + # lassign $propinf prop _default + # #interp alias {} ${ns_new}::(GET)$prop {} ::p::predator::getprop $prop + # #interp alias {} ${ns_new}::(SET)$prop {} ::p::predator::setprop $prop + # lappend ${ns_new}::o_properties $propinf + #} + + + set ${ns_new}::o_variables [set ${ns_old}::o_variables] + set ${ns_new}::o_properties [set ${ns_old}::o_properties] + set ${ns_new}::o_methods [set ${ns_old}::o_methods] + set ${ns_new}::o_constructor [set ${ns_old}::o_constructor] + + + set ::pp::${old}::_iface::o_usedby(i$new) linkcopy + + + #obsolete.? + #array set ::p::${new}:: [array get ::p::${old}:: ] + + + + #!todo - is this done also when iface compiled? + #namespace eval ::p::${new}::_iface {namespace ensemble create} + + + #puts stderr "copy_interface $old $new" + + #assume that the (usedby) data is now obsolete + #???why? + #set ${ns_new}::(usedby) [::list] + + #leave ::(usedby) reference in place for caller to change as appropriate - 'copy' + + return +} +################################################################################################################################################ +################################################################################################################################################ +################################################################################################################################################ + +#pattern::init + +#return $::pattern::version + +proc pp::repl {} { + set command "" + set prompt "% " + puts -nonewline stdout $prompt + flush stdout + while {[gets stdin line] >=0} { + append command "\n$line" + if {[info complete $command]} { + catch {uplevel #0 $command} result + puts stdout $result + set command "" + set prompt "% " + } else { + set prompt "(cont)% " + } + puts -nonewline stdout $prompt + flush stdout + } +} + +if {[info exists ::argv0] && [file dirname [file normalize [info script]/ ]] eq [file dirname [file normalize $argv0/]]} { + pp::repl +} + diff --git a/src/vfs/_vfscommon.vfs/modules/patterncipher-0.1.1.tm b/src/vfs/_vfscommon.vfs/modules/patterncipher-0.1.1.tm index 62b03cbc..0aa12476 100644 --- a/src/vfs/_vfscommon.vfs/modules/patterncipher-0.1.1.tm +++ b/src/vfs/_vfscommon.vfs/modules/patterncipher-0.1.1.tm @@ -37,7 +37,6 @@ package provide patterncipher [namespace eval patterncipher { package require ascii85 ;#tcllib package require pattern -::pattern::init ;# initialises (if not already) namespace eval ::patterncipher { namespace eval algo::txt { diff --git a/src/vfs/_vfscommon.vfs/modules/patterndispatcher-1.2.4.tm b/src/vfs/_vfscommon.vfs/modules/patterndispatcher-1.2.4.tm index 14194aee..373fe6d9 100644 --- a/src/vfs/_vfscommon.vfs/modules/patterndispatcher-1.2.4.tm +++ b/src/vfs/_vfscommon.vfs/modules/patterndispatcher-1.2.4.tm @@ -13,6 +13,7 @@ namespace eval pp { set no_operators_in_args [string trimright $no_operators_in_args " &"] ;#trim trailing spaces and ampersands #set no_operators_in_args {({.} ni $args) && ({,} ni $args) && ({..} ni $args)} + #todo - compare performance against algorithm in punk::lib::is_cachedlist_all_ni_list } package require TclOO diff --git a/src/vfs/_vfscommon.vfs/modules/punk-0.1.tm b/src/vfs/_vfscommon.vfs/modules/punk-0.1.tm index b7a6da58..53cb4067 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk-0.1.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk-0.1.tm @@ -7535,6 +7535,7 @@ namespace eval punk { lappend cmdinfo [list ./ "?${I}subdir${NI}?" "view/change directory"] lappend cmdinfo [list ../ "" "go up one directory"] lappend cmdinfo [list ./new "${I}subdir${NI}" "make new directory and switch to it"] + lappend cmdinfo [list fcat "${I}file ?file?...${NI}" "cat file(s)"] set t [textblock::class::table new -minwidth 80 -show_seps 0] foreach row $cmdinfo { $t add_row $row diff --git a/src/vfs/_vfscommon.vfs/modules/punk/args-0.2.1.tm b/src/vfs/_vfscommon.vfs/modules/punk/args-0.2.1.tm index beb0bc9f..c8f88537 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk/args-0.2.1.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk/args-0.2.1.tm @@ -10887,8 +10887,9 @@ tcl::namespace::eval punk::args::lib { regexp {(\s*).*} $lastline _all lastindent } else { #position - #TODO - detect if there are grapheme clusters - #This regsub doesn't properly space unicode double-wide chars or clusters + #FUTURE: Detect and handle grapheme clusters for proper spacing + #Current regsub approach doesn't account for unicode double-wide chars or combining marks + #Consider using punk::char::grapheme_split for accurate width calculation set lastindent "[regsub -all {\S} $lastline " "] " } if {$lastindent ne ""} { diff --git a/src/vfs/_vfscommon.vfs/modules/punk/du-0.1.0.tm b/src/vfs/_vfscommon.vfs/modules/punk/du-0.1.0.tm index 5955cf42..bc753154 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk/du-0.1.0.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk/du-0.1.0.tm @@ -24,6 +24,7 @@ package require punk::args namespace eval punk::du { variable has_twapi 0 + variable has_winpath 0 } if {"windows" eq $::tcl_platform(platform)} { if {![interp issafe]} { @@ -36,7 +37,10 @@ if {"windows" eq $::tcl_platform(platform)} { } else { set punk::du::has_twapi 1 } - #package require punk::winpath + + if {![catch {package require punk::winpath}]} { + set punk::du::has_winpath 1 + } } @@ -1450,6 +1454,7 @@ namespace eval punk::du { #return fsizes,allsizes,alltimes metadata in same order as files,dirs,links lists - if specified in sized_types proc du_get_metadata_lists {sized_types timed_types files dirs links} { + upvar ::punk::du::has_winpath has_winpath set meta_dict [dict create] set meta_types [list {*}$sized_types {*}$timed_types] #known tcl stat keys 2023 - review @@ -1460,13 +1465,24 @@ namespace eval punk::du { foreach ft {f d l} lvar {files dirs links} { if {"$ft" in $meta_types} { foreach path [set $lvar] { - #caller may have read perm on the containing folder - but not on child item - so file stat could raise an error - if {![catch {file stat $path arrstat} errM]} { - dict set meta_dict $path [dict create shorttype $ft {*}[array get arrstat]] + if {$has_winpath && [punk::winpath::illegalname_test $path]} { + set testpath [punk::winpath::illegalname_fix $path] + if {![catch {file stat $testpath arrstat} errM]} { + dict set meta_dict $path [dict create shorttype $ft {*}[array get arrstat]] + } else { + puts stderr "du_get_metadata_lists: file stat $testpath error: $errM" + dict lappend errors $path "file stat error: $errM" + dict set meta_dict $path [dict create shorttype $ft {*}$empty_stat_dict] + } } else { - puts stderr "du_get_metadata_lists: file stat $path error: $errM" - dict lappend errors $path "file stat error: $errM" - dict set meta_dict $path [dict create shorttype $ft {*}$empty_stat_dict] + #caller may have read perm on the containing folder - but not on child item - so file stat could raise an error + if {![catch {file stat $path arrstat} errM]} { + dict set meta_dict $path [dict create shorttype $ft {*}[array get arrstat]] + } else { + puts stderr "du_get_metadata_lists: file stat $path error: $errM" + dict lappend errors $path "file stat error: $errM" + dict set meta_dict $path [dict create shorttype $ft {*}$empty_stat_dict] + } } } } @@ -1481,7 +1497,7 @@ namespace eval punk::du { if {$ft in $sized_types} { dict set allsizes $path [dict create bytes [dict get $pathinfo size]] if {$ft eq "f"} { - #subst with na if empty? + #subst with na if empty? lappend fsizes [dict get $pathinfo size] if {[dict get $pathinfo size] eq ""} { puts stderr "du_get_metadata_lists: fsize $path is empty!" diff --git a/src/vfs/_vfscommon.vfs/modules/punk/imap4-0.9.1.tm b/src/vfs/_vfscommon.vfs/modules/punk/imap4-0.9.1.tm index aa30e454..4b545a79 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk/imap4-0.9.1.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk/imap4-0.9.1.tm @@ -1639,7 +1639,7 @@ tcl::namespace::eval punk::imap4 { chan configure $chan -translation binary dict set coninfo $chan [dict create hostname $address port $port debug $opt_debug security $opt_security] - # Intialize the connection state array + # Initialize the connection state array punk::imap4::proto::initinfo $chan # Get the banner punk::imap4::proto::processline $chan * diff --git a/src/vfs/_vfscommon.vfs/modules/punk/lib-0.1.5.tm b/src/vfs/_vfscommon.vfs/modules/punk/lib-0.1.5.tm index db369f06..5138ac6d 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk/lib-0.1.5.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk/lib-0.1.5.tm @@ -2370,6 +2370,54 @@ namespace eval punk::lib { append body [info body is_list_all_ni_list2] proc is_list_all_ni_list2 {a b} $body } + proc is_cachedlist_all_ni_list {a b} { + upvar 0 ::punk::lib::caches::funcs_ni_list funcs + if {[info exists funcs($a)]} { + return [[set funcs($a)] $b] + } + set keybytes [encoding convertto utf-8 $a] + set key [binary encode base64 $keybytes] ;#one single-line base64 string + + set expression "" + foreach t $a { + #append expression "({$t} ni \$b) && " + append expression "{$t} ni \$b && " + } + set expression [string trimright $expression " &"] ;#trim trailing spaces and ampersands + proc ::punk::lib::caches::ni_list_$key {b} [string map [list @expression@ $expression] { + return [expr {@expression@}] + }] + + set funcs($a) ::punk::lib::caches::ni_list_$key + return [punk::lib::caches::ni_list_$key $b] + } + proc is_cachedlist_all_ni_list2 {a b} { + upvar 0 ::punk::lib::caches::funcs_ni_list funcs + if {[info exists funcs($a)]} { + return [[set funcs($a)] $b] + } + set keybytes [encoding convertto utf-8 $a] + set key [binary encode base64 $keybytes] ;#one single-line base64 string + + set d [dict create] + foreach x $a { + dict set d $x "" + } + #constructing a switch statement could be an option + # - but would need to avoid using escapes in order to get a jump-table + # - this would need runtime mapping of values - unlikely to be a win + proc ::punk::lib::caches::ni_list_$key {b} [string map [list @d@ $d] { + foreach x $b { + if {[::tcl::dict::exists {@d@} $x]} { + return 0 + } + } + return 1 + }] + + set funcs($a) ::punk::lib::caches::ni_list_$key + return [punk::lib::caches::ni_list_$key $b] + } namespace eval argdoc { variable PUNKARGS @@ -5389,6 +5437,10 @@ tcl::namespace::eval punk::lib::system { #[list_end] [comment {--- end definitions namespace punk::lib::system ---}] } +tcl::namespace::eval punk::lib::caches { + +} + tcl::namespace::eval punk::lib::debug { proc showdict {args} {} } diff --git a/src/vfs/_vfscommon.vfs/modules/punk/mix/commandset/module-0.1.0.tm b/src/vfs/_vfscommon.vfs/modules/punk/mix/commandset/module-0.1.0.tm index bcf2221f..59f23842 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk/mix/commandset/module-0.1.0.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk/mix/commandset/module-0.1.0.tm @@ -170,7 +170,16 @@ namespace eval punk::mix::commandset::module { @values -min 1 -max 1 module -type string -help\ "Name of module, possibly including a namespace and/or version number - e.g mynamespace::mymodule-1.0" + e.g mynamespace::mymodule-1.0 + + Some templates may require a prefixing namespace in order to function + correctly. e.g punk.test module names should be of the form + test::mymodule or test::mymodule::mycomponent + where the modules under test are mymodule and mymodule::mycomponent. + For example with test module test::a::b::c + The 'pkg' and 'pkgunprefixed' placeholders (surrounded by % char) are + filled with test::a::b::c and a::b::c respectively. + " }] proc new {args} { set year [clock format [clock seconds] -format %Y] @@ -222,6 +231,9 @@ namespace eval punk::mix::commandset::module { } else { set modulename $module } + #normalize modulename to remove any leading :: in case it was supplied that way + set modulename [string trimleft $modulename :] + punk::mix::cli::lib::validate_modulename $modulename -errorprefix "punk::mix::commandset::module::new" if {[regexp {[A-Z]} $module]} { @@ -410,7 +422,11 @@ namespace eval punk::mix::commandset::module { #for now the user has the option to override any templates and remove %moduletemplate% if it is a security/privacy concern #Don't put literal %x% in the code for the commandset::module itself - to stop them being seen by layout scanner as replacable tokens - set tagnames [list moduletemplate $moduletemplate project $projectname pkg $modulename year $year license $opt_license authors $opt_authors version $infile_version] + #JJJ + set pkg_parts [punk::ns::nsparts $modulename] ;#(modulename known not to have leading :: at this point) + set pkg_unprefixed [join [lrange $pkg_parts 1 end] ::] + #pkg_unprefixed may be empty - irrelevant for most templates but not ok for punk.test template - but where to reject? review + set tagnames [list moduletemplate $moduletemplate project $projectname pkg $modulename pkgunprefixed $pkg_unprefixed year $year license $opt_license authors $opt_authors version $infile_version] set strmap [list] foreach {tag val} $tagnames { lappend strmap %$tag% $val diff --git a/src/vfs/_vfscommon.vfs/modules/punk/mix/templates-0.1.3.tm b/src/vfs/_vfscommon.vfs/modules/punk/mix/templates-0.1.3.tm index e679d01307bca6d437e4c564d9e02e4bee17a1a0..9421eb9f1a538e972cc481028088a65aac9fcf4b 100644 GIT binary patch delta 25838 zcmV(>K-jkPdAdhKS-KlR3LBw?DP!7_QTw9e&167n>kf2{Ker4%zUcV#j*5H(> zL~2mZad%-PSXhT+%R)FcQ<-vWx>oMeoB0k-kx6dX7UE7>f6U7~m4SC*oR9Ho=2WUKHOQ)g=SHNCsShj$x`V%Jb1k}I*0WMq+B<#Mz3LcjV7 z-}m}q>L)Ls(r_(>sa^Bp1-+3Du8<3*`NmmMKwZH>r6D{&tmFAiJU@NrA;9$PUueH1 zzJQPBLG40+e+|Qb!?vhbI(_`8`g)-HeWJJWL#d2hO6}}J&-2&Ti=K}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?xg5f8bu@GOX{GNt`2BS3 zl$LZ08P2?kYbPqeqZe+3h6Xi zNLKq7A}Kqo&Ab9*O=?WP&Ra3};k@2Hsug6G?jrnRT#lX7Hb;I%KDg!*>Q6AUQc{q7 zl5u4@_?GKB>b4lU`%;_=Prpww!t>{V1TK_1$Uq)u$FA*FPO<1{RJ&)II8=BnFf{d& zR+yw6_;sq{B@Nx@{#TDccvS#Lc|}oCZN(#+jh^Cb@xbkuWX0-dBPQnjCe^xW{ka#X z>z5Qw&#sD|>yF2BQmI($f_GKGrTb1JMh}6{a??3q#-!oumecAU@iuvHz_ytS{0@S8 zOoIqmrPr*+d++J{m5t3O>gv;akp7bPA>Y(JIsyMFd(G*lhz`3|{Kr8n@Yy--c`^xd zq!cxZwZ1=cFYq{Gn##Q&>T0w|3V-!@3F3)xHp{wRD&~IRC25itks}d+Gh`` zj#b-h&l^+$$v4}(2hCF>-YY{-3XS|QOSZ0i4HCb^zRF=in{C%fBlrS`ZxGp9l_NC z4`9?)lpuRc=#eXrR9TEs=lLzjf1O?kOP6SN_aXavb%$nVu;C%h``qZna=otyE;)b& zE3+%dkg|%2IT2ZFs?uX;aXQLf?llXwsJ+;kc`6RXS zbNld#&X>sFsm=fL8s)txM*B#?D!d9K`)%wWc9n~$jLY_N=wF<@%F}?(3KD&kKV~+# z^$v7H*RDOj>iel~&patDH}i+ZA9x+y%kFPR@<--*#-Q7pj5VOn-U_|cPVq|}6|!$rrnkfx(A`juAmW~+l1v{L{=SX<|1Y2`2MFPXIB6jD)nV8eTf;jZbi<<6h z;fSxuaJ=wWnQwrr^x@^m`YVL&^|L#w#`0?AZ)x;GGj)MghbLkp`?~Ee*5bW5?QNEL z?4~t5bAK*<)15I$N)8|8w43W_=<9aQ!zZHA{;e zz=N#O^1q5Ya^S)L6gC(Dyet6<00*+@`TrH+k!known at $i : [lindex $args $i]" - if {$i % 2} { - error "unexpected option at index $i. known options: $knownopts must come in -opt val pairs." - } - incr i - set last_opt $i - } else { - set last_opt [expr {$i - 1}] - break - } - } - } - set first_non_opt [expr {$last_opt + 1}] - - #puts stderr "first_non_opt: $first_non_opt" - set opts [lrange $args -1 $first_non_opt-1] - set paths [lrange $args $first_non_opt end] - if {![llength $paths]} { - error "Unable to find file in the supplied arguments: $args. Ensure options are all -opt val pairs and that file name(s) follow" + set paths [dict get $values path] + set eopts "" + if {[dict exists $received --]} { + set eopts "--" } - - #puts stderr "opts: $opts paths: $paths" - - #let's proceed, but warn the user if an apparent option is in paths - foreach opt [list -encoding -eofchar -translation] { - if {$opt in $paths} { - puts stderr "fcat WARNING: apparent option $opt found after file argument(s) (expected them before filenames). Passing to fileutil::cat anyway - but for at least some versions, these options may be ignored. commandline 'fcat $args'" - } + set opt_noredirect [dict exists $received -noredirect] + if {$opt_noredirect} { + set opts [dict remove $opts -noredirect] } if {$::tcl_platform(platform) ne "windows"} { return [fileutil::cat {*}$args] } - set finalpaths [list] + set is_windows [string match *windows* $::tcl_platform(platform)] foreach p $paths { - if {$has_winpath && [punk::winpath::illegalname_test $p]} { + if {$is_windows && $has_winpath && [punk::winpath::illegalname_test $p]} { lappend finalpaths [punk::winpath::illegalname_fix $p] } else { lappend finalpaths $p } } - fileutil::cat {*}$opts {*}$finalpaths + set has_fauxlink [expr {![catch {package require fauxlink}]}] + set has_winlnk [expr {![catch {package require punk::winlnk}]}] + + if {!$opt_noredirect && ($has_fauxlink || $has_winlnk)} { + set resolved_finalpaths [list] + foreach p $finalpaths { + if {$has_winlnk && [file extension $p] eq ".lnk"} { + set resolve_info [punk::winlnk::resolve $p] + set resolved [dict get $resolve_info link_target] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } elseif {$has_fauxlink && [file extension $p] eq ".fauxlink"} { + set resolve_info [fauxlink::resolve $p] + set resolved [dict get $resolve_info targetpath] + if {$resolved ne ""} { + lappend resolved_finalpaths $resolved + } else { + lappend resolved_finalpaths $p + } + } else { + lappend resolved_finalpaths $p + } + } + set finalpaths $resolved_finalpaths + } + fileutil::cat {*}$opts {*}$eopts {*}$finalpaths } #---------------------------------------- @@ -346,19 +401,11 @@ namespace eval punk::mix::util { } - - - - - - - - - - - - # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +namespace eval ::punk::args::register { + #use fully qualified so 8.6 doesn't find existing var in global namespace + lappend ::punk::args::register::NAMESPACES ::punk::mix::util +} ## Ready package provide punk::mix::util [namespace eval punk::mix::util { variable version diff --git a/src/vfs/_vfscommon.vfs/modules/punk/nav/fs-0.1.0.tm b/src/vfs/_vfscommon.vfs/modules/punk/nav/fs-0.1.0.tm index 20a0849e..06c7ddf3 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk/nav/fs-0.1.0.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk/nav/fs-0.1.0.tm @@ -1228,7 +1228,7 @@ tcl::namespace::eval punk::nav::fs { set fname [dict get $fdict file] if {[file extension $fname] eq ".lnk"} { if {![catch {package require punk::winlnk}]} { - set shortcutinfo [punk::winlnk::file_get_info $fname] + set shortcutinfo [punk::winlnk::resolve $fname] set target_type "file" ;#default/fallback if {[dict exists $shortcutinfo link_target]} { set is_valid_lnk 1 diff --git a/src/vfs/_vfscommon.vfs/modules/punk/net/vxlan-0.1.0.tm b/src/vfs/_vfscommon.vfs/modules/punk/net/vxlan-0.1.0.tm new file mode 100644 index 00000000..cbaa08a3 --- /dev/null +++ b/src/vfs/_vfscommon.vfs/modules/punk/net/vxlan-0.1.0.tm @@ -0,0 +1,365 @@ +# -*- tcl -*- +# Maintenance Instruction: leave the 999999.xxx.x as is and use punkshell 'dev make' or bin/punkmake to update from -buildversion.txt +# module template: shellspy/src/decktemplates/vendor/punk/modules/template_module-0.0.4.tm +# +# Please consider using a BSD or MIT style license for greatest compatibility with the Tcl ecosystem. +# Code using preferred Tcl licenses can be eligible for inclusion in Tcllib, Tklib and the punk package repository. +# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +# (C) 2026 +# +# @@ Meta Begin +# Application punk::net::vxlan 0.1.0 +# Meta platform tcl +# Meta license MIT +# @@ Meta End + + + +# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +## Requirements +# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ + + +package require Tcl 8.6- + + + +tcl::namespace::eval punk::net::vxlan { + variable PUNKARGS + + #todo - ipv6 - rename functions ipv4_vni_to_mcast ipv6_vni_to_mcast etc? + #IPv6 uses FF00::/8 + + lappend PUNKARGS [list { + @id -id "::punk::net::vxlan::vni_to_mcast" + @cmd -name "punk::net::vxlan::vni_to_mcast" -help\ + "Map a VXLAN VNI to a unique multicast address. + + The entire IPv4 multicast range is 224.0.0.0 - 239.255.255.255, + The upper end 239.0.0.0 - 239.255.255.255 is classified by + IANA as 'administratively scoped' (RFC 2365). + + The 239.0.0.0/8 range is 24 bits and *may* be available for VXLANs. + vni_to_mcast will map the VNI into an address in this /8 range. + + The range 239.192.0.0/14 is defined by RFC 2365 to be the + 'IPv4 Organization Local Scope' and it may be desirable to use + mappings that fall only within this range. + + Some vendors put restrictions on acceptable VNI values e.g + Cisco supports VNI values from 4096 to 16,777,215. + + 2 ranges within 239.0.0.0/8 are best avoided if it is desired + to reduce flooding by layer 2 switches and possible additional + processor load at VTEPs. + These are: + 239.0.0.0/24 (VNI 0 - 255) + and + 239.128.0.0/24 (VNI 8388608 - 8388863) + These happen to map to the same MAC address range (01:00:5e:00:00:xx) + as multicast addresses in the Link-Local Block (224.0.0.0/24) + These are commonly flooded to all ports on the switch even when IGMP + snooping is enabled (protocols such as OSPF would break if such flooding + wasn't done, as IGMP Membership Reports are normally not sent for multicast + traffic in the Link-Local Block). + " + @leaders -min 0 -max 0 + @opts -min 0 -max 0 + @values -min 1 -max 1 + vni -type integer -range {0 16777215} -help\ + "Integer representing a 24 bit VNI" + }] + proc vni_to_mcast {vni} { + if {![string is integer -strict $vni] || $vni < 0 || $vni > (2**24-1)} { + error "vni_to_mcast: VNI must be a 24bit integer i.e the range is 0 to 16777215" + } + set hex6 [format %6.6llx $vni] + set mcast "239." + foreach {h1 h2} [split $hex6 ""] { + append mcast [scan $h1$h2 %llx] . + } + set mcast [string range $mcast 0 end-1] + return $mcast + } + lappend PUNKARGS [list { + @id -id "::punk::net::vxlan::mcast_to_vni" + @cmd -name "punk::net::vxlan::mcast_to_vni" -help\ + "Return an integer VNI in the range 0 to 16777215" + @leaders -min 0 -max 0 + @opts -min 0 -max 0 + @values -min 1 -max 1 + mcastaddress -type string -help\ + "Multicast address within the 239.0.0.0/8 range. + See vni_to_mcast for notes about possible values + within the range to avoid." + }] + proc mcast_to_vni {mcastaddress} { + #todo - validate ipv4 + set addrparts [split $mcastaddress .] + set tailparts [lassign $addrparts p1] + if {$p1 ne "239"} { + error "mcast_to_vni: mcastaddress must be of the form 239.x.x.x" + } + #e.g mcastaddress: 239.188.97.78 + set hex "" + foreach tp $tailparts { + append hex [format %2.2llx $tp] + } + #e.g hex: bc614e + #e.g return: 12345678 + return [scan $hex %llx] + } + + #reference + #https://networklessons.com/multicast/multicast-ip-address-to-mac-address-mapping + + lappend PUNKARGS [list { + @id -id "::punk::net::vxlan::mcast_to_mac" + @cmd -name "punk::net::vxlan::mcast_to_mac" -help\ + "Return the MAC address this IPv4 multicast address + maps to. + Note that there will be a total of 32 addresses that + map to this same MAC address. + (see mac_to_mcast_list)" + @leaders -min 0 -max 0 + @opts -min 0 -max 0 + @values -min 1 -max 1 + mcastaddress -type string -help\ + "Multicast IPv4 address. + 224.0.0.0 to 239.255.255.255 + (224.0.0.0/4" + }] + proc mcast_to_mac {mcastaddress} { + set mac "01:00:5e:" ;#prefix for IANA reserved OUI covering the first 24 bits of 48bit mac address + #we can only use the last 23 bits from the mcastaddress + set addrparts [split $mcastaddress .] + set tailbin "" ;#binary representation of last 3 dotted parts + set p1 [lindex $addrparts 0] + if {$p1 < 224 || $p1 > 239} { + error "mcast_to_mac: address $mcastaddress does not seem to be an IPv4 multicast address" + } + foreach p [lrange $addrparts 1 end] { + append tailbin [format %8.8b $p] + } + # + set last23bits [string range $tailbin 1 end] + set tailbits "0$last23bits" + foreach {b0 b1 b2 b3 b4 b5 b6 b7} [split $tailbits ""] { + set nibble1 [scan $b0$b1$b2$b3 %b] + set nibble2 [scan $b4$b5$b6$b7 %b] + append mac "[format %x $nibble1][format %x $nibble2]:" + } + set mac [string range $mac 0 end-1] + #e.g mcastaddress: 224.132.6.17 + #result: 01:00:5e:04:06:11 + return $mac + } + #This is not a unique mapping there is 1:32 overlap + #because 5 bits are lost in the mapping + #ie there 32 multicast addresses mapping to the same mac + lappend PUNKARGS [list { + @id -id "::punk::net::vxlan::mac_to_mcast_list" + @cmd -name "punk::net::vxlan::mac_to_mcast_list" -help\ + "Return a list of the 32 multicast IPv4 addresses that + correspond to a multicast MAC address. + This is not a unique mapping because 5 bits are lost in + the process. + If a host is on a network with a lot of multicast traffic in + groups that happen to overlap with the same multicast address to MAC + mapping - there may be some additional overhead in ignoring non-relevant + frames." + @leaders -min 0 -max 0 + @opts -min 0 -max 0 + @values -min 1 -max 1 + mac -type string -help\ + "Mac address in the form 01:00:5e:xx:xx:xx or 01005exxxxxx. + The prefix 01:00:5e is the IANA reserved OUI for multicast MAC addresses. + (upper case versions of hex are also accepted)" + }] + proc mac_to_mcast_list {mac} { + #e.g 01:00:5e:0b:01:02 or 01005e0b0101 + #set bin_OUI "00000010000000001011110" + if {[string is xdigit -strict $mac] && [string length $mac] == 12} { + set mac_oui [string range $mac 0 5] + set mactailhex [string range $mac 6 end] + } else { + if {[string first : $mac] >=0} { + set macparts [split $mac :] + if {[llength $macparts] != 6} { + error "mac_to_mcast_list: mac address must have 6 parts (48bit mac address)" + } + set mac_oui [join [lrange $macparts 0 2] ""] + set mactailhex [join [lrange $macparts 3 end] ""] + } else { + error "mac_to_mcast_list: mac address must be in the form 01:00:5e:xx:xx:xx or 01005exxxxxx" + } + } + if {![string match -nocase 01005e* $mac_oui]} { + error "mac_to_mcast_list: mac address must begin with the reserved OUI 01:00:5e (or 01005e) for multicast adddresses" + } + set bin_tail "" + catch { + foreach hexdigit [split $mactailhex ""] { + set dec [scan $hexdigit %llx] + append bin_tail [format %4.4b $dec] + } + } + set last23bits [string range $bin_tail 1 end] + if {[string length $last23bits] != 23} { + error "mac_to_mcast_list: failed to convert mac:$mac to binary - check it is a properly formatted mac address" + } + #consider bytes b0 b1 b2 b3 + #last 2 bytes (b2, b3) will be the same for each resulting address + set last16bits [string range $last23bits 7 end] + set b2 [string range $last16bits 0 7] + set b3 [string range $last16bits 8 end] + set a2 [scan $b2 %b] + set a3 [scan $b3 %b] + + set top7of23 [string range $last23bits 0 6] + #first 2 bytes are 1110xxxx xnnnnnnn where the 7 n bits are the first 7 of the 23bits used from the tail, giving 32 possible values + set mcast_list [list] + for {set i 0} {$i <=31} {incr i} { + set varbits [format %5.5b $i] + set first2bytesbin "1110$varbits$top7of23" + set b0 [string range $first2bytesbin 0 7] + set b1 [string range $first2bytesbin 8 end] + lappend mcast_list "[scan $b0 %b].[scan $b1 %b].$a2.$a3" + } + if {[llength $mcast_list] != 32} { + error "mac_to_mcast_list: failed to properly calculate the 32 corresponding multicast addresses (length [llength $mcast_list] should be 32)" + } + return $mcast_list + } + +} + + +# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +# Secondary API namespace +# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +tcl::namespace::eval punk::net::vxlan::lib { + tcl::namespace::export {[a-z]*} ;# Convention: export all lowercase + tcl::namespace::path [tcl::namespace::parent] +} +# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ + + + +#tcl::namespace::eval punk::net::vxlan::system { +#} + + +# == === === === === === === === === === === === === === === +# Sample 'about' function with punk::args documentation +# == === === === === === === === === === === === === === === +tcl::namespace::eval punk::net::vxlan { + tcl::namespace::export {[a-z]*} ;# Convention: export all lowercase + variable PUNKARGS + variable PUNKARGS_aliases + + lappend PUNKARGS [list { + @id -id "(package)punk::net::vxlan" + @package -name "punk::net::vxlan" -help\ + "Package + Description" + }] + + namespace eval argdoc { + #namespace for custom argument documentation + proc package_name {} { + return punk::net::vxlan + } + proc about_topics {} { + #info commands results are returned in an arbitrary order (like array keys) + set topic_funs [info commands [namespace current]::get_topic_*] + set about_topics [list] + foreach f $topic_funs { + set tail [namespace tail $f] + lappend about_topics [string range $tail [string length get_topic_] end] + } + #Adjust this function or 'default_topics' if a different order is required + return [lsort $about_topics] + } + proc default_topics {} {return [list Description *]} + + # ------------------------------------------------------------- + # get_topic_ functions add more to auto-include in about topics + # ------------------------------------------------------------- + proc get_topic_Description {} { + punk::args::lib::tstr [string trim { + package punk::net::vxlan + description to come.. + } \n] + } + proc get_topic_License {} { + return "MIT" + } + proc get_topic_Version {} { + return "$::punk::net::vxlan::version" + } + proc get_topic_Contributors {} { + set authors {{"Julian Noble" }} + set contributors "" + foreach a $authors { + append contributors $a \n + } + if {[string index $contributors end] eq "\n"} { + set contributors [string range $contributors 0 end-1] + } + return $contributors + } + proc get_topic_custom-topic {} { + punk::args::lib::tstr -return string { + A custom + topic + etc + } + } + # ------------------------------------------------------------- + } + + # we re-use the argument definition from punk::args::standard_about and override some items + set overrides [dict create] + dict set overrides @id -id "::punk::net::vxlan::about" + dict set overrides @cmd -name "punk::net::vxlan::about" + dict set overrides @cmd -help [string trim [punk::args::lib::tstr { + About punk::net::vxlan + }] \n] + dict set overrides topic -choices [list {*}[punk::net::vxlan::argdoc::about_topics] *] + dict set overrides topic -choicerestricted 1 + dict set overrides topic -default [punk::net::vxlan::argdoc::default_topics] ;#if -default is present 'topic' will always appear in parsed 'values' dict + set newdef [punk::args::resolved_def -antiglobs -package_about_namespace -override $overrides ::punk::args::package::standard_about *] + lappend PUNKARGS [list $newdef] + proc about {args} { + package require punk::args + #standard_about accepts additional choices for topic - but we need to normalize any abbreviations to full topic name before passing on + set argd [punk::args::parse $args withid ::punk::net::vxlan::about] + lassign [dict values $argd] _leaders opts values _received + punk::args::package::standard_about -package_about_namespace ::punk::net::vxlan::argdoc {*}$opts {*}[dict get $values topic] + } +} +# end of sample 'about' function +# == === === === === === === === === === === === === === === + + +# ----------------------------------------------------------------------------- +# register namespace(s) to have PUNKARGS,PUNKARGS_aliases variables checked +# ----------------------------------------------------------------------------- +# variable PUNKARGS +# variable PUNKARGS_aliases +namespace eval ::punk::args::register { + #use fully qualified so 8.6 doesn't find existing var in global namespace + lappend ::punk::args::register::NAMESPACES ::punk::net::vxlan +} +# ----------------------------------------------------------------------------- + +# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +## Ready +package provide punk::net::vxlan [tcl::namespace::eval punk::net::vxlan { + variable pkg punk::net::vxlan + variable version + set version 0.1.0 +}] +return + diff --git a/src/vfs/_vfscommon.vfs/modules/punk/path-0.1.0.tm b/src/vfs/_vfscommon.vfs/modules/punk/path-0.1.0.tm index 997ea3c3..cd05593d 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk/path-0.1.0.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk/path-0.1.0.tm @@ -395,6 +395,14 @@ namespace eval punk::path { return [join $finalparts /] } } + if {"windows" eq $::tcl_platform(platform) && [file extension [lindex $finalparts end]] eq ".lnk"} { + if {![catch {package require punk::winlnk}]} { + set path [punk::winlnk::target $result] + if {$path ne ""} { + return $path + } + } + } return $result } diff --git a/src/vfs/_vfscommon.vfs/modules/punk/repo-0.1.1.tm b/src/vfs/_vfscommon.vfs/modules/punk/repo-0.1.1.tm index 5d2a2725..464baef6 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk/repo-0.1.1.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk/repo-0.1.1.tm @@ -218,7 +218,7 @@ namespace eval punk::repo { if {$fossilcmd eq "commit"} { if {[llength [file split $fosroot]]} { if {[file exists [file join $fosroot src/buildsuites]]} { - puts stderr "Todo - check buildsites/suite/projects for current branch/tag and update download_and_build_config" + puts stderr "Todo - check buildsuites/suite/projects for current branch/tag and update download_and_build_config" } } } elseif {$fossilcmd in [list "info" "status"]} { @@ -1682,7 +1682,7 @@ namespace eval punk::repo { #whether path is at and/or below one of the vfs mount points #The design should facilitate nested vfs mountpoints proc path_vfs_info {filepath} { - error "unimplmented" + error "unimplemented" } #file normalize is expensive so this is too diff --git a/src/vfs/_vfscommon.vfs/modules/punk/winlnk-0.1.0.tm b/src/vfs/_vfscommon.vfs/modules/punk/winlnk-0.1.0.tm index 918d380d..03de3d4b 100644 --- a/src/vfs/_vfscommon.vfs/modules/punk/winlnk-0.1.0.tm +++ b/src/vfs/_vfscommon.vfs/modules/punk/winlnk-0.1.0.tm @@ -61,37 +61,6 @@ package require Tcl 8.6- #*** !doctools #[section API] -# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ -# oo::class namespace -# ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ -#tcl::namespace::eval punk::winlnk::class { - #*** !doctools - #[subsection {Namespace punk::winlnk::class}] - #[para] class definitions - #if {[tcl::info::commands [tcl::namespace::current]::interface_sample1] eq ""} { - #*** !doctools - #[list_begin enumerated] - - # oo::class create interface_sample1 { - # #*** !doctools - # #[enum] CLASS [class interface_sample1] - # #[list_begin definitions] - - # method test {arg1} { - # #*** !doctools - # #[call class::interface_sample1 [method test] [arg arg1]] - # #[para] test method - # puts "test: $arg1" - # } - - # #*** !doctools - # #[list_end] [comment {-- end definitions interface_sample1}] - # } - - #*** !doctools - #[list_end] [comment {--- end class enumeration ---}] - #} -#} # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ @@ -124,59 +93,10 @@ tcl::namespace::eval punk::winlnk { close $fd return $data } - proc Get_HeaderSize {contents} { - set 4bytes [split [string range $contents 0 3] ""] - set hex4 "" - foreach b [lreverse $4bytes] { - set dec [scan $b %c] ;# 0-255 decimal - set HH [format %2.2llX $dec] - append hex4 $HH - } - return $hex4 - } - proc Get_LinkCLSID {contents} { - set 16bytes [string range $contents 4 19] - #CLSID hex textual representation is split as 4-2-2-2-6 bytes(hex pairs) - #e.g We expect 00021401-0000-0000-C000-000000000046 for .lnk files - #for endianness - it is little endian all the way but the split is 4-2-2-1-1-1-1-1-1-1-1 REVIEW - #(so it can appear as mixed endianness if you don't know the splits) - #https://devblogs.microsoft.com/oldnewthing/20220928-00/?p=107221 - #This is based on COM textual representation of GUIDS - #Apparently a CLSID is a GUID that identifies a COM object - set clsid "" - set s1 [tcl::string::range $16bytes 0 3] - set declist [scan [string reverse $s1] %c%c%c%c] - set fmt "%02X%02X%02X%02X" - append clsid [format $fmt {*}$declist] - - append clsid - - set s2 [tcl::string::range $16bytes 4 5] - set declist [scan [string reverse $s2] %c%c] - set fmt "%02X%02X" - append clsid [format $fmt {*}$declist] - - append clsid - - set s3 [tcl::string::range $16bytes 6 7] - set declist [scan [string reverse $s3] %c%c] - append clsid [format $fmt {*}$declist] - - append clsid - - #now treat bytes individually - so no endianness conversion - set declist [scan [tcl::string::range $16bytes 8 9] %c%c] - append clsid [format $fmt {*}$declist] - - append clsid - - set scan [string repeat %c 6] - set fmt [string repeat %02X 6] - set declist [scan [tcl::string::range $16bytes 10 15] $scan] - append clsid [format $fmt {*}$declist] - - return $clsid - } proc Contents_check_header {contents} { variable magic_HeaderSize variable magic_LinkCLSID - expr {[Get_HeaderSize $contents] eq $magic_HeaderSize && [Get_LinkCLSID $contents] eq $magic_LinkCLSID} + expr {[Header_Get_HeaderSize $contents] eq $magic_HeaderSize && [Header_Get_LinkCLSID $contents] eq $magic_LinkCLSID} } #LinkFlags - 4 bytes - specifies information about the shell link and the presence of optional portions of the structure. @@ -193,11 +113,6 @@ tcl::namespace::eval punk::winlnk { set r [binary scan [string reverse $4bytes] b32 val] puts "bscan-2 : $val" } - proc Get_LinkFlags {contents} { - set 4bytes [string range $contents 20 23] - set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int - return $val - } variable LinkFlags set LinkFlags [dict create\ hasLinkTargetIDList 1\ @@ -229,78 +144,330 @@ tcl::namespace::eval punk::winlnk { KeepLocalIDListForUNCTarget 67108864\ ] variable LinkFlagLetters [list A B C D E F G H I J K L M N O P Q R S T U V W X Y Z AA] - proc Has_LinkFlag {contents flagname} { + proc Header_Has_LinkFlag {contents flagname} { variable LinkFlags variable LinkFlagLetters if {[string length $flagname] <= 2} { set idx [lsearch $LinkFlagLetters $flagname] if {$idx < 0} { - error "punk::winlnk::Has_LinkFlag error - flagname $flagname not known" + error "punk::winlnk::Header_Has_LinkFlag error - flagname $flagname not known" } set binflag [expr {2**$idx}] - set allflags [Get_LinkFlags $contents] + set allflags [Header_Get_LinkFlags $contents] return [expr {$allflags & $binflag}] } if {[dict exists $LinkFlags $flagname]} { set binflag [dict get $LinkFlags $flagname] - set allflags [Get_LinkFlags $contents] + set allflags [Header_Get_LinkFlags $contents] return [expr {$allflags & $binflag}] } else { - error "punk::winlnk::Has_LinkFlag error - flagname $flagname not known" + error "punk::winlnk::Header_Has_LinkFlag error - flagname $flagname not known" } } - + #MS-SHLLINK.pdf documents the .lnk file format in detail, but here is a brief overview of the structure of a .lnk file: + #protocol revision 10.0 (November 2025) https://winprotocoldocs-bhdugrdyduf5h2e4.b02.azurefd.net/MS-SHLLINK/%5bMS-SHLLINK%5d.pdf - - #offset 24 4 bytes - #File attribute flags + #SHELL_LINK_HEADER structure is 76 bytes long and starts at the beginning of the file + #offset hex:0x00 dec:0 4 bytes + #Header size (HeaderSize) (must be 0x0000004C for .lnk files) + proc Header_Get_HeaderSize {contents} { + set 4bytes [split [string range $contents 0 3] ""] + set hex4 "" + foreach b [lreverse $4bytes] { + set dec [scan $b %c] ;# 0-255 decimal + set HH [format %2.2llX $dec] + append hex4 $HH + } + return $hex4 + } - #offset 28 8 bytes - #creation date and time + + #offset hex:0x04 dec:4 16 bytes + #LinkCLSID (must be 00021401-0000-0000-C000-000000000046 for .lnk files) + proc Header_Get_LinkCLSID {contents} { + set 16bytes [string range $contents 4 19] + #CLSID hex textual representation is split as 4-2-2-2-6 bytes(hex pairs) + #e.g We expect 00021401-0000-0000-C000-000000000046 for .lnk files + #for endianness - it is little endian all the way but the split is 4-2-2-1-1-1-1-1-1-1-1 REVIEW + #(so it can appear as mixed endianness if you don't know the splits) + #https://devblogs.microsoft.com/oldnewthing/20220928-00/?p=107221 + #This is based on COM textual representation of GUIDS + #Apparently a CLSID is a GUID that identifies a COM object + set clsid "" + set s1 [tcl::string::range $16bytes 0 3] + set declist [scan [string reverse $s1] %c%c%c%c] + set fmt "%02X%02X%02X%02X" + append clsid [format $fmt {*}$declist] + + append clsid - + set s2 [tcl::string::range $16bytes 4 5] + set declist [scan [string reverse $s2] %c%c] + set fmt "%02X%02X" + append clsid [format $fmt {*}$declist] + + append clsid - + set s3 [tcl::string::range $16bytes 6 7] + set declist [scan [string reverse $s3] %c%c] + append clsid [format $fmt {*}$declist] + + append clsid - + #now treat bytes individually - so no endianness conversion + set declist [scan [tcl::string::range $16bytes 8 9] %c%c] + append clsid [format $fmt {*}$declist] + + append clsid - + set scan [string repeat %c 6] + set fmt [string repeat %02X 6] + set declist [scan [tcl::string::range $16bytes 10 15] $scan] + append clsid [format $fmt {*}$declist] + + return $clsid + } + + + #offset hex:0x14 dec:20 4 bytes + #Link flags (LinkFlags) - bit field specifying information about the shell link and the presence of optional portions of the structure. + #HasLinkTargetIDList bit 0 (0x00000001) - if set, a LinkTargetIDList structure is present immediately following the header + #HasLinkInfo bit 1 (0x00000002) - if set, a LinkInfo structure is present immediately following the header (or the LinkTargetIDList if that is present) + #HasName bit 2 (0x00000004) - if set, a null-terminated string containing the name of the link is present immediately following the header (or the LinkTargetIDList and LinkInfo if they are present) + #HasRelativePath bit 3 (0x00000008) - if set, a null-terminated string containing the relative path of the link target is present immediately following the header (or the LinkTargetIDList, LinkInfo and Name if they are present) + #HasWorkingDir bit 4 (0x00000010) - if set, a null-terminated string containing the working directory of the link target is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name and Relative Path if they are present) + #HasArguments bit 5 (0x00000020) - if set, a null-terminated string containing the command line arguments for the link target is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path and Working Dir if they are present) + #HasIconLocation bit 6 (0x00000040) - if set, a null-terminated string containing the location of the icon for the link is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path, Working Dir and Arguments if they are present) + #IsUnicode bit 7 (0x00000080) - if set, the strings in the link are stored in Unicode (UTF-16LE) format; if not set, the strings are stored in ANSI format (usually the system's default code page) + #ForceNoLinkInfo bit 8 (0x00000100) - if set, the LinkInfo structure is not stored in the file even if the HasLinkInfo bit is set; this can be used to force the link to be resolved using only the information in the header and the optional strings, without using the LinkInfo structure + #HasExpString bit 9 (0x00000200) - if set, a null-terminated string containing an "environment variable" style string is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path, Working Dir, Arguments and Icon Location if they are present); this string can contain environment variable references (e.g. %USERPROFILE%) that can be expanded to obtain the actual path of the link target + #RunInSeparateProcess bit 10 (0x00000400) - if set, the link target should be run in a separate process; if not set, the link target may be run in the same process as the caller + #Unused1 bit 11 (0x00000800) - reserved for future use; should be set to 0 + #HasDarwinID bit 12 (0x00001000) - if set, a null-terminated string containing a "Darwin ID" is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path, Working Dir, Arguments, Icon Location and ExpString if they are present); this string can be used to identify the link target in a way that is independent of the file system (e.g. for links to Control Panel items or special folders) + #RunAsUser bit 13 (0x00002000) - if set, the link target should be run with the permissions of the user specified in the HasDarwinID string; if not set, the link target should be run with the permissions of the caller + #HasExpIcon bit 14 (0x00004000) - if set, a null-terminated string containing an "environment variable" style string for the icon location is present immediately following the header (or the LinkTargetIDList, LinkInfo, Name, Relative Path, Working Dir, Arguments, Icon Location, ExpString and DarwinID if they are present); this string can contain environment variable references that can be expanded to obtain the actual path of the icon for the link + #NoPidlAlias bit 15 (0x00008000) - if set, the link target should not be resolved using the PIDL alias mechanism; this can be used to prevent the link from being resolved to a different target if the original target is moved or renamed + #Unused2 bit 16 (0x00010000) - reserved for future use; should be set to 0 + #RunWithShimLayer bit 17 (0x00020000) - if set, the link target should be run with the application compatibility shim layer; if not set, the link target should be run without the shim layer + #ForceNoLinkTrack bit 18 (0x00040000) - if set, the link target should not be tracked by the shell's link tracking mechanism; this can be used to prevent the link from being automatically updated if the target is moved or renamed + #EnableTargetMetadata bit 19 (0x00080000) - if set, the link target should have metadata enabled; this can be used to allow the link to store additional information about the target (e.g. for links to files, the link can store the file's attributes, creation time, access time and modification time) + #DisableLinkPathTracking bit 20 (0x00100000) - if set, the link target should not be tracked by the shell's link path tracking mechanism; this can be used to prevent the link from being automatically updated if the target is moved or renamed based on its path + #DisableKnownFolderTracking bit 21 (0x00200000) - if set, the link target should not be tracked by the shell's known folder tracking mechanism; this can be used to prevent the link from being automatically updated if the target is moved or renamed based on its known folder ID + #DisableKnownFolderAlias bit 22 (0x00400000) - if set, the link target should not be aliased to a known folder; this can be used to prevent the link from being resolved to a different target if the original target is moved or renamed based on its known folder ID + #AllowLinkToLink bit 23 (0x00800000) - if set, the link target can be another link; if not set, the link target should not be another link (i.e. it should be a file or directory); this can be used to prevent the link from being resolved to a different target if the original target is moved or renamed based on the fact that it is a link + #UnaliasOnSave bit 24 (0x01000000) - if set, the link should be unaliased when it is saved; this can be used to prevent the link from being resolved to a different target if the original target is moved or renamed based on the fact that it is a link + #PreferEnvironmentPath bit 25 (0x02000000) - if set, the link should prefer to resolve the target using environment variable references; this can be used to allow the link to be resolved correctly even if the target is moved or renamed, as long as the environment variable references still point to the correct location + #KeepLocalIDListForUNCTarget bit 26 (0x04000000) - if set, the link should keep the local ID list for UNC targets; this can be used to allow the link to be resolved correctly even if the target is moved or renamed, as long as the local ID list still points to the correct location + # - the presence of these flags indicates the presence of optional structures in the .lnk file and also provides information about how to interpret the data in the file + proc Header_Get_LinkFlags {contents} { + set 4bytes [string range $contents 20 23] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + return $val + } + + #offset hex:0x18 dec:24 4 bytes + #File attributes (FileAttributes) - bit field specifying the file attributes of the link target (if the EnableTargetMetadata flag is set in the LinkFlags field); this field is a bitwise combination of the following values: + proc Header_Get_FileAttributes {contents} { + if {![Header_Has_LinkFlag $contents "EnableTargetMetadata"]} { + return {} + } + set 4bytes [string range $contents 24 27] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + set attrlist {} + if {$val & 0x00000001} {lappend attrlist "READONLY"} + if {$val & 0x00000002} {lappend attrlist "HIDDEN"} + if {$val & 0x00000004} {lappend attrlist "SYSTEM"} + if {$val & 0x00000010} {lappend attrlist "DIRECTORY"} + if {$val & 0x00000020} {lappend attrlist "ARCHIVE"} + if {$val & 0x00000040} {lappend attrlist "DEVICE"} + if {$val & 0x00000080} {lappend attrlist "NORMAL"} + if {$val & 0x00000100} {lappend attrlist "TEMPORARY"} + if {$val & 0x00000200} {lappend attrlist "SPARSE_FILE"} + if {$val & 0x00000400} {lappend attrlist "REPARSE_POINT"} + if {$val & 0x00000800} {lappend attrlist "COMPRESSED"} + if {$val & 0x00001000} {lappend attrlist "OFFLINE"} + if {$val & 0x00002000} {lappend attrlist "NOT_CONTENT_INDEXED"} + if {$val & 0x00004000} {lappend attrlist "ENCRYPTED"} + return $attrlist + } + proc Header_Get_FileAttributes_Raw {contents} { + if {![Header_Has_LinkFlag $contents "EnableTargetMetadata"]} { + return 0 + } + set 4bytes [string range $contents 24 27] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + return $val + } + + + + + #offset hex:0x1C dec:28 8 bytes + #creation date and time (CreationTime) (FILETIME structure - 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC)) + proc Header_Get_CreationTime {contents} { + set 8bytes [string range $contents 28 35] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + #convert FILETIME to human readable format - this is a bit complex because FILETIME is in 100-nanosecond intervals since January 1, 1601 (UTC) + #we can convert it to seconds and then to a human readable format + set seconds [expr {$val / 10000000.0}] + set epoch_seconds [expr {round($seconds) - 11644473600}] ;# number of seconds between January 1, 1601 and January 1, 1970 + set human_time [clock format $epoch_seconds -format "%Y-%m-%d %H:%M:%S" -gmt true] + return $human_time + } + proc Header_Get_CreationTime_Raw {contents} { + set 8bytes [string range $contents 28 35] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + return $val + } #offset 36 8 bytes - #last access date and time + #last access date and time (AccessTime) (FILETIME structure - 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC)) + proc Header_Get_AccessTime {contents} { + set 8bytes [string range $contents 36 43] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + #convert FILETIME to human readable format - this is a bit complex because FILETIME is in 100-nanosecond intervals since January 1, 1601 (UTC) + #we can convert it to seconds and then to a human readable format + set seconds [expr {$val / 10000000.0}] + set epoch_seconds [expr {round($seconds) - 11644473600}] ;# number of seconds between January 1, 1601 and January 1, 1970 + set human_time [clock format $epoch_seconds -format "%Y-%m-%d %H:%M:%S" -gmt true] + return $human_time + } + proc Header_Get_AccessTime_Raw {contents} { + set 8bytes [string range $contents 36 43] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + return $val + } - #offset 44 8 bytes - #last modification date and time + #offset hex:0x2C dec:44 8 bytes + #last modification date and time (WriteTime) (FILETIME structure - 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC)) + proc Header_Get_WriteTime {contents} { + set 8bytes [string range $contents 44 51] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + #convert FILETIME to human readable format - this is a bit complex because FILETIME is in 100-nanosecond intervals since January 1, 1601 (UTC) + #we can convert it to seconds and then to a human readable format + set seconds [expr {$val / 10000000.0}] + set epoch_seconds [expr {round($seconds) - 11644473600}] ;# number of seconds between January 1, 1601 and January 1, 1970 + set human_time [clock format $epoch_seconds -format "%Y-%m-%d %H:%M:%S" -gmt true] + return $human_time + } + proc Header_Get_WriteTime_Raw {contents} { + set 8bytes [string range $contents 44 51] + set r [binary scan $8bytes w val] ;# w for little endian 64-bit signed int + return $val + } - #offset 52 4 bytes - unsigned int - #file size in bytes (of target) - proc Get_FileSize {contents} { + #offset hex:0x34 dec:52 Bytes:4 - unsigned int + #file size in bytes (of target - low 32 bits if >4GB) + proc Header_Get_FileSize {contents} { set 4bytes [string range $contents 52 55] set r [binary scan $4bytes i val] return $val } - #offset 56 4 bytes signed integer + #offset hex:0x38 dec:56 Bytes:4 - signed integer #icon index value + proc Header_Get_IconIndex {contents} { + set 4bytes [string range $contents 56 59] + set r [binary scan $4bytes i val] + return $val + } - #offset 60 4 bytes - unsigned integer + #offset hex:0x3C dec:60 Bytes:4 - unsigned integer #SW_SHOWNORMAL 0x00000001 #SW_SHOWMAXIMIZED 0x00000001 #SW_SHOWMINNOACTIVE 0x00000007 # - all other values MUST be treated as SW_SHOWNORMAL - proc Get_ShowCommand {contents} { + proc Header_Get_ShowCommand {contents} { set 4bytes [string range $contents 60 63] set r [binary scan $4bytes i val] return $val } - #offset 64 Bytes 2 + #offset hex:0x40 dec:64 Bytes:2 #Hot key + proc Header_Get_HotKey {contents} { + # Existing code that extracts the raw 16‑bit hotkey value: + set raw [Header_Get_HotKey_Raw $contents] + # The low byte holds the virtual‑key, high byte holds modifier flags + set vk [expr {$raw & 0xFF}] + set mods [expr {($raw >> 8) & 0xFF}] + set name [_vk_to_name $vk] + set modStr [_modifiers_to_string $mods] + if {$modStr eq ""} { + return $name + } else { + return "${modStr}+${name}" + } + } + proc Header_Get_HotKey_Raw {contents} { + set 2bytes [string range $contents 64 65] + set r [binary scan $2bytes s val] ;#short + return $val + } + proc _modifiers_to_string {mods} { + set parts {} + if {$mods & 0x01} {lappend parts "Shift"} + if {$mods & 0x02} {lappend parts "Ctrl"} + if {$mods & 0x04} {lappend parts "Alt"} + if {$mods & 0x08} {lappend parts "Win"} ;# optional + return [join $parts "+"] + } + proc _vk_to_name {vk} { + # Minimal map – extend as needed + array set vkMap { + 0x00 "No key assigned" + 0x08 Backspace 0x09 Tab 0x0D Return + 0x10 Shift 0x11 Control 0x12 Alt + 0x20 Space 0x21 PageUp 0x22 PageDown + 0x23 End 0x24 Home 0x25 Left + 0x26 Up 0x27 Right 0x28 Down + 0x2D Insert 0x2E Delete + 0x70 F1 0x71 F2 0x72 F3 + 0x73 F4 0x74 F5 0x75 F6 + 0x76 F7 0x77 F8 0x78 F9 + 0x79 F10 0x7A F11 0x7B F12 + 0x7c F13 0x7d F14 0x7e F15 + 0x7f F16 0x80 F17 0x81 F18 + 0x82 F19 0x83 F20 0x84 F21 + 0x85 F22 0x86 F23 0x87 F24 + 0x90 "NUM LOCK" 0x91 "SCROLL LOCK" + } + if {[info exists vkMap($vk)]} { + return $vkMap($vk) + } else { + if {$vk >= 0x30 && $vk <= 0x39} { + return [format "%c" $vk] ;# 0-9 + } elseif {$vk >= 0x41 && $vk <= 0x5A} { + return [format "%c" $vk] ;# A-Z + } + # fallback: hex representation + return [format "0x%02X" $vk] + } + } - #offset 66 2 bytes - reserved + #offset hex:0x42 dec:66 Bytes:2 - reserved1 + proc Header_Get_Reserved1 {contents} { + set 2bytes [string range $contents 66 67] + set r [binary scan $2bytes s val] ;#short + return $val + } - #offset 68 4 bytes - reserved + #offset hex:0x44 dec:68 Bytes:4 - reserved2 + proc Header_Get_Reserved2 {contents} { + set 4bytes [string range $contents 68 71] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + return $val + } - #offset 72 4 bytes - reserved + #offset hex:0x48 dec:72 Bytes:4 - reserved3 + proc Header_Get_Reserved3 {contents} { + set 4bytes [string range $contents 72 75] + set r [binary scan $4bytes i val] ;# i for little endian 32-bit signed int + return $val + } - #next 76 + #end of 76 byte header proc Get_LinkTargetIDList_size {contents} { - if {[Has_LinkFlag $contents "A"]} { + if {[Header_Has_LinkFlag $contents "A"]} { set 2bytes [string range $contents 76 77] set r [binary scan $2bytes s val] ;#short #logger @@ -318,7 +485,7 @@ tcl::namespace::eval punk::winlnk { set offset [expr {2 + $idlist_size}] ;#LinkTargetIdList IDListSize field + value } set linkinfo_start [expr {76 + $offset}] - if {[Has_LinkFlag $contents B]} { + if {[Header_Has_LinkFlag $contents "B"]} { #puts stderr "linkinfo_start: $linkinfo_start" set 4bytes [string range $contents $linkinfo_start $linkinfo_start+3] binary scan $4bytes i val ;#size *including* these 4 bytes @@ -415,12 +582,12 @@ tcl::namespace::eval punk::winlnk { variable LinkFlags set flags_enabled [list] dict for {k v} $LinkFlags { - if {[Has_LinkFlag $contents $k] > 0} { + if {[Header_Has_LinkFlag $contents $k] > 0} { lappend flags_enabled $k } } - set showcommand_val [Get_ShowCommand $contents] + set showcommand_val [Header_Get_ShowCommand $contents] switch -- $showcommand_val { 1 { set showwnd [list 1 SW_SHOWNORMAL] @@ -451,14 +618,14 @@ tcl::namespace::eval punk::winlnk { set result [dict create\ link_target $link_target\ link_flags $flags_enabled\ - file_attributes ""\ - create_time ""\ - last_accessed_time ""\ - target_length [Get_FileSize $contents]\ + file_attributes [Header_Get_FileAttributes $contents]\ + creation_time [Header_Get_CreationTime $contents]\ + access_time [Header_Get_AccessTime $contents]\ + write_time [Header_Get_WriteTime $contents]\ + target_length [Header_Get_FileSize $contents]\ icon_index ""\ showwnd "$showwnd"\ - hotkey ""\ + hotkey [Header_Get_HotKey $contents]\ relative_path "?"\ ] } @@ -471,9 +638,24 @@ tcl::namespace::eval punk::winlnk { set c [Get_contents $path 20] return [Contents_check_header $c] } - proc file_get_info {path} { + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::winlnk::resolve + @cmd -name punk::winlnk::resolve\ + -summary\ + "Return information about a .lnk file (windows shortcut)"\ + -help\ + "Return a dict of info obtained by parsing the binary data in a windows .lnk file. + If the .lnk header check fails, then the .lnk file probably isn't really a shortcut + file and the dictionary will contain an 'error' key." + @values -min 1 -max 1 + path -type string -help "Path to the .lnk file to resolve" + }] + } + proc resolve {path} { #*** !doctools - #[call [fun file_get_info] [arg path] ] + #[call [fun resolve] [arg path] ] #[para] Return a dict of info obtained by parsing the binary data in a windows .lnk file #[para] If the .lnk header check fails, then the .lnk file probably isn't really a shortcut file and the dictionary will contain an 'error' key set c [Get_contents $path] @@ -483,9 +665,50 @@ tcl::namespace::eval punk::winlnk { return [dict create error "lnk_header_check_failed"] } } + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::winlnk::file_show_info + @cmd -name punk::winlnk::file_show_info\ + -summary\ + "Show information about a .lnk file (windows shortcut)"\ + -help\ + "Print to stdout the information obtained by parsing the binary data in a windows .lnk file, in a human readable format. + If the .lnk header check fails, then the .lnk file probably isn't really a shortcut file and an error message will be printed." + @values -min 1 -max 1 + path -type string -help "Path to the .lnk file to resolve" + }] + } proc file_show_info {path} { package require punk::lib - punk::lib::showdict [file_get_info $path] * + punk::lib::showdict [resolve $path] * + } + namespace eval argdoc { + variable PUNKARGS + lappend PUNKARGS [list { + @id -id ::punk::winlnk::target + @cmd -name punk::winlnk::target\ + -summary\ + "Return the target path of a .lnk file (windows shortcut)"\ + -help\ + "Return the target path of the .lnk file specified in path. + This is a convenience function that extracts the target path from the .lnk file and returns it directly, + without all the additional information that resolve provides. If the .lnk header check fails, then + the .lnk file probably isn't really a shortcut file and an error message will be returned." + @values -min 1 -max 1 + path -type string -help "Path to the .lnk file to resolve" + }] + } + proc target {path} { + #*** !doctools + #[call [fun target] [arg path] ] + #[para]Return the target path of the .lnk file specified in path + set info [resolve $path] + if {[dict exists $info error]} { + return [dict get $info error] + } else { + return [dict get $info link_target] + } } #proc sample1 {p1 n args} { @@ -548,7 +771,12 @@ tcl::namespace::eval punk::winlnk::lib { #} # ++ +++ +++ +++ +++ +++ +++ +++ +++ +++ +++ -## Ready + +namespace eval ::punk::args::register { + #use fully qualified so 8.6 doesn't find existing var in global namespace + lappend ::punk::args::register::NAMESPACES ::punk::winlnk +} +## Ready package provide punk::winlnk [tcl::namespace::eval punk::winlnk { variable pkg punk::winlnk variable version diff --git a/src/vfs/_vfscommon.vfs/modules/test/AGENTS.md b/src/vfs/_vfscommon.vfs/modules/test/AGENTS.md new file mode 100644 index 00000000..218c4d30 --- /dev/null +++ b/src/vfs/_vfscommon.vfs/modules/test/AGENTS.md @@ -0,0 +1,14 @@ +# test module information +--- +subfolders (that don't begin with a # or _ character) within this test folder form part of the Tcl namespace of the resulting modules that are produced from running ' src/make.tcl modules' + +The #modpod- folder for a module contain files that will stored in the final module's .tm file (zip based) which is built by make.tcl into the /modules/test folder (again with further subfolders depending on whether the module is namespaced) + +The final version of the built modules are determined from corresponding -buildversion.txt files placed at the same level as the corresponding #modpod--999999.0a1.0 folder + +example: A final installed module /modules/test/foo/baz/foobazzer-1.1.tm corresponds to the tcl module test::foo::baz::foobazzer and will have its source tests and associated files in the folder /src/modules/test/foo/baz/#modpod-foobazzer-999999.0a1.0 with a corresponding version number file at /src/modules/test/foo/baz/foobazzer-buildversion.txt + +A new testmodule for a package can be generated from the template template_test built into the punk::mix::templates package which is referenced as 'punk.test' when creating a new module using the 'dev module.new' command. This command is an alias for punk::mix::commandset::module::new. + + + diff --git a/src/vfs/_vfscommon.vfs/modules/test/pattern-1.2.8.tm b/src/vfs/_vfscommon.vfs/modules/test/pattern-1.2.8.tm new file mode 100644 index 0000000000000000000000000000000000000000..b5cb7026c5e1a0fbdd2df2ad549e8f1743d15add GIT binary patch literal 54941 zcmce;cOaF28$WJuLbBLj=1hL3Mkr22u7-{bgfqH@5oKfc?U?8L&7zu)SBH>^w zB*YrT;smpHfm!pofUO+Cwh$h72pnM#a|YSKpeXh15gF)+?a{(jm zctIR4Fa*LLbqoS*0|Bf89OVK6+=YbOTOk3HA!In2|8h~kzx)EbxBzbO@d1RQbpMlv zsP(aa+Yf@cf|!{>zP=zPlhd_AJna!k1nB$zKQ8hAd6~?hzvzsT_t#aRwg6s3na0{4 z4*IGZ@XZ+&AwP8cO$h1~h$rOtQ@#rLS3jbp!EAsNtlW?&x0sok{ZS;Kg$3Bz+5!mL zZ>qpyFyyH&Uj-w<_Rybd{VoIw27GGk3^GBuK<$yINB$7VWA-foPKA8Si$AJi4YN26 z2L!|l33yl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yk#g@gOLtUuJf&aJLp{7 zgQ7*r)ei&A`YTp{)C3x-V_$;Tf(bg-{#9Zd|ajiJM(XrbWkz zCW{@A3SSnMd@k35H8ntvz@lAJn=z8ML={o{DWhstIPGw3mT7g`ui)MVR4!G!eo9Wz z0!L~spSa-pN=cGF=%37WQ8}&Xz*40N=&Z(CeP=d8x5Dvt=}#`n zLWgb!C6KpOQ@1!*Cc1IH$oV9%6c+`p8S@awo`Xz=zr(nWQcym(x&nG?;ohf;3SIPI zx3xa5W3~Twr4z$)LFR!2zPDEzF+a!ht6DHTf*Dz|uW1dhsWf!ys~JB2r;>kvAF|DR z+UZ_6|4V;@)AS16&~RBctHYJ+S}DQ1>1%LsjAeALt8`9yTc}=R?O_SU=i}%*r0pN~ zD#I75)>YdhB8L{Zk*4*BJvY_AJQg0E8U#L1O^k}oIk|CHEfdmXE<%;q*19rylE;9M z5$cjxDHQ64XXKTkQagTqh#XA(uC eng&E2wVS3u?)?=E0gS2!5Unl=SCatkp8o)-yxSuH diff --git a/src/vfs/_vfscommon.vfs/modules/test/punk/args-0.1.5.tm b/src/vfs/_vfscommon.vfs/modules/test/punk/args-0.1.5.tm index ec2cd49ccdac1022e2a42a07beccc8ed3b9a0de2..5996a6ef9cfb1da147209a9ff0d323644e6aaae1 100644 GIT binary patch delta 3178 zcmaKt3pkYd7sqGD%oxTDxs1tm2)V?#Ut?-8V`wW>?it2lavQfwu~RB(E2*EmTyjm8 zsIc0QYF)BYq>?4OsZ@v%<kj&%5NSVTY|CzK6pC8UAA7!oKTtU;kL5_llC0X#|$G$3@q_ZSR# zjc@`h7*Sv*WCg;7OhFVzS~4KQmlGbtj*4cpV)&)DlBoPLM5v4^k_?p*luSnAfIm|8 zZ?+L%V?Ya19^x=^J;X(%EEH2ED+$?}s8ySS(t-RG6c)syh>#Z4J&)3ZbPH+&#ML|` z_(n9Eh$QhBh(t<(S|J*=4}G-58qpvTZ4InYVxS!@D1-r@(Wc*uOM8WevcrR7f=OPh zlTzbv7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G5Z>3L zoQ<;Bug05JGR9{2#fLXUDgtBa^wlbl$Yn;HxW1FQ3BiuDg!(!?;=#MWZCI1fQ8>zpU@BGMWPquQ#zE2P7 zam`v6YBJQJJyk{7Sye)p-7lc1+ea3w^){wkh?~8aCWFrWWly8Fq^D>;%QsWuGq&Sy zZY6~IB^lW9hr6?+%i%*X^61MR*VB~mTnbso)pWzQ$mqCCD(}ie^_#iRo=z~R#NEoQ zo;klOE}U;OpJ724w+mdXiv;%n0faA&;6HL1A1FE(ipIfc(-9%!rkLWrINS+#nDoI{V+J zjrt?JMkd0pVt<#auz1{`6-QkKSTO!i*`iB?eJA`W#r2e+5@5|h9?WTqfhK)c(5i=n z7VI;wT7-RutdD~UO3)>8U`$J5pBgm4!EXLb8S5McW`+nf3W9=k!XXer$zKNl2VypQ A$^ZZW diff --git a/src/vfs/_vfscommon.vfs/modules/test/punk/lib-0.1.3.tm b/src/vfs/_vfscommon.vfs/modules/test/punk/lib-0.1.3.tm index bc88302cb036709d065777d36847baa77c3b5a53..36ffbcd4c3c0d591e72790390f03c691c153b7a1 100644 GIT binary patch delta 2004 zcmV;_2P^pZV2fU`eH;=v8ZlhcUDdE12LJ$$761Sq0F!|&Ab+)3Yi|=r6#edBab;UF z39J)9t=i=wQa}}LL5R?P36?e99XmtTv&+n^6BGHr_uScsy1Hgs1G zw#?HwPoPuIvjn?C@}h0FJhCP_ie+?BE!m@m)NyLOlB43BJ*rm6#f#v0cszVObn{LR z!r#LoSRAF=s#qGBuk?%r{dW3_Eq?pvBU!hE`b0%iV}IuqZ)ZlbHiu*LOgJ@BiE>N2 zRPNk|<|E=Lqtq@fbPu8BWg5#;bY|pK8Y5%BtCVUf5}GEGWTIwjk`!u`j*^@Mf&cOD zL`@#h#|!-Nk!DToC}kqL5Hm?eW~o&!HA~ic|2}?h^^48-ULMe+<3~UFn7nvFZ>2*F zy-GPd02p zyrGerPPGiJS67`5qW|m}e!lA$hff9SNzy<}(%cPbnrqJu1^f$5!ptniX_U{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ly2{cadchK=XExW@3NuqAdo@aj__(FqznStmZR$!?{551>5VE_yzB_vKMW266 zvfXU!RPWafP`u}%h_=zW58s#Kq!H$DO;~A6SL`wJvE?g~IQc{r*^5|D*Gsx9 z5-a*DVAh9m67v^JtD+5-RYpEeciz%}E>dE?(T=e@ovr-lIVHCY_+ndnzIUp!clt9A#LL->H#pJGtsq90~ejy>{3zbcH) zTu>h3nWmTGQw>y3Gk>eH3dP6?a$J>=?3Beo$KuE46>4!pcI7$mtS8`>x{B`8DBEe{ zT)y&7n;cH*px}_Ae6&dTB_?w99rH51D6}L%ffH>P+;<891jU?G{b+^{Ls(55d7F?1 z8z4~ZQim3q!+qkwlcK_Pi5tv_4QgADLAkQct(scrMgkX7=U9Aq>)B?SzWwPmbn%9| z-OwAgJZ><2fhUR|mHOZ@U#7_xB(=3fc;k$4t)H%Wl1J@+yDM6w1j}&t_M~s$B(9b^ z#4i4|C*f279N(7OJStE6;oBIAz0?BQzW zE%@z;z96yo%QbJg3}$>x#Mv(kqJvt~9xEoTYyFGMWvJqo_-S)&|J-qR4pU@EG+C*6 z7BqR!z18`(nY|5kw8L~r;*!8i!%#w8Osum+qX6-LH-e_)1v5edf$sLsKAkx6{{lI7 BuMhwL diff --git a/src/vfs/_vfscommon.vfs/modules/test/runalltests.tcl b/src/vfs/_vfscommon.vfs/modules/test/runalltests.tcl index 945abba9..bbb1bec4 100644 --- a/src/vfs/_vfscommon.vfs/modules/test/runalltests.tcl +++ b/src/vfs/_vfscommon.vfs/modules/test/runalltests.tcl @@ -40,7 +40,7 @@ puts "running tests in [llength $punktestpkgs] packages $punktestpkgs" flush stderr flush stdout package require punk::ansi -foreach pkg [lrange $punktestpkgs 1 2] { +foreach pkg $punktestpkgs { puts stdout "running test pkg $pkg" if {[catch { #set result [shellrun::runout -tcl ${pkg}::RUN] diff --git a/src/vfs/_vfscommon.vfs/modules/test/runtestmodules.tcl b/src/vfs/_vfscommon.vfs/modules/test/runtestmodules.tcl new file mode 100644 index 00000000..b7846da6 --- /dev/null +++ b/src/vfs/_vfscommon.vfs/modules/test/runtestmodules.tcl @@ -0,0 +1,166 @@ +#!punk902testrunner shellspy +#This script uses shellfilter::run calls under the hood - which probably requires a built punkshell binary to function properly. +#(plain tclsh may stall - todo - review reasons for this and whether shellfilter can be modified to support ordinary tclsh) +#A known working copy of a punk shell executable should be placed on the path and the shebang line updated to reflect this + + +package require punk +package require punk::args +punk::args::define { + @id -id (script)::runtestmodules + @cmd -name runtestmodules -help\ + "Run test:: modules that support the packagetest api + (have RUN command)" + -tcltestoptions -type list -default "" -help\ + "arguments that will be left in ::argv for tcltest + to handle" + @values -min 0 -max -1 + glob -type string -multiple 1 -optional 1 -help\ + " names or glob patterns of test modules to run. + Note that this script will search for all modules + within the test namespace that are known to the + current interpreter - not just those within the + current project." +} +set argd [punk::args::parse $::argv withid (script)::runtestmodules] +lassign [dict values $argd] leaders opts values received +set tcltestoptions [dict get $opts -tcltestoptions] +if {![dict exists $received glob]} { + set pkg_globs [list *] +} else { + set pkg_globs [dict get $values glob] +} + +set ::argv $tcltestoptions +set ::argc [llength $tcltestoptions] + + +#bogus require to ensure modules within path test have been scanned to be in Tcl's 'package ifneeded' in-memory database +catch {package require test::bogus666} +set tmlist [tcl::tm::list] +foreach tmfolder $tmlist { + set tfolder [file join $tmfolder test] + if {[file exists $tfolder]} { + puts stdout "checking tm test folder $tfolder" + set subfolders [glob -nocomplain -dir $tfolder -type d -tail *] + foreach sub $subfolders { + if {[string match #* $sub]} { + continue + } + puts stdout "bogus require of test::${sub}::bogus666" + catch {package require test::${sub}::bogus666} + } + } +} +set alltestpkgs [lsearch -all -inline [package names] test::*] +if {![llength $alltestpkgs]} { + puts stder "No packages matching test::* found" + exit 1 +} +if {[llength $pkg_globs] == 1 && [lindex $pkg_globs 0] eq "*"} { + set matchedtestpkgs $alltestpkgs +} else { + set matchedtestpkgs [list] + foreach pkg $alltestpkgs { + foreach g $pkg_globs { + if {[string match $g $pkg]} { + lappend matchedtestpkgs $pkg + break + } + } + } +} +if {![llength $matchedtestpkgs]} { + puts stderr "No test packages matched supplied glob patterns" + exit 1 +} +puts "matchedtestpkgs: $matchedtestpkgs" +set punktestpkgs [list] +foreach pkg $matchedtestpkgs { + if {![catch {package require $pkg}]} { + if {[info commands ::${pkg}::RUN] ne ""} { + lappend punktestpkgs $pkg + } + } else { + puts stderr "failed to load test package $pkg" + } +} +if {![llength $punktestpkgs]} { + puts stderr "No test packages with RUN command were able to be loaded" + exit 1 +} +set scriptname [file tail [info script]] +set results [dict create] +dict set results total 0 +dict set results passed 0 +dict set results skipped 0 +dict set results failed 0 +set pkgs_with_fails [list] +set pkgs_without_fails [list] +package require shellrun +puts "running tests in [llength $punktestpkgs] packages $punktestpkgs" +flush stderr +flush stdout +package require punk::ansi +foreach pkg $punktestpkgs { + puts stdout "running test pkg $pkg" + if {[catch { + #set result [shellrun::runout -tcl ${pkg}::RUN] + set result [shellrun::runx -tcl ${pkg}::RUN] + #set result [shellrun::runx ls] + } errM]} { + puts stderr "error calling 'runout -tcl ${pkg}::RUN' $errM"; flush stderr + set result {none ""} + } + puts stdout "executed ${pkg}::RUN" + flush stdout + set i 0 + dict for {what chunk} $result { + set chunk [string map [list \r\n \n] $chunk] + switch -- $what { + stdout { + foreach ln [split $chunk \n] { + incr i + if {[string match "Tests ended at*" $ln]} { + puts stdout " [punk::ansi::ansistring VIEW -lf 2 -cr 1 "$pkg $ln"]" + } elseif {[string match "*:*Total*Passed*Skipped*Failed*" $ln]} { + set fields [lrange $ln 1 end] + dict for {K v} $fields { + set k [string tolower $K] + dict incr results $k $v + if {$k eq "failed"} { + if {$v == 0} { + lappend pkgs_without_fails $pkg + } elseif {$v > 0} { + lappend pkgs_with_fails $pkg + } + } + } + puts stdout "$pkg $ln" + } else { + puts stdout " $ln" + #puts stdout "$i" + } + } + flush stdout + } + stderr { + puts stderr " [punk::ansi::ansistring VIEW -lf 2 -cr 1 $chunk]" + flush stderr + } + default { + puts stderr "<${what}> $chunk" + flush stderr + } + } + } + puts stdout "completed pkg test ${pkg}" +} +puts stdout "packages without failures: $pkgs_without_fails" +puts stdout "packages with failures: $pkgs_with_fails" +puts stdout "results: Total [dict get $results total] Passed [dict get $results passed] Skipped [dict get $results skipped] Failed [dict get $results failed]" +#after 5000 {set ::done true} +#vwait ::done +puts stdout "DONE" +#exit 0 + diff --git a/src/vfs/_vfscommon.vfs/modules/test/tomlish-1.1.5.tm b/src/vfs/_vfscommon.vfs/modules/test/tomlish-1.1.5.tm index 3ae60d426cf6b63988005e9d06eb1aac81a2c04f..f4f2b48410448782e6616be9dba89d649618f96a 100644 GIT binary patch delta 2687 zcmZ9MdpuO@8pmheVK9b4CKA&WsfOgPQSO&Qg;SyAGG%N+#JC+Xu}Q@aJtapsmoAjc zFrjkEy`&;{Nh%$k-R02MRy*R1Me}K&_0Rf!zt8hN>s{;fS#RoHLg`%s?+6|;2vpdi zK!nTqXbLMNBruvD6B88d5ea^R$OeRuh5r)V!CX{?-%3=$lNR=m(db9pcN^af^2c1rHg@%$9f^PLbqJ{mNBrTbe3QCDqg8n}d zsYPj}rfl2^*UG`baw&02*RP$cduXrj6u%)d${OE#D@VCrm~`N_er+%ha*&l7d$Mby zwPa~<_n!5;@7TU=vt4Sqa+z#$hfhj9DZf_pscdf04PKtx3DE?rfEsdZ(BN2#!sjogvvyyH z+Q(n^w!4}&XVq{iMv7~Rx6`v*hXT$wZdZ+%uv$km4uafgc&4JUI(KBl@{X`BM(VKf9XH~}QQW0Zd(tgfC+dz4Z{L+nxm@~%iL-O1 zzQa}PCpqR>PACS{*%iEebe`#|`lroAz2c5%YcsCJw5pp*g+4r58*ntXcc(l)y;I`c za7x*0OP|ej^JH#c*DJ0zKhQsEC}z~2vR(XZ!Tn^f;*eFzpPOq;P90H594Xw?FE>sZ zxMsqdA|w>;?l5j~u+nQLn$g4eGgEQ1ewGc+pXUaz6RPFbuf~P1EW6M9xVNLJC~yrJi^WLi!rp_MY2H&#PpPXBNe%It* zzngr|xLj#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