Changeset 827eb3c in tol
- Timestamp:
- Jun 22, 2010, 11:13:17 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 7b0030e
- Parents:
- 227444a
- Location:
- tol/stdlib/general/system/Curl
- Files:
-
- 2 edited
-
Curl.tol (modified) (1 diff)
-
CurlFunctions.tol (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tol/stdlib/general/system/Curl/Curl.tol
r227444a r827eb3c 13 13 Set _.autodoc.authors = [[ "josp@tol-project.org" ]]; 14 14 15 Text _tclCode = { 16 Text dir = GetAbsolutePath(".") + "/"; 17 Text ReadFile( dir + "TolCurl.tcl" ) 18 }; 19 15 20 #Embed "CurlFunctions.tol" 16 21 ]]; 17 18 Real {19 Text dir = GetAbsolutePath(".") + "/";20 Set tclStatus = Tcl_EvalEx( [[ "source", dir + "TolCurl.tcl" ]] );21 Real If( Not(tclStatus["status"]), {22 Error( "Initializing Curl: " + tclStatus["result"] );23 Real 024 } )25 }; -
tol/stdlib/general/system/Curl/CurlFunctions.tol
r227444a r827eb3c 4 4 ////////////////////////////////////////////////////////////////////////////// 5 5 6 Real _tclCodeLoaded = 0; 7 8 Real _InitTclCode( Real void ) 9 { 10 Real If( _tclCodeLoaded, 1, { 11 Set tclStatus = Tcl_EvalEx( [[ "eval", _tclCode ]] ); 12 Real If( tclStatus["status"], _tclCodeLoaded:=1, { 13 Error( "Initializing Curl: " + tclStatus["result"] ); 14 Real 0 15 } ) 16 } ) 17 }; 18 6 19 Real Get( NameBlock args ) 7 20 { 21 // Esta inicializacion deberia desaparecer 22 Real _InitTclCode(?); 23 8 24 Text url = args::url; 9 25 Text file = args::file;
Note: See TracChangeset
for help on using the changeset viewer.
