summaryrefslogtreecommitdiffstats
path: root/generic/tclDecls.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge-mark core-8-5-branch. jan.nijtmans2017-01-111-1/+0
|\ | | | | Remove useless #undef.
* | 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
* | Decorate Tcl_Panic and Tcl_PanicVA with the noreturn option, alowing further ↵panic_noreturnjan.nijtmans2015-09-221-6/+7
| | | | | | | | optimizations by the C-compiler.
* | 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]
* | 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.
* | 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
| | |
| * | Undo [6a9ee3273c]. Last commit in Tk's core-8-5-branch makes this change no ↵jan.nijtmans2013-03-281-11/+3
| | | | | | | | | | | | longer necessary.
| * | Add dummy (undocumented) TclCanceled function in stub table (not exported as ↵jan.nijtmans2013-03-271-3/+11
| | | | | | | | | | | | symbol or macro), which always returns TCL_OK. Needed for Tk 8.5.14 when running in Tcl 8.6 for properly clean-up when a (Tcl 8.6) thread is canceled.
* | | If TCL_NO_DEPRECATED is defined, don't depend on ↵jan.nijtmans2013-03-221-0/+3
| | | | | | | | | | | | | | | Tcl_CreateMathFunc()/Tcl_SaveResult() in testcases any more. Prevent endless loop in Tcl_AddObjErrorInfo, when TCL_NO_DEPRECATED is defined.
* | | Use (preferred) Tcl_ObjSetVar2 in stead of Tcl_SetVar in tclAppInit.c, both ↵jan.nijtmans2013-02-171-0/+3
| | | | | | | | | | | | UNIX and Win.
* | | Allow win32 build with -DTCL_NO_DEPRECATED, just as the UNIX build, off by ↵jan.nijtmans2013-01-161-0/+12
|\ \ \ | |/ / | | | | | | | | | default. Define Tcl_EvalObj and Tcl_GlobalEvalObj as macros, even when TCL_NO_DEPRECATED is defined, so Tk can benefit from it too.
| * | Allow win32 build with -DTCL_NO_DEPRECATED, just as the UNIX build, off by ↵jan.nijtmans2013-01-161-0/+12
| |\ \ | | |/ | | | | | | | | | default. Define Tcl_EvalObj and Tcl_GlobalEvalObj as macros, even when TCL_NO_DEPRECATED is defined, so Tk can benefit from it too (this is not what TCL_NO_DEPRECATED is supposed to do).
| | * Allow win32 build with -DTCL_NO_DEPRECATED, just as the UNIX build, off by ↵jan.nijtmans2013-01-161-0/+12
| | | | | | | | | | | | | | | default. Define Tcl_EvalObj and Tcl_GlobalEvalObj as macros, even when TCL_NO_DEPRECATED is defined, so Tk can benefit from it too (this is not what TCL_NO_DEPRECATED is supposed to do).
| * | Extend the public stub table with dummy NULL entries, up to the size of the ↵jan.nijtmans2013-01-071-0/+162
| |\ \ | | |/ | | | | | | | | | Tcl 8.6 stub tables. This makes it easier to debug extensions which use Tcl 8.6 features but (erroneously) are attempted to be loaded in Tcl 8.5.
| | * Extend the public and private stub tables with dummy NULL entries, up to the ↵jan.nijtmans2013-01-071-0/+177
| | | | | | | | | | | | | | | size of the Tcl 8.6 stub tables. This makes it easier to debug extensions which use Tcl 8.5/8.6 features but (erroneously) are attempted to be loaded in Tcl 8.4.
| | * Remove all the long dead mac entries in tcl*.decls filesjan.nijtmans2012-11-151-18/+51
| | | | | | | | | | | | <p>backport genStubs::forAllStubs function, to generate dummy entries for some MAC_TCL entries <p>re-generate all tcl*Decls.h files.
* | | Simplification: don't declare struct types that are never used.jan.nijtmans2012-11-151-2/+2
| | |
* | | merge trunkdkf2012-05-311-3/+3
|\ \ \
| * \ \ fix genStubs.tcl for OSXjan.nijtmans2012-05-251-9/+9
| |\ \ \ | | |/ /
| | * | fix genStubs.tcljan.nijtmans2012-05-251-9/+9
| | |\ \ | | | |/
| | * | Take cygwin handling of X11 into accountjan.nijtmans2012-05-241-12/+12
| | |\ \ | | | |/ | | | | | | | | Implement TclpIsAtty, Cygwin only doc/dde.n: doc fix
| * | | Revert most of [3caedf05df], since when we let cygwin share the win32 stub ↵jan.nijtmans2012-05-241-12/+12
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | table this is no longer necessary implement TclpInetNtoa for win32 Let cygwin share stub table with win32
| | * | fix merge problem on Linuxjan.nijtmans2012-05-231-12/+12
| | |\ \
| | | * | MAC_OSX_TK -> MAC_OSX_TCLjan.nijtmans2012-05-221-9/+9
| | | | |
| | | * | Revert most of [fcc5957e59], since when we let cygwin share the win32 stub ↵jan.nijtmans2012-05-221-12/+12
| | | |\ \ | | |/ / / | | | | _ | | | | | | | | | | | | table this is no longer necessary implement TclpInetNtoa for win32 Let cygwin share stub table with win32
| | | * Revert most of [ae92de6078], since when we let cygwin share the win32 stub ↵jan.nijtmans2012-05-221-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | table this is no longer necessary implement TclpInetNtoa for win32 Let cygwin share stub table with win32
| | * | Move cpuid testcase from win-specific to generic testsjan.nijtmans2012-05-031-2/+2
| | |\ \ | | | |/
| | | * Move cpuid testcase from win-specific to generic testsjan.nijtmans2012-05-031-71/+2
| | | | | | | | | | | | Simplify stub tables for functions which work on both UNIX and windows
| | | * clean-up tcl.decls the same way as tclInt.declsjan.nijtmans2012-04-031-152/+155
| | | |
| | | * make genstubsdgp2012-04-031-1227/+1212
| | | |
| | | * Tcl_HashStats does not return a CONSTjan.nijtmans2011-09-061-3/+2
| | | |
* | | | updated C API to be more focused on supporting just some operationsdkf2012-05-101-4/+6
| | | |
* | | | merge trunkdkf2012-04-051-2/+2
|\ \ \ \ | |/ / /
| * | | some formatting (*.decls)jan.nijtmans2012-04-041-2/+2
| |\ \ \ | | |/ / | | | | | | | | remove some unused cygwin-related code some minor gcc warnings
* | | | Start of implementation of TIP 400: zlib improvementsdkf2012-03-311-0/+5
|/ / /