rfm
46d19b5dd5
Updates for changes to IANA time zone data.
2024-12-31 14:31:43 +00:00
rfm
0d66ee0f82
Fix false positive in leak analysis due to clearing pointer at exit
2024-12-30 12:59:20 +00:00
rfm
da73bc5e9b
Fix failure t unlock mutex
2024-11-19 19:15:08 +00:00
rfm
077e4646ab
Fix reference cycle in absolute time zone and its detail
2024-11-19 10:58:37 +00:00
rfm
9207ab856f
Fix leak when absolute time zones are stored in the name dictionary
2024-11-18 17:15:11 +00:00
rfm
eeff6e08a7
Correct the creation of the hash table used for absolute time zones.
2024-11-18 15:34:53 +00:00
rfm
598236d3ef
prevent re-initialize
2024-11-17 17:01:19 +00:00
rfm
1c7e81dee1
Free 'leaked' memory at exit.
2024-11-14 18:57:05 +00:00
rfm
25505b2e67
Some more leak improvements
2024-11-14 14:45:05 +00:00
rfm
6667842dd5
Update FSF address as requested by Gregory
2024-11-07 13:37:59 +00:00
rfm
58ae7db59a
fixup headers for deletion of obsolete lock code
2024-05-30 11:06:23 +01:00
hmelder
1d33c2095f
Fix formatting
2024-04-17 23:32:56 +02:00
hmelder
279d91e0f3
NSTimeZone: Import NSScanner
2024-04-17 23:32:56 +02:00
hmelder
2918bd992e
Refactor +[NSTimeZone timeZoneArray]
2024-04-17 23:32:56 +02:00
Riccardo Mottola
2c7b3c6f63
cast to the localsub type
2023-09-18 22:57:40 +00:00
Richard Frith-Macdonald
ef9ad60627
Add Yavor Doganov's patches
2023-08-01 14:46:44 +01:00
Hugo Melder
3aa2d1912c
Enclose changes into preprocessor conditional
2022-08-08 11:08:03 +02:00
Hugo Melder
3c095da62f
Windows to IANA time zone conversion: remove unsupported TIME_ZONE_ID_DAYLIGHT conversion
2022-08-07 10:55:20 +02:00
Frederik Seiffert
42efca0754
Fix time zone lookup on Windows MSVC when using non-English locale
2022-08-03 17:05:23 +02:00
Richard Frith-Macdonald
0b1a2d4d66
Tidy positioning of semicolon to be inside IF_NO_ARC() macros so it won't appear in the source when compiled with ARC
2022-02-17 10:21:36 +00:00
Richard Frith-Macdonald
c76ebf2962
Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC()
...
and deprecate it. Searched for and removed obsolete references to
garbage collection in comments and documentation.
2022-02-17 10:08:18 +00:00
Frederik Seiffert
542d870302
Fix time zone lookup on Windows MSVC by converting Windows timezone name to IANA identifier
2022-01-26 10:33:33 +01:00
Levin Li
e9a21ffd2b
Fix test failure by adding memset
2021-12-31 15:18:04 +08:00
Richard Frith-Macdonald
6d5084e3e1
Delete commented out code accidentally left in on last commit
2021-08-27 10:52:32 +01:00
Richard Frith-Macdonald
0d12a1e77e
Changes to address mostm of Fred's comments
2021-08-27 09:19:38 +01:00
Richard Frith-Macdonald
b71a5bfc40
Use our own struct tm
2021-08-14 12:43:44 +01:00
Richard Frith-Macdonald
5162d888dc
timezone updates for version2 files
2021-08-11 08:43:20 +01:00
Frederik Seiffert
b41953d274
More robust check for Windows ICU
...
Also ensure that we don't include both unicode/*.h and icu.h.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
dc32970502
Add support for using ICU DLL from Windows 10
...
Requires Windows 10 version 1903 (May 2019 Update):
https://docs.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu-
Also adds missing configure check for unicode/utext.h.
2021-08-03 16:52:38 +02:00
Frederik Seiffert
abfe4e2a04
Use native threading and locking APIs on Windows
...
Removes dependency on pthread library and uses fast Slim Reader/Writer (SRW) locks for NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being used for all internal locking instead of pthread APIs.
Also adds support for thread priorities on Windows, fixes method signature of +[NSThread setThreadPriority:] to match Apple platforms, and adds error handling in same method.
2021-07-29 14:22:27 +02:00
Richard Frith-Macdonald
3b8bbb00ba
Try to make timezone parsing more robust: always use standard header for posix time zone files.
2021-07-29 10:35:19 +01:00
Richard Frith-Macdonald
395fafde6f
Set file version consistently to avoid misunderstanding
2021-07-25 07:50:31 +01:00
Richard Frith-Macdonald
7245156336
Add sup[port for 64bit time transitions
2021-07-22 10:33:49 +01:00
Frederik Seiffert
0582eddd96
Export string constants and annotate exported function implementations
...
Moves scattered string constants to externs.m, and removes obsolete code replacing constant strings.
2021-03-27 17:36:15 +01:00
Gregory John Casamento
753c907938
Fix address for FSF and License name in all headers in base
2019-12-09 18:36:00 -05:00
Richard Frith-Macdonald
cb2998641e
another tweak to avoid a compiler warning ... let the compiler know that the
...
hour cannot exceed 23
2019-01-17 15:20:48 +00:00
Richard Frith-Macdonald
bc72e05f93
Use unsigned integers to suppress spurious compiler warning.
2019-01-17 15:01:08 +00:00
Richard Frith-Macdonald
c1f96a1cf4
Simplify locking for time zones
2018-03-27 10:37:53 +01:00
Richard Frith-Macdonald
c9a1d39055
Fix potential buffer overrun
2018-02-09 08:32:22 +00:00
Richard Frith-Macdonald
54bf6598ed
make sure the hour we read from the time zone file is constrained to 0-23
2018-02-04 11:21:47 +00:00
Richard Frith-Macdonald
dcd3b8c5a9
fix possible error with negative time zone offset.
2018-01-31 14:31:37 +00:00
Richard Frith-Macdonald
f319725536
copying the local time zone just, returns it
2017-12-19 11:42:53 +00:00
Richard Frith-MacDonald
d40d219015
removal of garbage collection
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
2016-03-25 11:15:28 +00:00
Richard Frith-MacDonald
a2ed652ca2
consistency fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39547 72102866-910b-0410-8b05-ffd578937521
2016-03-15 18:22:57 +00:00
Richard Frith-MacDonald
a0c97c1ddd
deprecate confusing extension in favour of simpler ARC-complient method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39520 72102866-910b-0410-8b05-ffd578937521
2016-03-10 16:50:41 +00:00
Richard Frith-MacDonald
62d2bcbabc
changes for use of _WIN32 define on windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39492 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:16:16 +00:00
Richard Frith-MacDonald
70749467e1
Improve absolute time zone caching
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38465 72102866-910b-0410-8b05-ffd578937521
2015-04-28 16:47:54 +00:00
Richard Frith-MacDonald
01e9c92d9e
imor fixup for systems without nstzfile.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38258 72102866-910b-0410-8b05-ffd578937521
2014-12-23 14:36:02 +00:00
Richard Frith-MacDonald
629f28cd7e
fix for NT/windows detection
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37572 72102866-910b-0410-8b05-ffd578937521
2014-01-11 08:09:39 +00:00
Richard Frith-MacDonald
18c8dcfbf9
fix NSTimeZone hash
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37312 72102866-910b-0410-8b05-ffd578937521
2013-10-29 07:03:29 +00:00