Commit graph

12537 commits

Author SHA1 Message Date
Hugo Melder
8fd2c06ddd
Implement NSDate as a small object (tagged pointer) - clang/libobjc2 only (#451)
* Implement GSSmallObject Class

* Remove private concrete class access

* Change secondary bias

* NSDate: Get interval from rhs object in comparison

* Add prefix to CONCRETE_CLASS_NAME  macro
2024-10-28 11:52:44 +01:00
rfm
1cb846e607 Improve errors for copying. 2024-10-13 13:54:53 +01:00
rfm
68964f188e
Merge pull request #443 from buzzdeee/NSURLError_constants
Add some missing NSURLErrorDomain constants, as described here:
2024-10-13 11:15:05 +01:00
Hugo Melder
273776a3c6
Fix CI and make libcurl a hard-dependency when using libobjc2 (#447)
* Do not enable Win32 threads and locks when using GCC

* Fix compiler check when CC has arguments appended

* Add NSConstantString literal as global variable to avoid linker error

* Make libcurl a hard-dependency on ObjC 2.0 Toolchain

* Bump TOOLS_WINDOWS_MSVC_RELEASE_TAG

* Remove x86 runner for MSVC toolchain

* Add libcurl to MinGW x64 Clang toolchain

* MSVC toolchain requires Windows 1903 and newer but windows-2019 runner is Redstone 5 (1809)

* MinGW GCC adds .exe suffix

* Some tests timeout after 30s. Increase timeout

* Mark late unregister as hopeful on Win32 with GCC

* Mark NSURL test depending on network connection as hopeful
2024-10-10 11:16:47 +02:00
Riccardo Mottola
1c5f581a46 encode angular brackets to fix gsdoc error 2024-09-24 11:39:47 +02:00
Sebastian Reitenbach
8b64cf4a53
Add typedef NSKeyValueChangeKey to NSKeyValueObserving.h (#444) 2024-09-23 14:33:50 +02:00
Hugo Melder
5cd19978d5
NSString: Cache ICU collator in thread-local storage (#450)
* Add ICU collator caching

* Update ChangeLog
2024-09-23 14:32:36 +02:00
hmelder
cdbb1cc1b4 Fix typo in ifdef 2024-09-10 10:23:08 +02:00
Hugo Melder
012947f09e
NSOperationQueue: Proper names for worker threads (#437)
* NSOperationQueue: Give Worker Threads a name

* Update Changelog

* Remove empty string test
2024-09-08 16:54:01 +02:00
hmelder
538f0ed023 NSThread: Add warning when truncating thread name 2024-09-02 14:51:59 +02:00
Sebastian Reitenbach
7f7371acc8 Add some missing NSURLErrorDomain constants, as described here:
https://web.archive.org/web/20131113010445/https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/Reference/reference.html
2024-08-29 22:48:05 +02:00
Hugo Melder
7474bd80e3
Add Branch Prediction Macros and Error checks in Android Initialisation (#438)
* Add Branch Prediction Macros

* Rigorous Error Handling when using JNI
2024-08-20 19:19:59 +02:00
rfm
7cf59e475a avoid compiler warning 2024-08-19 11:05:54 +01:00
rfm
ed4e305026
NSURLSession rewrite (#422)
* clang-format: Do not use tabs

* Ignore clangd cache and compile_commands

* NSBlockOperation: Fix memory leak

* NSHTTPCookie: Fix expires date parsing

* NSHTTPCookie: Release DateFormatter after use

* NSOperation: Remove all objects at end of execution

* Reimplementation of NSURLSession

* NSURLSession: Update expiration dates in test

* Update ChangeLog

* Fix trivial compiler warning caused by missing import

* Import GSDispatch.h for definition of DISPATCH_QUEUE_SERIAL

* Import common.h early to avoid header conflict

* Fix import order to avoid conflicts and ensure we have correct localisation macro

* Check for presence of dispatch_cancel

* Cancel timer using dispatch_source_cancel() if dispatch_cancel() is missing.

* NSURLSession: Replace dispatch_io with dispatch_source in unit test HTTP server

---------

Co-authored-by: hmelder <service@hugomelder.com>
2024-08-16 14:08:41 +02:00
Gregory John Casamento
9b92c2d593 Merge branch 'master' of github.com:gnustep/libs-base 2024-08-14 18:04:42 -04:00
Gregory John Casamento
f7d74e2020 Quick fix: Correct documentation for NSUbiquitousKeyValueStore class 2024-08-14 18:04:35 -04:00
Hugo Melder
162708f7ed
NSThread: Fix threadPriority and setThreadPriority: on Android by using setpriority instead of pthread (#436)
* Update Changelog

* Use {get, set}priority for -[NSThread setThreadPriority] on Android
2024-08-13 19:59:56 +02:00
Hugo Melder
7cc7fc54e6
Modernise Windows Paths in configure.ac and use 'short' output of relative_paths.sh by default (#431)
* Modernise m4 scripts

* Replace "C:\Documents and Settings" with "C:\Users"
2024-08-13 15:53:10 +02:00
Hugo Melder
a306b27705
Remove MinGW 32-bit CI (#434)
* CI: Enable automatic Mirror Updates for MSYS2 and bump libobjc2 rt version

* Remove MinGW 32-bit CI and pin runtime version at 2.0
2024-08-13 15:52:47 +02:00
Earl Robsham
a5ed5dbe11
Update -[NSMutableArray removeLastObject] (#433)
* Update `-[NSMutableArray removeLastObject]`

Updates the following implementation to avoid raising an exception if the array is already empty (or notifying observers if applicable):
 * `-[NSMutableArray removeLastObject]`
 * `-[GSMutableArray removeLastObject]`
 * `-[NSKeyValueMutableArray removeLastObject]`
 * `-[NSKeyValueIvarMutableArray removeLastObject]`

This brings the behavior of `-[NSMutableArray removeLastObject]` inline with the Apple implementation, improving compatibility for code bases which use both GNUStep and Apple objc/Foundation implementations.

* Add `-[NSMutableArray removeLastObject]` test case

Adds a test case to ensure `-[NSMutableArray removeLastObject]` does not raise an exception when called on an empty array.
2024-08-10 23:44:02 +02:00
rfm
bf7ccc407d avoid compiler warning 2024-08-08 14:21:22 +01:00
rfm
1e0df026d9 Supply function pointer prototype to avoid compiler warnings 2024-08-08 14:18:16 +01:00
rfm
f898f19b91 add protocols to graphing 2024-08-08 12:15:43 +01:00
Riccardo
ea9c40e35c
Merge pull request #430 from gnustep/agsdoc_new_style
Style HR bars with CSS and not inline.
2024-08-08 08:23:25 +02:00
rfm
3fb764758d Embed SVG directly into class documentation to fix hyperlinking on firefox 2024-08-07 17:48:49 +01:00
rfm
023e8a6d97 Merge branch 'master' of ssh://github.com/gnustep/libs-base 2024-08-07 16:12:56 +01:00
rfm
72c975c543 Simple diagrams in documentation 2024-08-07 16:12:22 +01:00
Hugo Melder
81b3c721bc
NSUserDefaults: Retrieve native UI languages from Windows and Android System APIs (#426)
* Create NSString Win32Additions Category

* NSUserDefaults: Fetch Windows UI language information

* NSUserDefaults: Add winnls include

* Android Native UI Language

* NSUserDefaults: Replace incorrect separator on Windows

* NSProcessInfo: BCP-47 Note

* GSConfig: Bump MinGW WINVER to Vista

* NSString+Win32Additions: Do not add array to arp twice

* NSUserDefaults: Increase default length
2024-08-07 16:26:16 +02:00
Riccardo Mottola
db2f5542f8 define class for dividing HRs and remove its in-line styling with a hard-coded CSS 2024-08-07 12:24:26 +02:00
Riccardo Mottola
322106a4d2 remove font from toc 2024-08-07 00:16:34 +02:00
Riccardo Mottola
6df0930f33 be consistent in br style 2024-08-07 00:07:47 +02:00
rfm
726777bf6e Fix typo in error message 2024-08-06 20:17:59 +01:00
rfm
9bdad8d56b Add option to set stylesheet 2024-08-06 20:17:38 +01:00
rfm
6c43f6c831 iFixup trace function type/name 2024-08-06 20:17:05 +01:00
rfm
4c687e6dee Avoid confusing autogsdoc 2024-08-06 19:41:18 +01:00
rfm
04f0d76904 Fix use of obsolete/deprecated method. 2024-07-31 10:24:04 +01:00
rfm
6d8f546c08 fix trivial typo 2024-07-31 10:22:48 +01:00
rfm
bcffa3c35d remove explicit font setting 2024-07-29 20:56:40 +01:00
rfm
28a6e6ebbd Final batch of GC cleanups (for the forseeable future). 2024-07-25 17:11:34 +01:00
rfm
b49af95359 Hide internals of _NSZone struct for consistency with OSX 2024-07-23 13:06:24 +01:00
rfm
52c127c950 GC was deprecated several releases ago and notinally removed a couple of releases ago ... delete more remnants of the old code. 2024-07-22 15:14:13 +01:00
rfm
a1514249f3 Tweaks to match OSX pointer array behaviors more accurately. 2024-07-22 12:22:40 +01:00
rfm
5699959d39 zeroing weak memory is now treated as weak memory since GC has been dropped 2024-07-21 09:46:33 +01:00
Richard Frith-Macdonald
d2fec6b222 a few GC related tests 2024-07-21 09:43:21 +01:00
rfm
c46d447100 Deprecate/remove old GC options 2024-07-21 09:16:09 +01:00
Richard Frith-Macdonald
586f0310d9 Merge branch 'master' of github.com:gnustep/libs-base 2024-07-18 12:45:10 +01:00
Richard Frith-Macdonald
42a3e55499 simple test for pointer array and weak objects 2024-07-18 12:43:46 +01:00
rfm
fcc06a3d9f update documentation for osx compatibility changes 2024-07-17 21:19:31 +01:00
Richard Frith-Macdonald
6dd13deac2 fix typo 2024-07-17 16:34:57 +01:00
rfm
7aa05d2591 reinstate lost change 2024-07-17 16:32:50 +01:00