diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-10-05 11:24:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-10-05 11:24:01 (GMT) |
commit | d586379ee1c66f32af922735d3fdd5b4687303ce (patch) | |
tree | 68c0928c9826b336819d0766769d6dccc0ce3103 /generic | |
parent | 48c88340a9fad7f5d8827ce38c68d6a55e5b7d2a (diff) | |
parent | 22a204efc2b5de6e1fd336e14c6350e5f8ceb9a8 (diff) | |
download | tcl-d586379ee1c66f32af922735d3fdd5b4687303ce.zip tcl-d586379ee1c66f32af922735d3fdd5b4687303ce.tar.gz tcl-d586379ee1c66f32af922735d3fdd5b4687303ce.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclBasic.c | 8 | ||||
-rw-r--r-- | generic/tclZipfs.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 4f43ca5..83f6b4e 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -69,7 +69,7 @@ * compatible with AddressSanitizer (ASan) use-after-return detection. */ -#if defined(HAVE_INTRIN_H) +#if defined(_MSC_VER) && defined(HAVE_INTRIN_H) #include <intrin.h> /* for _AddressOfReturnAddress() */ #endif @@ -84,10 +84,10 @@ void * TclGetCStackPtr(void) { -#if defined(HAVE_INTRIN_H) - return _AddressOfReturnAddress(); -#elif __GNUC__ || __has_builtin(__builtin_frame_address) +#if defined( __GNUC__ ) || __has_builtin(__builtin_frame_address) return __builtin_frame_address(0); +#elif defined(_MSC_VER) && defined(HAVE_INTRIN_H) + return _AddressOfReturnAddress(); #else ptrdiff_t unused = 0; /* diff --git a/generic/tclZipfs.c b/generic/tclZipfs.c index f2bdaa9..25929d1 100644 --- a/generic/tclZipfs.c +++ b/generic/tclZipfs.c @@ -244,13 +244,13 @@ typedef struct ZipEntry { } ZipEntry; /* - * File channel for file contained in mounted ZIP archive. + * File channel for file contained in mounted ZIP archive. * - * Regarding data buffers: + * Regarding data buffers: * For READ-ONLY files that are not encrypted and not compressed (zip STORE * method), ubuf points directly to the mapped zip file data in memory. No - * additional storage is allocated and so ubufToFree is NULL. - * + * additional storage is allocated and so ubufToFree is NULL. + * * In all other combinations of compression and encryption or if channel is * writable, storage is allocated for the decrypted and/or uncompressed data * and a pointer to it is stored in ubufToFree and ubuf. When channel is |