summaryrefslogtreecommitdiffstats
path: root/generic/tclLoad.c
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. ↵jan.nijtmans2014-02-101-2/+2
| | | | | | | Clang/LLVM) don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW] FossilOrigin-Name: 80cf092cc7b1b5761346f83ceb291580270caebe
* Finish the TIP #416 implementation as specified (#define's were still ↵jan.nijtmans2012-11-071-2/+2
| | | | | missing). Added warning to "load" documentation. Added test case for using -global without specifying filename. FossilOrigin-Name: 6c3f682fbffebb9031d6a55133cc3df2264db484
* syntax improvement: expect options before the filenamejan.nijtmans2012-10-241-15/+14
| | | | | <p>start at documentation FossilOrigin-Name: 7bc615df40c062b02f090a6708f8b881074b05dc
* experimental implementation of FRQ-3579001jan.nijtmans2012-10-241-5/+31
| | | FossilOrigin-Name: 0895bccd51921c67f6a686aee8deb581c4c04bb5
* more result generation conversiondkf2012-08-041-26/+31
| | | FossilOrigin-Name: 9a036eff3aa8dda0dba82ddcb110bd116aa2e4f8
* converting to using Tcl_Obj API for error message generation; part donedkf2012-08-031-6/+4
| | | FossilOrigin-Name: 7fb86a29c9bfa1140ea3a8af6f65221ce4474e45
* Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-15/+15
| | | FossilOrigin-Name: 4dd736c95fc5e333c574e4d23aeccb7e0bdd41ae
* Reduce amount of unreachable code. Refactor Win socket and load code to be lessdkf2012-04-051-31/+1
| | | | | baroque in its internals. FossilOrigin-Name: 92cfbef04802afe414b04f8fff6a36b61d5ae27d
* Patch from the cygwin folksjan.nijtmans2012-03-041-0/+6
|\ | | | | FossilOrigin-Name: 09cd534bb6f0dea416e6fe28123dd6c68aaeeba5
| * Patch from the cygwin folksjan.nijtmans2012-03-041-0/+6
| |\ | | | | | | FossilOrigin-Name: 8dafecc06c0b746cac26875866ca3846719a07a6
| | * Patch from the cygwin folksjan.nijtmans2012-03-041-0/+6
| | | | | | | | | FossilOrigin-Name: 8cbc14c4dd9d63d32b9505e4e86db3e2b23eda15
* | | Convert TclGetLoadedPackages to use Tcl_Obj API for result generation.dkf2011-05-071-38/+40
| | | | | | | | | FossilOrigin-Name: ae2f5eda42a8e1b22b6357671211b7fe174fe276
* | | More generation of errorCodes ([interp], [lset], [load], [unload]).dkf2011-04-021-2/+34
| | | | | | | | | FossilOrigin-Name: d109deac44e0595585a6ca4419011c33655c345c
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-10/+10
| | | | | | | | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | | | | | | | cause more harm than good. Purged them (except in zlib files). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ \ | | |/ | | | | | | | | | more harm than good. Purged them. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | | | | | | | more harm than good. Purged them. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| * | Fixed [Bug 2269431]: load of shared objectsnijtmans2008-11-141-3/+5
| | | | | | | | | | | | | | | | | | leaves emporary files on windows FossilOrigin-Name: c651428b00d6b44ab27aa64a0963860a043f41a7
| * | * tclWinTest.c: Fix compiler warning when compiling this file with mingw gcc:nijtmans2008-10-071-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tclWinTest.c:706: warning: dereferencing type-punned pointer will break strict-aliasing rules * generic/tclLoad.c: Make sure that any library which doesn't have an unloadproc is only really unloaded when no library code is executed yet. [Bug 2059262] FossilOrigin-Name: 7c664fa36313e3e30445cd7f246a1d35bc1d00f9
* | | * generic/tclBasic.c, generic/tclClock.c, generic/tclEncoding.c,dkf2010-10-011-21/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclEnv.c, generic/tclLoad.c, generic/tclNamesp.c, * generic/tclObj.c, generic/tclRegexp.c, generic/tclResolve.c, * generic/tclResult.c, generic/tclUtil.c, macosx/tclMacOSXFCmd.c: More purging of strcpy() from locations where we already know the length of the data being copied. FossilOrigin-Name: 50bdab468291447e44eee4503c3fcce02a5dea4d
* | | Don't use arrays of length 1, just use a single element then, it makes code ↵nijtmans2010-05-191-4/+4
| | | | | | | | | | | | | | | more readable. FossilOrigin-Name: d3074821cb266b7709e26b7e359e40462d983613
* | | * generic/tcl.decls: [TIP #357]: First round of changeskennykb2010-04-021-51/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: to export Tcl_LoadFile, Tcl_FindSymbol, * generic/tclIOUtil.c: and Tcl_FSUnloadFile to the public API. * generic/tclInt.h: * generic/tclLoad.c: * generic/tclLoadNone.c: * generic/tclStubInit.c: * tests/fileSystem.test: * tests/load.test: * tests/unload.test: * unix/tclLoadDl.c: * unix/tclLoadDyld.c: * unix/tclLoadNext.c: * unix/tclLoadOSF.c: * unix/tclLoadShl.c: * unix/tclUnixPipe.c: * win/Makefile.in: * win/tclWinLoad.c: FossilOrigin-Name: 80aa157f455c7e777a532f7a3fd791d38359f31d
* | | Code Audit results:dkf2010-03-051-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations FossilOrigin-Name: 4d8a4f639d28df5b5dfabd407be8efbb44454601
* | | CONSTify TclGetLoadedPackages second paramnijtmans2008-12-191-10/+10
| | | | | | | | | FossilOrigin-Name: fa03a357a1ba470dc5457a62dfce688956d18d53
* | | Implement TIP#307.dkf2008-12-051-3/+3
| | | | | | | | | FossilOrigin-Name: 78cbddf83845a359715485e954e72b95a7bdfdc8
* | | rename static function FSUnloadTempFile tonijtmans2008-11-131-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | TclFSUnloadTempFile, needed in tclLoad.c Fixed [Bug 2269431]: load of shared objects leaves temporary files on windows FossilOrigin-Name: 9ed8aa87994ca8bd79984f3c6b7411e53d10de24
* | | Add "const" to many internalnijtmans2008-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | | const tables. No functional or API change. FossilOrigin-Name: f03d2e2d83be42035c4aad3b01bbd09f5a967c1b
* | | * generic/tclLoad.c: Make sure that any library whichnijtmans2008-10-041-3/+5
| | | | | | | | | | | | | | | | | | | | | doesn't have an unloadproc is only really unloaded when no library code is executed yet. [Bug 2059262] FossilOrigin-Name: 535ff978c5692d303ddfe12e0d3b95f03991f443
* | | fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-211-2/+2
| | | | | | | | | FossilOrigin-Name: 395eaa2623b2540e0cb48daab4369053acb0f8d0
* | | Small clarifications that code a bit nicer to read.dkf2008-05-301-44/+36
|/ / | | | | FossilOrigin-Name: 09791774694158691869140d936c5d492672d821
* | various "const" additions, in line with TIP #27nijtmans2007-02-201-8/+9
| | | | | | FossilOrigin-Name: 81ea4e1335f3c78465e90ec021758c096ba9b544
* | Convert to using ANSI decls/definitions and using the (ANSI) assumption that ↵dkf2005-10-311-93/+88
| | | | | | | | | | | | | | | | NULL can be cast to any pointer type transparently. FossilOrigin-Name: 1e0170d2bfe15a4d78436b9a806cfeca52081da4
* | Getting more systematic about styledkf2005-07-171-219/+220
| | | | | | FossilOrigin-Name: 7591df07d6708876cd588c42190751e37f827e21
* | fixed typos in documentation and commentsvincentdarley2004-03-091-2/+2
| | | | | | FossilOrigin-Name: 720c4fb8792919433675a33747c2c891b0f1b321
* | Missed a pointer dereference in check for NULL. D'oh! [904307]dkf2004-02-251-2/+2
| | | | | | FossilOrigin-Name: 53abe2083855353ca573db7554e6a65a138a85cf
* | TIP#100 implementation largely based on work by Georgios Petasis.dkf2004-02-241-15/+490
| | | | | | FossilOrigin-Name: 4f599936a4b736fee3af0ec8d022cb5172a26050
* | Fix memory leak on error pathdkf2004-02-211-2/+3
|/ | | FossilOrigin-Name: ccdf97e3748b01a7cf376f8cce29e22bc53eea77
* * generic/tclLoad.c: Changed the code so that if Tcl_StaticPackage kennykb2003-02-011-18/+40
| | | | | | | | | | | is called to report the same package as being loaded in two interps, it shows up in [info loaded {}] in both of them (previously, it didn't appear in the static package list in the second. * tests/load.test Added regression test for the above bug. [Bug 670042] FossilOrigin-Name: 06bcf54eca7ec9b2d1d46ac9f7240bbf9cb7342d
* removed load-related clientData, made filesystem staticvincentdarley2002-07-221-8/+8
| | | FossilOrigin-Name: 2174b09a78e2a3b28d41ebfa82d3f8f8ab5df59a
* Updated APIs in the files */tcl*Load*.c according to the guidelineskennykb2002-01-091-2/+2
| | | | | | of TIP 27. FossilOrigin-Name: ce9573a39cb9f42da11beec368b354ada882cbdd
* fs updatevincentdarley2001-08-231-7/+10
| | | FossilOrigin-Name: 37484c1daabf6ee673956b20a5839e2ba4d36684
* Changes from TIP#17 "Redo Tcl's filesystem"vincentdarley2001-07-311-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following files were impacted. * doc/Access.3: * doc/FileSystem.3: * doc/OpenFileChnl.3: * doc/file.n: * doc/glob.n: * generic/tcl.decls: * generic/tcl.h: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclDate.c: * generic/tclDecls.h: * generic/tclEncoding.c: * generic/tclFCmd.c: * generic/tclFileName.c: * generic/tclGetDate.y: * generic/tclIO.c: * generic/tclIOCmd.c: * generic/tclIOUtil.c: * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclLoad.c: * generic/tclStubInit.c: * generic/tclTest.c: * generic/tclUtil.c: * library/init.tcl: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacInit.c: * mac/tclMacPort.h: * mac/tclMacResource.c: * mac/tclMacTime.c: * tests/cmdAH.test: * tests/event.test: * tests/fCmd.test: * tests/fileName.test: * tests/io.test: * tests/ioCmd.test: * tests/proc-old.test: * tests/registry.test: * tests/unixFCmd.test: * tests/winDde.test: * tests/winFCmd.test: * unix/mkLinks: * unix/tclUnixFCmd.c: * unix/tclUnixFile.c: * unix/tclUnixInit.c: * unix/tclUnixPipe.c: * win/tclWinFCmd.c: * win/tclWinFile.c: * win/tclWinInit.c: * win/tclWinPipe.c FossilOrigin-Name: 9461aca54800a289624dfe39d333e41e20168ac3
* * generic/tclLoad.c: #def'd out the unloading of DLLs at finalizehobbs1999-12-011-1/+9
| | | | | | | time for Unix in TclFinalizeLoad. [Bug: 2560 3373] Should be parametrized to allow for user to specify unload or not. FossilOrigin-Name: 049dffa868915030187db9da16d87aecfa9e2642
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-117/+136
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* Initial revisionrjohnson1998-03-261-0/+636
FossilOrigin-Name: cacdd0f329872d67973970d74c6978730bc24baa