summaryrefslogtreecommitdiffstats
path: root/generic/tclPlatDecls.h
Commit message (Collapse)AuthorAgeFilesLines
* 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-3/+3
| | | | | 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.
* | Simplification: don't declare struct types that are never used.jan.nijtmans2012-11-151-1/+1
| |
* | revert part of [8f9c16848b] move Tcl_MacOSXOpenBundleResources and ↵jan.nijtmans2012-05-151-25/+3
|\ \ | |/ | | | | Tcl_MacOSXOpenVersionedBundleResources from the UNIX stub table back to its own osx stub table, instead let cygwin make use of the win32 stub table
| * Revert part of [5caa06383d] move Tcl_MacOSXOpenBundleResources and ↵jan.nijtmans2012-05-151-35/+3
| |\ | | | | | | | | | Tcl_MacOSXOpenVersionedBundleResources from the UNIX stub table back to its own osx stub table, instead let cygwin make use of the win32 stub table
| | * revert part of [9922ac54e8]: remove Tcl_MacOSXOpenBundleResources and ↵jan.nijtmans2012-05-141-30/+30
| | | | | | | | | | | | Tcl_MacOSXOpenVersionedBundleResources from the UNIX stub table, instead let cygwin make use of the win32 stub table
* | | move TCHAR definition for Cygwin from tclUnixPort.h to tclPlatDecls.h,jan.nijtmans2012-05-071-1/+1
|\ \ \ | |/ / | | | so it can be used for the Plat* interfaces as well
| * | move TCHAR definition for Cygwin from tclUnixPort.h to tclPlatDecls.h,jan.nijtmans2012-05-071-11/+8
| |\ \ | | |/ | | | so it can be used for the Plat* interfaces as well
| | * move TCHAR definition for Cygwin from tclUnixPort.h to tclPlatDecls.h, jan.nijtmans2012-05-071-11/+8
| | | | | | | | | so it can be used for the Plat* interfaces as well
| | * move some more CYGWIN stuff to unix/tclUnixPort.hjan.nijtmans2012-05-031-3/+1
| | |
| | * make genstubsdgp2012-04-031-36/+35
| | |
* | | [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-03-201-0/+22
|\ \ \ | |/ /
| * | [Bug 3508771] load tclreg.dll in cygwin tclshjan.nijtmans2012-03-201-0/+32
| |\ \ | | |/
| | * implement Tcl_WinUtfToTChar and Tcl_WinTCharToUtf for cygwinjan.nijtmans2012-03-191-27/+27
| | |
* | | 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).
| * | 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.
| | * 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.
| | * * generic/tclDecls.h: Regenerated on a unix box.andreas_kupries2004-06-101-197/+197
| | | | | | | | | | | | | | | | | | | | | * generic/tclIntDecls.h: The Win/DOS EOLs from the * generic/tclIntPlatDecls.h: last regen screwed up compilation * generic/tclPlatDecls.h: with an older gcc. * generic/tclStubInit.c:
| | * * generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw Kevin B Kenny2004-06-051-197/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build works again. * generic/tclInt.decls: Changes to the tests for * generic/tclIntPlatDecls.h: clock frequency in Tcl_WinTime * generic/tclStubInit.c: so that any clock frequency * tests/platform.test (platform-1.3): is accepted provided that * win/tclWin32Dll.c (TclWinCPUID): all CPU's in the system share * win/tclWinTest.c (TestwincpuidCmd): a common chip, and hence, * win/tclWinTime.c (Tcl_GetTime): presumably, a common clock. This change necessitated a small burst of assembly code to read CPU ID information, which was added as TclWinCPUID in the internal Stubs. To test this code in the common case of a single-processor machine, a 'testwincpuid' command was added to tclWinTest.c, and a test case in platform.test. Thanks to Jeff Godfrey and Richard Suchenwirth for reporting this bug. [Bug #976722]
| | * commit genstubs generated files with unix line endingsdgp2004-05-171-197/+197
| | |
| | * * generic/tclInt.decls: Restored TclpTime_t kludge to all Kevin B Kenny2004-05-171-197/+197
| | | | | | | | | | | | | | | | | | | | | * generic/tclIntPlatDecls.h: places where it appeared before the * unix/tclUnixPort.h changes of 14 May, because use of * unix/tclUnixTime.h native time_t in its place requires * win/tclWinTime.h: the 8.5 header reforms. [Bug #955146]
| | * * generic/tcl.decls:das2003-05-131-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tclMacOSXBundle.c: added extended version of the Tcl_MacOSXOpenBundleResources() API taking an extra version number argument: Tcl_MacOSXOpenVersionedBundleResources(). This is needed to be able to access bundle resources in versioned frameworks such as Tcl and Tk, otherwise if multiple versions were installed, only the latest version's resources could be accessed. [Bug 736774] * unix/tclUnixInit.c (Tcl_MacOSXGetLibraryPath): use new versioned bundle resource API to get tcl runtime library for TCL_VERSION. [Bug 736774] * generic/tclPlatDecls.h: * generic/tclStubInit.c: regen. * unix/tclUnixPort.h: worked around the issue of realpath() not being thread-safe on Mac OS X by defining NO_REALPATH for threaded builds on Mac OS X. [Bug 711232]
| * | [Bug #3110161]: Extensions using TCHAR don't compile on VS2005 SP1nijtmans2010-11-161-1/+5
| | |
| * | installData.tcl: Make sure that copyDir only receives normalized paths.nijtmans2010-05-211-9/+3
| | | | | | | | | | | | | | | | | | tclPlatDecls.h: Fix <tchar.h> inclusion for CYGWIN. tclPathObj.c: Fix Tcl_SetStringObj usage for CYGWIN. *.c: Fix various minor other gcc warnings, like signed<->unsigned mismatch.
| * | Backport various formatting (spacing)nijtmans2010-02-071-17/+17
| | | | | | | | | | | | | | | | | | | | | changes from HEAD, so diffing between 8.5.x and 8.6 shows the real structural differences again. (any signature change not backported!)
* | | [Patch 3034251] backport ttkGenStubs.tcl features to genStubs.tcl, partly: ↵nijtmans2010-08-191-25/+9
| | | | | | | | | | | | remove unneeded ifdeffery and put C++ guard around stubs pointer definition.
* | | Move TCHAR fallback typedef from tcl.h to tclPlatDecls.h (as suggested by dgp)nijtmans2010-04-221-1/+14
| | | | | | | | | | | | Eliminate various unnecessary type casts.
* | | Move inclusion of <tchar.h> from tclPlatDecls.hnijtmans2010-04-151-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | to tclWinPort.h, where it belongs. Add fallback in tcl.h, so at least TCHAR typedef is always available in win32, even without <tchar.h> Tk already did the same in tkWinPort.h, now Tcl does it the same (correct) way.
* | | Follow-up to [2010-01-29] commit:nijtmans2010-02-051-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prevent space within stub table function parameters if the parameter type is a pointer. Minor formatting, and VOID -> void. Change signature of TclNRInterpProcCore, and TclOONewProc(Instance|)MethodEx, indicating that errorProc is a function pointer tclVar.c: fixed two gcc warnings
* | | - genStubs.tcl: No longer generate a space after "*" andnijtmans2010-01-291-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | immediately after a function name, so the format of function definitions in tcl*Decls.h matches all other tcl*.h header files. - Change Tcl_ArgvFuncProc, Tcl_ArgvGenFuncProc and GetFrameInfoValueProc to be function definitions, not pointers, for consistency with all other Tcl function definitions.
* | | Fix TCL_LL_MODIFIER for Cygwinnijtmans2010-01-131-4/+4
| | | | | | | | | | | | | | | and various other minor CYGWIN compilation problems
* | | Various CYGWIN-related fixes. In the win32 configure script, CYGWIN is still ↵nijtmans2009-12-211-4/+4
| | | | | | | | | | | | not enabled yet, but at least it is a step in the right direction.
* | | Letting CONST die a slow and graceful death, since NO_CONST wasnijtmans2008-10-221-14/+14
| | | | | | | | | | | | broken since 8.4 and no-one complained about it.
* | | fix line-endingsdas2008-07-221-137/+137
| | |
* | | TIP #304 implementationferrieux2008-07-211-137/+137
| | |
* | | * generic/tclDecls.h: make genstubsdas2008-04-081-2/+2
| | | | | | | | | | | | | | | | | | | | | * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclTomMathDecls.h:
* | | * generic/tclDecls.h: make genstubsdas2008-04-021-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclStubInit.c: * generic/tclTomMathDecls.h:
* | | * README: Bump version number to 8.6a0dgp2008-04-011-1/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: * library/init.tcl: * macosx/Tcl-Common.xcconfig: * macosx/Tcl.pbproj/default.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README: * win/configure.in: * win/makefile.bc: * win/tcl.m4: * unix/configure: autoconf-2.59 * win/configure: * generic/tclBasic.c: Revised stubs-generation tool and interp * tools/genStubs.tcl: creation so that "tclStubsPtr" is not present * unix/Makefile.in: in libtcl.so, but is present only in libtclstub.a. This tightens up the rules for users of the stubs interfaces. [Bug 1819422] * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclTomMathDecls.h:
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclDecls.h: regen with new genStubs.tcl.das2007-12-101-13/+13
| | | | | | | | | | | | | | * generic/tclIntDecls.h: [Bug 1834288] * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclStubInit.c:
* | * tools/genStubs.tcl: Updated script to no longer produce thedgp2006-11-151-15/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _ANSI_ARGS_ wrapper in generated declarations. Also revised to accept variadic prototypes with more than one fixed argument. (This is possible since TCL_VARARGS and its limitations are no longer in use). * generic/tcl.h: Some reordering so that macro definitions do not interfere with the now _ANSI_ARGS_-less stub declarations. * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclTomMathDecls.h:
* | * generic/tcl.h: Moved the preprocessor logicdavygrvy2004-11-031-1/+15
| | | | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: from tclInt.h of setting the * generic/tclInt.h: TCL_STORAGE_CLASS macro to the * generic/tclIntDecls.h: tcl*Decls.h files now that no * generic/tclIntPlatDecls.h: use of EXTERN is left in tclInt.h. * generic/tclPlatDecls.h: Proto for Tcl_Main moved in tcl.h * win/tclWinPort.h: to prior the inclusion of the Stubs headers as they are now resetting TCL_STORAGE_CLASS. Removed extrainious reset from tclWinPort.h. [Patch 1055668]
* | Re-commit after a `make genstubs` on a unix system, to restore unix line endingsdgp2004-06-071-128/+128
| |
* | * generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw Kevin B Kenny2004-06-051-128/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build works again. * generic/tclDecls.h: Changes to the tests for * generic/tclInt.decls: clock frequency in * generic/tclIntDecls.h: Tcl_WinTime * generic/tclIntPlatDecls.h: so that any clock frequency * generic/tclPlatDecls.h: is accepted provided that * generic/tclStubInit.c: all CPU's in the system share * tests/platform.test (platform-1.3): a common chip, and hence, * win/tclWin32Dll.c (TclWinCPUID): presumably, a common clock. * win/tclWinTest.c (TestwincpuidCmd) This change necessitated a * win/tclWinTime.c (Tcl_GetTime): small burst of assembly code to read CPU ID information, which was added as TclWinCPUID in the internal Stubs. To test this code in the common case of a single-processor machine, a 'testwincpuid' command was added to tclWinTest.c, and a test case in platform.test. Thanks to Jeff Godfrey and Richard Suchenwirth for reporting this bug. [Bug #976722]
* | Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-109/+1
| |
* | Regendkf2003-08-251-1/+40
| |
* | * generic/tcl.decls:das2003-05-131-1/+12
|/ | | | | | | | | | | | | | | | | | | | | * macosx/tclMacOSXBundle.c: added extended version of the Tcl_MacOSXOpenBundleResources() API taking an extra version number argument: Tcl_MacOSXOpenVersionedBundleResources(). This is needed to be able to access bundle resources in versioned frameworks such as Tcl and Tk, otherwise if multiple versions were installed, only the latest version's resources could be accessed. [Bug 736774] * unix/tclUnixInit.c (Tcl_MacOSXGetLibraryPath): use new versioned bundle resource API to get tcl runtime library for TCL_VERSION. [Bug 736774] * generic/tclPlatDecls.h: * generic/tclStubInit.c: regen. * unix/tclUnixPort.h: worked around the issue of realpath() not being thread-safe on Mac OS X by defining NO_REALPATH for threaded builds on Mac OS X. [Bug 711232]
* 2002-09-18 Mumit Khan <khan@nanotech.wisc.edu>hobbs2002-09-271-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added basic Cygwin support. * win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build. (SC_PATH_TKCONFIG): Likewise. (SC_PROG_TCLSH): Likewise. (SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin flags. Add -mwin32 to extra_cflags and extra_ldflags. Remove ``-e _WinMain@16'' from LDFLAGS_WINDOW. * win/configure.in: Allow Cygwin build. (SEH test): Define to be 1 instead of empty value. (EXCEPTION_DISPOSITION): Add test. * win/configure: Regenerate. * generic/tcl.h: Don't explicitly define __WIN32__ for Cygwin, let the user decide whether to use Windows or POSIX personality. (TCL_WIDE_INT_TYPE, TCL_LL_MODIFIER, struct Tcl_StatBuf): Define for Cygwin. * generic/tclEnv.c (Tcl_CygwinPutenv): putenv replacement for Cygwin. * generic/tclFileName.c (Tcl_TranslateFileName): Convert POSIX to native format. (TclDoGlob): Likewise. * generic/tclPlatDecls.h (TCHAR): Define for Cygwin. * win/tclWinPort.h (putenv, TclpSysAlloc, TclpSysFree, TclpSysRealloc): Define for Cygwin.