Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tip 430 install.tcl/SUPPORT_BUILTIN_ZIP_INSTALL

Openc5825d32351bfc06ce6ded6e786374fc9550184cCreated 2 years agoUpdated 2 years ago
Descriptionplain2024-10-11 03:21:34
library/install.tcl has the following switch statement

 switch [lindex $argv 1] {
   mkzip {
     zipfs mkzip {*}[lrange $argv 2 end]
   }
   mkzip {
     zipfs mkimg {*}[lrange $argv 2 end]
   }
   default {
     ::practcl::[lindex $argv 1] {*}[lrange $argv 2 end]
    }

 }

I guess the second switch case should read mkimg instead of mkzip.

I was interested to test the effects of this install feature - but building on windows with SUPPORT_BUILTIN_ZIP_INSTALL defined that results in an error

tclZipfs.c:6494:36: error: use of undeclared identifier 'argvPtr'
 archive = Tcl_WCharToUtfDString((*argvPtr)[1], TCL_INDEX_NONE, &ds);
Log in (anonymous is fine) to add a comment.