summaryrefslogtreecommitdiffstats
path: root/generic/tclDecls.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge trunkjan.nijtmans2017-09-131-0/+8
|\
| * Make mp_get_long and mp_set_long available to tommath-enabled Tcl ↵jan.nijtmans2017-09-131-0/+9
| | | | | | | | extensions. Deprecate the internal TclBNInitBignumFrom* functions, in favor of the official tommath functions with the same purpose.
* | Merge trunkjan.nijtmans2017-03-241-2/+2
|\ \ | |/
| * Add TCL_NORETURN attribute to TclpThreadExit() and Tcl_ExitThread()jan.nijtmans2017-03-241-2/+2
| |
* | Merge trunk.jan.nijtmans2017-03-211-25/+25
|\ \ | |/
| * If compiled with TCL_NO_DEPRECATED, remove some more stub entries which are ↵jan.nijtmans2017-03-201-5/+28
| | | | | | | | not used any more.
* | merge trunkjan.nijtmans2017-03-131-19/+11
|\ \ | |/
| * Eliminate internal use of ↵jan.nijtmans2017-03-131-2/+2
| | | | | | | | TclNewBooleanObj()/TclSetBooleanObj()/TclSetIntObj(). Replace Tcl_DbNewBooleanObj() with trivial macro.
* | Convert Tcl_SetResult() to a macrojan.nijtmans2017-01-251-6/+16
|\ \ | |/
| * If TCL_NO_DEPRECATED is defined, remove the "case" statement, and use much ↵jan.nijtmans2017-01-251-0/+16
| | | | | | | | less interp->result. Implementation mostly taken over from "novem". If TCL_NO_DEPRECATED is not defined, nothing changes.
* | merge trunkjan.nijtmans2017-01-111-12/+7
|\ \ | |/
| * Merge core-8-6-branch. jan.nijtmans2017-01-111-1/+6
| |\ | | | | | | | | | Do gcc-compiles with the option -Wwrite-strings, so we can detect mis-usage of "const". Make Tcl_AddErrorInfo() and Tcl_AddObjErrorInfo() a macro.
| | * Merge-mark core-8-5-branch. jan.nijtmans2017-01-111-1/+0
| | |\ | | | | | | | | Remove useless #undef.
* | | \ merge trunkjan.nijtmans2017-01-041-0/+9
|\ \ \ \ | |/ / /
| * | | Make OpenTcpServerEx accept a 'service' string parameter instead of a port.limeboy2016-12-141-3/+4
| | | |
| * | | Implement the whole TIP 456 specification.limeboy2016-11-241-2/+2
| | | | | | | | | | | | | | | | Also introduces the `-reuseaddr' and `-reuseport' options for the `socket' command.
| * | | Added stub entry for tip #456. Documentation and tests still missing. ↵jan.nijtmans2016-11-221-0/+8
| |/ / | | | | | | | | | Doesn't conform to TIP yet.
* | | Clean-up: Remove Tcl_FindHashEntry/Tcl_CreateHashEntry symbols/stub entries, ↵jan.nijtmans2015-12-161-12/+6
| | | | | | | | | | | | as those two functions are actually defined as macros. The function alternatives were only kept for legacy, but are no longer necessary.
* | | merge trunkjan.nijtmans2015-10-081-4/+4
|\ \ \ | |/ /
| * | Decorate Tcl_Exit() and Tcl_SetExitProc()'s argument with TCL_NORETURN as ↵jan.nijtmans2015-10-081-4/+4
| | | | | | | | | | | | | | | appropriate, as already done with Tcl_Panic() earlier. Fix minor msvc compiler warning in tclWinFile.c
* | | Merge trunkjan.nijtmans2015-09-231-4/+4
|\ \ \ | |/ /
| * | Decorate Tcl_Panic and Tcl_PanicVA with the noreturn option, alowing further ↵panic_noreturnjan.nijtmans2015-09-221-6/+7
| | | | | | | | | | | | optimizations by the C-compiler.
* | | Merge trunkjan.nijtmans2014-02-111-12/+12
|\ \ \ | |/ /
| * | Fix execute permission bit (should not be set) for *Decls.h filesjan.nijtmans2014-02-111-0/+0
| | |
| * | Eliminate all usage of WIN32 and __WIN32__ macros: Some compilers (e.g. ↵jan.nijtmans2014-02-101-12/+12
| | | | | | | | | | | | | | | 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]
* | | Merge trunk (order of man.macros inclusion).jan.nijtmans2013-11-081-2/+0
|\ \ \ | |/ / | | | Simplify TCLAPI definition: Since there are extern "C" guards around all TCLAPI usage, the definition itself doesn't need special C++ handling any more.
* | | merge trunkjan.nijtmans2013-11-041-3/+5
|\ \ \ | |/ /
| * | Put extern "C" guards around all stub table struct definitions, so it is ↵jan.nijtmans2013-11-041-3/+5
| |\ \ | | |/ | | | | | | | | | usable for C++ compilers as well without the danger of modifying the calling convention. For tclDecls.h and tclOODecls.h it was no problem, because tcl.h and tclOO.h already contain those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
| | * Put extern "C" guards around all stub table struct definitions, so it is ↵jan.nijtmans2013-11-041-3/+5
| | | | | | | | | | | | | | | usable for C++ compilers as well without the danger of modifying the calling convention. For tclDecls.h it was no problem, because tcl.h already contains those guards. But for the other *Decls.h files (e.g. tclTomMathDecls.h) it was not correct.
* | | merge trunkjan.nijtmans2013-10-171-0/+0
|\ \ \ | |/ /
* | | Eliminate TclOOInitializeStubs() completely. This fixes [dfc08326e3], at ↵jan.nijtmans2013-10-171-0/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | least the TclOOInitializeStubs() surprise part of it. Further refactoring is possible, eliminating tclOOStubsPtr and/or tclOOIntStubsPtr. A discussion about that is opened on the Tcl Core List. This is fully source compatible for TclOO extensions (e.g. Itcl, tdbc) but binary incompatible. TODO: update documentation, but that can wait until the refactoring is complete.
| * | | The Tcl 9.0 way of how [dfc08326e3] should be fixed: Real integration of ↵rfe_dfc08326e3jan.nijtmans2013-10-131-0/+1
|/ / / | | | | | | | | | TclOO in Tcl means that calling the function Tcl_OOInitStubs() should be elminated in full. This branch shows how to do that.
* | | merge trunk. jan.nijtmans2013-06-271-7/+3
|\ \ \ | |/ / | | | Remove Tcl_SetPanicProc from stub table; it is meant to be called by embedders, before the stub table is even initialized.
* | | merge trunk. jan.nijtmans2013-05-131-3/+7
|\ \ \ | |/ / | | | Add back Tcl_AddErrorInfo to stub table (it's still used by Tk 8.6)
* | | Change Tcl_UtfNcmp and friend's signature to use size_t in stead of unsigned ↵jan.nijtmans2013-05-061-23/+8
| | | | | | | | | | | | | | | | | | | | | long. This is potentially binary incompatible on win64, but not on any other platform. It eliminates the need for special stub-wrappers on Cygwin64 for those functions. "novem" doesn't promise binary compatibility anyway.
* | | merge trunkjan.nijtmans2013-05-061-0/+48
|\ \ \ | |/ /
| * | Add support for Cygwin64, which has a 64-bit "long" type. jan.nijtmans2013-05-061-0/+48
| |\ \ | | |/ | | | | | | Binary compatibility with win64 requires that all stub entries use 32-bit long's, therefore the need for various wrapper functions/macros. For Tcl 9 a better solution is needed, but that cannot be done without introducing binary incompatibility.
| | * Add support for Cygwin64, which has a 64-bit "long" type. jan.nijtmans2013-05-061-0/+48
| | |\ | | | | | | | | | | | | Binary compatibility with win64 requires that all stub entries use 32-bit long's, therefore the need for various wrapper functions/macros. For Tcl 9 a better solution is needed, but that cannot be done without introducing binary incompatibility.
| | | * Add support for Cygwin64, which has a 64-bit "long" type. jan.nijtmans2013-05-061-0/+48
| | | | | | | | | | | | | | | | Binary compatibility with win64 requires that all stub entries use 32-bit long's, therefore the need for various wrapper functions/macros. For Tcl 9 a better solution is needed, but that cannot be done without introducing binary incompatibility.
| * | | Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-0/+10
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication. Eliminate use of NO_WIDE_TYPE everywhere: It's exactly the same as TCL_WIDE_INT_IS_LONG
| | * | Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj and Tcl_SetBooleanObj as ↵jan.nijtmans2013-04-231-1/+10
| | | | | | | | | | | | | | | | | | | | macros using Tcl_NewIntObj, Tcl_DbNewLongObj and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it only eliminates code duplication.
| * | | Implement many Tcl_*Var* functions and Tcl_GetIndexFromObj as ↵jan.nijtmans2013-04-191-0/+25
| |\ \ \ | | |/ / | | | | | | | | (faster/stack-saving) macros around resp their Tcl_*Var*2 equivalent and Tcl_GetIndexFromObjStruct
| | * | Implement many Tcl_*Var* functions and Tcl_GetIndexFromObj as ↵jan.nijtmans2013-04-191-0/+25
| | |\ \ | | | |/ | | | | | | | | (faster/stack-saving) macros around resp their Tcl_*Var*2 equivalent and Tcl_GetIndexFromObjStruct
| | | * Implement many Tcl_*Var* functions and Tcl_GetIndexFromObj as ↵jan.nijtmans2013-04-191-0/+25
| | | | | | | | | | | | | | | | (faster/stack-saving) macros around resp their Tcl_*Var*2 equivalent and Tcl_GetIndexFromObjStruct
| * | | Implement Tcl_Pkg* functions as macro's around Tcl_Pkg*Ex. This saves stack ↵jan.nijtmans2013-04-121-0/+10
| |\ \ \ | | |/ / | | | | | | | | space, is (marginally) faster, while still being fully up/down compatible. It makes pkgb.so loadable in "novem" without the need to change the Tcl_PkgProvide() call to Tcl_PkgProvideEx().
| | * | Implement Tcl_Pkg* functions as macro's around Tcl_Pkg*Ex. This saves stack ↵jan.nijtmans2013-04-121-0/+10
| | |\ \ | | | |/ | | | | | | | | space, is (marginally) faster, while still being fully up/down compatible. It makes pkgb.so loadable in "novem" without the need to change the Tcl_PkgProvide() call to Tcl_PkgProvideEx().
| | | * Implement Tcl_Pkg* functions as macro's around Tcl_Pkg*Ex. This saves stack ↵jan.nijtmans2013-04-121-0/+10
| | | | | | | | | | | | | | | | space, is (marginally) faster, while still being fully up/down compatible. It makes pkgb.so loadable in "novem" without the need to change the Tcl_PkgProvide() call to Tcl_PkgProvideEx().
| | | * Make (deprecated) Tcl_EvalObj/Tcl_GlobalEvalObj macro's always, not only ↵jan.nijtmans2013-04-091-8/+6
| | | | | | | | | | | | | | | | when using stubs.
| * | | Make Tcl_EvalObj/Tcl_GlobalEvalObj a macro always, not only when using stubs.jan.nijtmans2013-04-041-8/+6
| |\ \ \ | | |/ /
| | * | Make Tcl_EvalObj/Tcl_GlobalEvalObj a macro always, not only when using stubs.jan.nijtmans2013-04-041-8/+6
| | | |