Changeset b47c991 in tol
- Timestamp:
- Jun 20, 2011, 1:13:12 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- b50906a
- Parents:
- f5c1a77
- Files:
-
- 4 edited
-
tolbase/lib/toltk/init_toltk.tcl (modified) (1 diff)
-
tolbase/lib/toltk/project.tcl (modified) (1 diff)
-
tolsh/tolsh.vfs/lib/app-tolsh/tolsh.tcl (modified) (5 diffs)
-
toltcl/generic/toltcl.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/init_toltk.tcl
rf5c1a77 rb47c991 291 291 # Load project 292 292 namespace import project::* 293 set project::data(iniproject) 1 293 294 foreach option $argv { 294 295 if { [string equal $option "-b"] } { 295 296 set project::data(oculto) 1 297 } elseif { $option eq "-np" } { 298 set project::data(iniproject) 0 296 299 } 297 300 } -
tolbase/lib/toltk/project.tcl
rf5c1a77 rb47c991 165 165 } 166 166 # update 167 tol::initlibrary 167 tol::initlibrary $data(iniproject) 168 168 foreach prj $projects(Project,names) { 169 169 set prjname $projects(${prj},name) -
tolsh/tolsh.vfs/lib/app-tolsh/tolsh.tcl
rf5c1a77 rb47c991 32 32 set options(lang) 0 33 33 set options(initlib) 1 34 set options(iniproject) 1 34 35 set options(compile) "" 35 36 set options(vmode) "" … … 46 47 # 47 48 # -i --> do not include initLibrary 49 # -np --> do not load _iniproject.tol 48 50 # -c"..." --> compile a tol expression 49 51 # -c "..." --> compile a tol expression … … 92 94 # 93 95 set options(initlib) 0 96 } elseif {$opt eq "np"} { 97 set $options(iniproject) 0 94 98 } elseif {[string index $opt 0] eq "c"} { 95 99 if {[string length $opt]>1} { … … 226 230 puts { 227 231 -i file --> include a file but not initLibrary 232 -np --> do not load _iniproject.tol 228 233 -c"..." --> compile a tol expression 229 234 -c "..." --> compile a tol expression … … 386 391 387 392 if {$options(initlib)} { 388 tol::initlibrary 393 tol::initlibrary $options(iniproject) 389 394 } 390 395 -
toltcl/generic/toltcl.c
rf5c1a77 rb47c991 317 317 Tcl_Obj *CONST objv[]; /* Argument objects */ 318 318 { 319 if ( objc != 1 ) { 319 int loadIni; 320 int status; 321 322 if ( objc != 2 ) { 320 323 Tcl_AppendResult(interp, "wrong # args: should be \"", 321 Tcl_GetString(objv[0]), "\"", NULL);324 Tcl_GetString(objv[0]), " 0|1\"", NULL); 322 325 return TCL_ERROR; 323 326 } 324 LoadInitLibrary(1); 325 return TCL_OK; 327 328 if ( (status = Tcl_GetIntFromObj( interp, objv[1], &loadIni )) == TCL_OK ) { 329 LoadInitLibrary( loadIni ); 330 } 331 return status; 326 332 } 327 333
Note: See TracChangeset
for help on using the changeset viewer.
