summaryrefslogtreecommitdiffstats
path: root/generic/tclMain.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6jan.nijtmans2022-02-021-2/+2
|\
| * Change DEFAULT_PRIMARY_PROMPT from #define to static const string (saves a ↵jan.nijtmans2022-02-021-2/+2
| | | | | | | | strlen() call)
* | Merge 8.6jan.nijtmans2022-02-011-6/+7
|\ \ | |/
| * Code cleanup in tclMain.c and tclAppInit.c: Make them Tcl-8.7-aware, usable ↵jan.nijtmans2022-02-011-10/+11
| | | | | | | | as more generic examples for extensions.
| * More usage of TclNewObj() in stead of Tcl_NewObj() and TclNewIntObj() in ↵jan.nijtmans2020-10-131-3/+4
| | | | | | | | stead of Tcl_NewIntObj()
* | take advantage of what we know re: argv guarantees ↵bch2022-01-281-7/+5
| | | | | | | | [https://www.iso-9899.info/n1570.html#5.1.2.2.1|argv spec] (per @cousteau on #tcl)
* | rejig argv/argc handling in response to investigation prompted by ↵bch2022-01-281-9/+17
| | | | | | | | | | [https://arstechnica.com/information-technology/2022/01/a-bug-lurking-for- 12-years-gives-attackers-root-on-every-major-linux-distro/|this "polkit issue"] and some experimenting w/ execve() (ab)use. Essentially port of [0e1d2702ab] and its parent; discussed at length on IRC
* | Simplifications when assuming VS 2015 or laterjan.nijtmans2020-12-171-5/+0
| |
* | Add -finput-charset=UTF-8 and -fextended-identifiers to gcc (and clang). All ↵jan.nijtmans2020-12-081-3/+3
| | | | | | | | C sources can now use UTF-8, as far as gcc/clang/msvc support it. Not used yet
* | Merge 8.6. Don't inline functions which are too big to be inlined (according ↵jan.nijtmans2020-10-091-2/+2
|\ \ | |/ | | | | to the -Winline compiler flag)
* | Eliminate many usages of Tcl_NewObj (-> TclNewObj) and Tcl_NewIntObj (-> ↵jan.nijtmans2020-09-171-5/+6
| | | | | | | | TclNewIntObj or Tcl_NewWideIntObj)
* | TIP 569 - remove lint commentsdgp2020-03-171-1/+0
| |
* | moredgp2020-03-061-2/+1
| |
* | Merge 8.7jan.nijtmans2020-02-261-1/+1
|\ \
| * \ Merge 8.6jan.nijtmans2020-02-211-1/+1
| |\ \ | | |/
| | * Restore compatibility with older (mingw) Makefiles. Fix for [4b5deacc70]: ↵jan.nijtmans2020-02-211-1/+1
| | | | | | | | | | | | undefined reference to `Tcl_SetStartupScript'.
* | | Merge 8.7jan.nijtmans2020-01-071-1/+1
|\ \ \ | |/ /
| * | Remove type-casts in many Tcl_LinkVar() calls, which is no longer necessary ↵jan.nijtmans2020-01-071-1/+1
| | | | | | | | | | | | | | | since 8.7. Small missing piece in Tcl_LinkArray() implementation, handling (unsigned) longs on 64-bit platforms.
* | | Merge 8.7jan.nijtmans2019-10-011-36/+15
|\ \ \ | |/ /
| * | Use Tcl_WCharToUtfDString in stead of (deprecated) Tcl_WinTCharToUtfjan.nijtmans2019-09-291-1/+2
| | |
| * | Merge 8.6jan.nijtmans2019-09-291-37/+15
| |\ \ | | |/
| | * Merge 8.6 and fix Travis build on Windowsjan.nijtmans2019-09-271-22/+15
| | |\
| | * | Merge 8.6jan.nijtmans2019-09-261-17/+7
| | |/
* | | Let's try a real C++ build with Travis on Linuxjan.nijtmans2019-08-301-0/+1
|\ \ \ | |/ /
| * | Use *WChar* in stead of *Char16* functions on Windows, always. It's actually ↵jan.nijtmans2019-08-031-1/+1
| | | | | | | | | | | | the same, but more consistent.
* | | Merge tip-548 (since using the *WChar* functions leads to less type-casts in ↵jan.nijtmans2019-08-031-4/+2
|\ \ \ | |/ / | | | | | | | | | c++) Als finish implementaton for MacOSX
| * | Rename UTF-related functions to "WChar" and "Char16" variants, more ↵jan.nijtmans2019-07-111-1/+1
| | | | | | | | | | | | intuitive because they represent wchar_t and char16_t (since C++11) types in modern compilers.
| * | Improvement: always export both 16-bit and 32-bit UTF functionjan.nijtmans2019-07-051-1/+1
| | |
| * | TIP #548: Deprecate Tcl_WinUtfToTChar() and Tcl_WinTCharToUtf() and provide ↵jan.nijtmans2019-06-031-4/+2
| | | | | | | | | | | | more flexible replacement functions
* | | Merge 8.7. Continue implementation for win32jan.nijtmans2019-08-021-1/+1
|\ \ \ | |/ /
* | | Merge 8.7, and continue implementation. Almost donejan.nijtmans2019-07-101-2/+2
|/ /
* | Fixes for TCL_UTF_MAX=6, (gcc compiler warnings). Also make everything work ↵jan.nijtmans2019-03-071-5/+12
| | | | | | | | on win32/win64. Patch adapted from Androwish (thanks, Werner!)
* | Merge core-8-6-branchjan.nijtmans2017-11-131-5/+1
|\ \ | |/
* | Micro-optimization: Use TclGetStringFromObj in stead of Tcl_GetStringFromObj ↵jan.nijtmans2016-07-081-4/+4
| | | | | | | | in many places where possible.
* | Remove Tcl_Main() function, since it's no longer being used: It has been a ↵jan.nijtmans2016-06-291-18/+5
| | | | | | | | macro already for ages.
* | Tcl_SetVar -> Tcl_SetVar2 and comparable replacements, eliminating functions ↵jan.nijtmans2016-06-291-2/+4
|/ | | | which are deprecated.
* Align comment. Remove some end-of-line spacing. No functional changes.jan.nijtmans2015-09-281-2/+2
|\
* \ Fix [00189c4afcb9e2586301d711f71383e48817a72d|00189c4afc]: Allow semi-static ↵jan.nijtmans2015-08-191-0/+3
|\ \ | |/ | | | | UCRT build on Windows with VC 14.0
| * Fix [00189c4afcb9e2586301d711f71383e48817a72d|00189c4afc]: Allow semi-static ↵jan.nijtmans2015-08-191-0/+3
| | | | | | | | UCRT build on Windows with VC 14.0
* | Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. ↵jan.nijtmans2014-02-101-1/+1
| | | | | | | | | | 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]
* | Bug [9b2e636361]: Tcl_CreateInterp() needs initialized encodings.jan.nijtmans2013-06-271-1/+3
|\ \ | |/
| * Proposed solution for [9b2e636361]jan.nijtmans2013-06-261-2/+3
| |
* | eliminate unnecessary TEXT() macrosjan.nijtmans2012-09-231-2/+2
| |
* | Minor changes to improve style (C89 declarations, consistent indentation,dkf2012-08-071-46/+52
| | | | | | | | clarification of #endifs, reduction of unnecessary casts, use of array syntax for reading array elements, etc.)
* | * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-10/+13
| | | | | | | | the fairly-common operation of converting a DString into an Obj a more efficient one.
* | [RFE 1711975]: Tcl_MainEx() (like Tk_MainEx())jan.nijtmans2011-09-061-4/+5
|\ \
| * | Tcl_MainEx() (like Tk_MainEx())jan.nijtmans2011-08-301-1/+2
|/ /
* | Fixed the C99/C++ comments introduced by [8d3f0fb215] which break strict C89 ↵andreask2011-08-161-2/+2
| | | | | | | | compilers (AIX, cough, cough)
* | compiler error on Windows: there should be only one ↵jan.nijtmans2011-08-101-1/+1
| | | | | | | | TclFullFinalizationRequested function
* | [Bug 2919042] Restore "valgrindability" of Tcl that was lost by the ↵ferrieux2011-08-091-15/+72
| | | | | | | | streamlining of [exit], by conditionally forcing a full Finalize: use -DPURIFY or ::env(TCL_FINALIZE_ON_EXIT)