summaryrefslogtreecommitdiffstats
path: root/win
Commit message (Collapse)AuthorAgeFilesLines
* Add pkgcflags, appcflags and stubscflags to reflect different compilation modes.vc-reform-tests-passapnadkarni2017-09-282-83/+133
| | | | | | | | | | Packages compile (at least) three types of objects files - the shared library extension (e.g. tk86.dll), application programs (e.g. wish) and a static stubs library (tkstub86.lib). Thus we need to construct three different sets of compilation flags accordingly. Also updated makefile header comments to reflect modern usage. FossilOrigin-Name: 796c9fe1ab27bb389adf00d26a49566a0443ea0c753282d45f98cadf1f20f391
* Include rules.vc and nmakehlp.c as part of install. apnadkarni2017-09-262-16/+82
| | | | | | | | | | Work toward not having to keep updating extensions with the latest version of rules.vc and nmakehlp. Extension makefiles can instead use the installed files instead. Also added some basic sanity checks to rules.vc to warn if extensions are being compiled with options incompatible with those used to build Tcl. FossilOrigin-Name: 1889687ba861e0870cf4bbb3abfbc12393501aea3d985476f8af96c28e3254bc
* Eliminate obsolete winhelp style documentation and fix Html Help doc buildapnadkarni2017-09-252-67/+17
| | | | | to work on 64-bit systems. FossilOrigin-Name: 5137d4fbb179cde7cc02cb5a66367be039cc2bcc035f9ad4fa162e3bdd9c54f2
* Eliminated /base option on linking as not recommended with ASLRapnadkarni2017-09-252-9/+5
| | | FossilOrigin-Name: 847eaa26c52fbe4a466a2e94d9973e58ee0db020160554a74ca5ea7450565850
* Unify build commands with MAKE{LIB,DLL,CON,GUI}CMD macrosapnadkarni2017-09-252-15/+14
| | | FossilOrigin-Name: 1e35d5e767ded7b489ba003bc3bb4fff755a3f01484b492b6f71358018efa8f9
* Move TCLSH and TCLSH_NATIVE macros to rules.vcapnadkarni2017-09-252-18/+20
| | | FossilOrigin-Name: 5be00eaab3a850451c54e1985b7bc3cdf56fdc04edb12e76b849070b41efcc98
* Added project-specific include paths and preprocessor defines.apnadkarni2017-09-252-44/+72
| | | FossilOrigin-Name: 6503da624be962a0605e56208facf3d796e220968fc3dcb0026a65887944b7fa
* Move clean target to rules.vc to avoid repetition in every extensionapnadkarni2017-09-242-30/+40
| | | FossilOrigin-Name: 60ffde8e32cee6c37e70636b2af5d7f7e938493d9d81caefcc9e568042db5d5d
* Move installation dir macros to rules.vcapnadkarni2017-09-242-29/+54
| | | FossilOrigin-Name: 8085276411e6dbed6fd6922c4d6ec40d343032fb44b2b5cc1fdb68714dc111f2
* Moved generic compiler and linker flags completely into rules.vc soapnadkarni2017-09-242-160/+197
| | | | | | | | | extensions do not have to repeat the verbage. Special case Tk as a Tcl extension and add default for locating Tcl source. Both Tcl and Tk compile with new rules. FossilOrigin-Name: 5c431028b89af334c5792001ae301cfc42d02ab645c33a3b9fe183a77d31f7ae
* More refactoring. Moved defines that are Tcl-specific to makefile.vc asapnadkarni2017-09-232-144/+188
| | | | | rules.vc is common to extensions. Reworked parsing of STATS and CHECKS. FossilOrigin-Name: 0e5cb21d0ee739409bc6c1826dab38bb76489b78bb32220b0c4b9e9afe9c2968
* First step in complete refactoring.apnadkarni2017-09-222-136/+295
| | | | | | | | Breaking up into logical sections with comments. Fix floating point option selection to be the same on debug and release. Pick up nmakehlp.c from installed Tcl if available when building extensions. Mods to allow extensions to use the same exact rules.vc file. FossilOrigin-Name: b555514410356654f1b80e3d6eee9763d83dca99ac172769a4bf90f753fbbfd8
* First cut at making application-independent compile and link flagsapnadkarni2017-09-202-88/+114
| | | | | | common to all extensions defined in a single place - rules.vc - instead of having each extension cut and paste the same code. FossilOrigin-Name: a00775326e55435c207e023c68ff35d16dc946066535cd3a6a77770534b8456a
* Disable pointer<->int warnings related to cast between different sizesapnadkarni2017-09-191-0/+7
| | | | | | | There are a gadzillion of these due to use of ClientData and clutter up compiler output increasing chance of a real warning getting lost. So disable them. Eventually some day, Tcl will be 64-bit clean. FossilOrigin-Name: efdaaeb661af7e3d3cb6cce0f992e6fab7ecddf7c76de2429d57b244d89e4bc1
* Eliminated some obsolete checks (Win98, IA64 etc.) to reduce the noise.apnadkarni2017-09-192-35/+9
| | | FossilOrigin-Name: 7267f6da0a3fa978456032ea394ec0943488fd7a6bb73d4d67df9b2eaff1e5f3
* Do not permit nothreads in OPTS as sockets, registry and dde require threading.apnadkarni2017-09-192-4/+23
| | | FossilOrigin-Name: 39dbe837aaef80872038070890d329b76d96356a66c599c3a03d79779678fdd6
* Fix mapping of VCVERSION to VCVER. The simplistic calculation no longerapnadkarni2017-09-191-0/+7
| | | | | | holds for new versions of the compiler. Instead directly use the internal compiler version for these. FossilOrigin-Name: b564ced4b61b3acb12a5d3fe710358204e6bba3a405d8991a744044952dc7e50
* Remove /Gs which enables _chkstk on *every* function call. The normal defaultapnadkarni2017-09-192-16/+22
| | | | | | | | | | | behaviour (without the option) checks only local variable space exceeds page size. This is what Microsoft recommends. Also moved -O2 to rules.vc file so as to keep all optimization flags in one location. Removed optimizations switches subsumed by -O2. FossilOrigin-Name: 04c1607a2421fcae39765336915f40ec15c99a6e3210f46f890b55241bb79e7e
* Bump to TclOO 1.1.0dgp2017-06-261-1/+1
| | | FossilOrigin-Name: 417c4f636d2d5266131c148d524b48d85ac74314
* Tcl_UtfToUniChar() -> TclUtfToUniChar() in various places: No change in ↵jan.nijtmans2017-05-291-1/+1
| | | | | functionality, just faster if ASCII only strings are involved. FossilOrigin-Name: 7351fc0c9c9cbeb178992c3290de9a8670f718b9
* Fix [6ca52aec14e0b33543d3cd9895f060b852ac4dbc|6ca52aec14]: HTTP package: ↵jan.nijtmans2017-05-091-2/+2
|\ | | | | | | | | | | | | Memory leak if client requests "Connection: close" but server responses with "Connection: keep-alive" http: 2.8.10 -> 2.8.11 FossilOrigin-Name: 8dab861767b07d545fa50c3e29d2c66c92ce4001
* | Fix gcc warning: unused variable wakeEventjan.nijtmans2017-05-041-2/+1
| | | | | | FossilOrigin-Name: 1dc66e966b412033c67898cce05ea6d77ceeb859
* | Use GetModuleHandle() in stead of LoadLibrary() when the handle is needed ↵jan.nijtmans2017-05-034-23/+13
|\ \ | | | | | | | | | | | | | | | | | | for an already loaded dll. Fix filesystem-1.52 (only works correctly on UNIX) FossilOrigin-Name: 218333d3c0344ed86e66717b2b0df104b54abba7
| * | Use GetModuleHandle() in stead of LoadLibrary() when the handle is needed ↵jan.nijtmans2017-05-033-102/+91
| | | | | | | | | | | | | | | | | | | | | for an already loaded dll. Fix filesystem-1.52 (only works correctly on UNIX) FossilOrigin-Name: 8785cdc62cd9dcbd3678aa2d470634749d5a0ead
| * | (cherry-pick): fix typo-bug (using wrong thread handle by set priority)jan.nijtmans2017-04-281-1/+1
| | | | | | | | | FossilOrigin-Name: 9244c37fcc7ca1015d6c5ec9c80ea9fe77438fe2
* | | Fix [8bd13f07bde6fb0631f27927e36461fdefe8ca95|8bd13f07bd]: Closing tcl pipes ↵jan.nijtmans2017-05-015-390/+642
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | prevents windows threads from starting up. Patch by sebres (Dipl. Ing. Sergey G. Brester) (also fix duplicate test-case number in link.test) FossilOrigin-Name: ad65e576eea19ec37de6255c4d9bd790c8bda1c1
| * \ \ merge core-8-6-branchjan.nijtmans2017-04-289-23/+27
| |\ \ \ | | | | | | | | | | FossilOrigin-Name: 26d204381da8f19f25c9474d203a6de812a5c2ec
| * | | | [win] fixes "wrong" checking of the flag TCL_CLOSE_READ in close2proc (using ↵sebres2017-04-121-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | mask) FossilOrigin-Name: 49cb582a3c8dcd7d723f5755d1e4805ecdf0c9de
| * | | | code review, robustness increase, avoid infinite wait by exit, thread exit ↵sebres2017-04-114-332/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and by pipes of closed processes); use pipe-helpers (TI-structure handling) for all pipe-workers (tclWinConsole, tclWinSerial); FossilOrigin-Name: a8cb6d489048313527667b84d0fdd918f1af7a7d
| * | | | added wake-up event to prevent possible dead-locks by some waiting thread ↵sebres2017-04-112-14/+27
| | | | | | | | | | | | | | | | | | | | | | | | | (e. g. for writable events) FossilOrigin-Name: 4839147328b7b5941e741386a510dae56aab6af6
| * | | | prepared to use pipe-helpers (TI-structure handling) for all pipe-workers ↵sebres2017-04-112-334/+436
| | | | | | | | | | | | | | | | | | | | | | | | | (tclWinConsole, tclWinSerial) FossilOrigin-Name: 0ca2abbbb844db278989343ff35f90cd6aa4837c
| * | | | code review and fix small memory leak using ckalloc, without finalization of ↵sebres2017-04-111-36/+71
| | | | | | | | | | | | | | | | | | | | | | | | | tcl subsystem in the worker (if it owns TI structure and calls ckfree) FossilOrigin-Name: b1d72a2efda8c2bd243adef1f71d04c005a80940
| * | | | shared structures of pipe-workers rewritten using atomic state of the thread; sebres2017-04-113-236/+371
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | asynchronous start/stop of pipe-workers (if possible), try the soft way to end workers using cancelSynchronousIo before it would be terminated; FossilOrigin-Name: 1a93b847db9f7e155bd9a286ac9c2afedba6b517
| * | | | fix typo- resp. copy-paste-bug (using wrong threadInfo pointer in ↵sebres2017-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | ConsoleOutputProc, should be writer, not reader) FossilOrigin-Name: 8fb632a498f0aed3294a7b1d28385777cdf87e77
| * | | | the same handling to initialize thread without suspend/resume helpers ↵sebres2017-04-053-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | (otherwise may be dangerous by very huge resp. too busy system); FossilOrigin-Name: d12acfd04d6fb100cb4ca40ba742b12a4ed33002
| * | | | fix typo-bug (using wrong thread handle by set priority) sebres2017-04-051-1/+1
| | | | | | | | | | | | | | | FossilOrigin-Name: 3ce2af8196e0f9f98bf18e3284d2ba28518684b0
| * | | | small review: rewritten using already available event handles, additionally ↵sebres2017-04-053-80/+94
| | | | | | | | | | | | | | | | | | | | | | | | | prevents infinite waits (using timeout 5000ms); FossilOrigin-Name: 83346ad8455919ffd86df2e52d2b5e05ea877645
| * | | | Contributed by "stanko" as patch within ↵sebres2017-04-053-11/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8bd13f07bde6fb0631f27927e36461fdefe8ca95 Resolves blocking of pipes-thread (reader/writer) under huge last: Terminating threads during their initialization resp. teardown phase may result LoaderLock in the ntdll.dll's (to remain locked indefinitely). This causes ntdll.dll's LdrpInitializeThread() to deadlock trying to acquire LoaderLock. Possible fix for 9d75181ee70af318830e99ede6ebb5df72a9b079 FossilOrigin-Name: 4a59e2e2ff42cdc8f98994b686fdf3ea8ff5e50d
* | | | | (cherry-pick from "fix-1997007" branch): fix typo- resp. copy-paste-bug ↵jan.nijtmans2017-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | (using wrong threadInfo pointer in ConsoleOutputProc, should be writer, not reader) FossilOrigin-Name: 5190ead2bd2ccb2c693a5c6bcda4287298c3c534
* | | | | (cherry-pick from "fix-1997007" branch): fix typo-bug (using wrong thread ↵jan.nijtmans2017-04-281-1/+1
| |/ / / |/| | | | | | | | | | | | | | | handle by set priority) FossilOrigin-Name: a907c47165eaea2f657bf6724cd4f2331df0b208
* | | | Add flag TCL_CC_SEARCH_FLAGS to tclConfig.sh on Windows, just as it exists ↵jan.nijtmans2017-04-204-2/+6
| | | | | | | | | | | | | | | | | | | | on unix, even though it should just be empty: TEA extensions might depend on it. FossilOrigin-Name: 14eee2fd5076731bde1cc3fce36571cb406ba0fc
* | | | Another attempt to fix the two executable flags.jan.nijtmans2017-04-121-0/+0
|/ / / | | | | | | FossilOrigin-Name: c8ff26fcd48cdb1213db84a9858df4a9a424ed34
* | | Remove "makefile.bc". Not updated for many-many years, most likely it ↵jan.nijtmans2017-03-072-598/+0
| |/ |/| | | | | | | doesn't work any more and it doesn't seem to care anyone. Let's see if someone complains ;-) FossilOrigin-Name: 2e3592982c2888615caa5bf103c47a42678fc281
* | missing rules.vc after mergesebres2017-01-131-5/+10
|\ \ | |/ | | FossilOrigin-Name: 6583377fcf35372a023e9b68e71c4e0ede2f3ddc
| * Fixes nmakehlp: allows more as one option by -l, to provide mandatory linker ↵sebres2017-01-122-9/+17
| | | | | | | | | | | | | | parameters (e. g. "LNK1561: entry point must be defined"); Additionally recognizes an new linker code LNK4224 for "no longer supported; ignored". FossilOrigin-Name: 4ebcceab91525687a145999ed50f988303169c3a
| * Allows to compile direct from Visual Studio IDE (prevents throwing error ↵sebres2017-01-121-5/+10
| | | | | | | | | | "LNK1561: entry point must be defined" by testing linker) FossilOrigin-Name: 4c5262d9093366fb78405e7bd31a4eaaa51f4534
* | Enhance nmakehlp, allowing multiple arguments for "-l", and recognizing a ↵jan.nijtmans2017-01-131-8/+16
|\ \ | | | | | | | | | | | | new linker code LNK4224. Patch by sebres. FossilOrigin-Name: e9f15329a06d6ffc5f52b5628a026ac61f58bb60
| * | Enhance nmakehlp, allowing multiple arguments for "-l", and recognizing a ↵jan.nijtmans2017-01-131-8/+16
| |/ | | | | | | | | new linker code LNK4224. Patch by sebres. FossilOrigin-Name: 30a9bdc5d12314ff7598e46dcab08e7dcadd7665
* | Fix version number in tcl.dsp (thanks to Arjen Markus for noticing this)jan.nijtmans2017-01-121-8/+8
| | | | | | FossilOrigin-Name: bfdcb9cf620514b0c0ab5ba8a018e8316428eafd
* | Merge bug_b87ad7e914sebres2017-01-091-21/+39
|\ \ | |/ | | FossilOrigin-Name: 0f88ee352f06b1f24775710bdffe1ad135bb8acb