Commit graph

12680 commits

Author SHA1 Message Date
rfm
a2b9be6287 update config for recent autoconf 2024-07-16 14:20:38 +01:00
rfm
d32065b322 fix non-portable testcases 2024-07-16 13:46:09 +01:00
rfm
b677ea402a Add some simple pointer functions personality tests 2024-07-16 12:07:32 +01:00
rfm
4629a4e1f6 Tweaks related to issue #311 2024-07-15 17:19:16 +01:00
rfm
b91ff38636 issue 424 2024-07-09 17:03:39 +01:00
rfm
58c4bbcaab Make things work with autoconf-2.71 2024-07-09 15:33:38 +01:00
rfm
33e5b72a97 fix last modifiecation 2024-07-07 16:59:25 +01:00
rfm
9442ff8dac github issue 378 2024-07-07 13:56:20 +01:00
rfm
cb68ba8864 Make notification delivery a little more predictable (issue #423) 2024-07-04 11:48:58 +01:00
rfm
0cf5955e00 Avoid (some cases of) compiler warning; mixing declarations and code is incompatible with standards before C99 2024-07-03 16:21:13 +01:00
rfm
f7acef2362
Merge pull request #421 from gnustep/revert-411-nsurlsession_rewrite
I am sorry that I didn't comment earlier, but simply assumed you were aware of the different versions of libdispatch.  The GSDispatch.h header provides support for some compatibility between versions, but when you want to use more features you also need to extend the configure script to check for their availability.

As a rule, the gnustep core libraries need to support all versions of code they depend on (certainly all the versions that come with all the major target unix style operating systems), and in rare cases of incompatibility this needs to be detected at configure time with a message telling the user what missing dependency they need to install.

I don't think much is needed for the NSURLSession rewrite to be portable across all the major platform versions of libdispatch (ie without having to install a specific version rather than the one provided by the system), but I suspect the testcases would best be updated to use portable code (eg. no libdispatch in the test cases themselves).

An alternative solution (license permitting) might be to bundle a specific version of libdispatch with the base library, and have it automatically built/installed first.  That comes with its own set of problems though.
2024-07-03 07:23:24 +01:00
rfm
3fedf31c2d
Revert "NSURLSession Reimplementation (#411)"
This reverts commit 07233534e6.
2024-07-02 19:19:14 +01:00
Hugo Melder
07233534e6
NSURLSession Reimplementation (#411)
* clang-format: Do not use tabs

* Ignore clangd cache and compile_commands

* NSBlockOperation: Fix memory leak

* NSHTTPCookie: Fix expires date parsing

* NSOperation: Remove all objects at end of execution

* Reimplementation of NSURLSession

* Update ChangeLog
2024-07-02 15:58:48 +02:00
rfm
9367c2d796 use memory management notation for clang static analyzer 2024-06-23 10:35:16 +01:00
rfm
c79b9844bd fix non-portable code in testcase 2024-06-23 08:20:52 +01:00
rfm
1d473e573a Another memory management tweak. 2024-06-22 15:19:13 +01:00
rfm
7532837db4 fix method names 2024-06-21 21:18:17 +01:00
rfm
2c0ee5bf49 avoid compiler static analyzer warning 2024-06-21 17:28:49 +01:00
rfm
d49b6a46ce Debug improvements 2024-06-21 16:43:50 +01:00
rfm
50e1575b8d Fix some leaks 2024-06-21 15:53:55 +01:00
rfm
4233f6a9d6 fix dead assignments 2024-06-21 15:02:55 +01:00
rfm
5a09b09fe3 iAdd comment on why we use fork() 2024-06-21 12:34:34 +01:00
rfm
4d12423c4e ChangeLog for recent commits 2024-06-21 12:29:52 +01:00
rfm
ea1f5a0d12 Fix dead initialisations 2024-06-21 12:23:52 +01:00
rfm
da181e9ab0 Remove dead assignments. 2024-06-21 12:17:15 +01:00
rfm
8e0000770d Do not use vfork since its behavior is undefined for our use-case 2024-06-21 12:02:13 +01:00
rfm
a08d7f8b0f Tolerate nil cwrelease methods for content 2024-06-21 11:51:26 +01:00
rfm
4ad8d6ba38 Avoid compiler warning 2024-06-21 11:45:38 +01:00
rfm
235bb21df3 Fix obscure memory management issues 2024-06-19 15:28:48 +01:00
rfm
1c2b81d724 Fix C-string termination issues and a few dead assignments 2024-06-19 14:53:51 +01:00
rfm
9c9c918a8c Fix ranged initialisation index errors 2024-06-19 14:20:37 +01:00
rfm
5dbec4e707 Avoid excess copies of dictionary keys 2024-06-19 12:07:16 +01:00
rfm
7c4a7469a9 Fix potential leaks 2024-06-19 11:28:34 +01:00
rfm
da1a69e4bd Fix potential use after dealloc 2024-06-19 11:08:58 +01:00
rfm
6f94c90d98 fix leak 2024-06-18 12:03:01 +01:00
rfm
4d0b00776c Memory leak improvments 2024-06-18 11:23:15 +01:00
rfm
c9af996377 fix return value to be autoreleased 2024-06-12 13:54:10 +01:00
rfm
a4b661d633 Fix non-portabe use of dot syntax. Fix excess release. Conform to coding style. 2024-06-12 11:05:10 +01:00
rfm
92247d13c9
Merge pull request #419 from 2xsaiko/outgoing/nsfmurls
Implement -[NSFileManager URLsForDirectory:inDomains:]
2024-06-12 11:00:49 +01:00
Gregory Casamento
ced4cd0531
Merge pull request #410 from gnustep/NSExpression_branch 2024-06-11 11:46:56 -04:00
Marco Rebhan
952e076084
Implement -[NSFileManager URLsForDirectory:inDomains:] 2024-06-11 17:14:36 +02:00
rfm
a541a467bf cosmetic fixes (indentation etc) 2024-06-11 13:41:08 +01:00
rfm
3bcb484691
Merge pull request #416 from gnustep/enumerateSubstringInRange
Fix broken enumerateSubstringsInRange:options:usingBlock: implementation
2024-06-11 13:29:48 +01:00
rfm
930b901558 remove obsolete test 2024-06-10 15:27:35 +01:00
rfm
67c53d6598 No exception when closing a file more than once 2024-06-10 11:51:47 +01:00
rfm
3202bd00f7
Merge pull request #417 from litherum/nsfilehandle-fstat
-[NSFileHandle initWithFileDescriptor:] logs a message each time fstat() doesn't succeed on UNIX
2024-06-10 11:00:37 +01:00
Litherum
e39309a7e9 -[NSFileHandle initWithFileDescriptor:] logs a message each time fstat() doesn't succeed on UNIX
fstat() on UNIX isn't guaranteed to always succeed, even if the file handle is valid. Special files may or may not support fstat() in the kernel.

(For context, I'm working on a Vulkan application. Vulkan has facilities to send certain objects across processes by representing the objects as file descriptors. These file descriptors still need to be close()d, which makes them good candidates for wrapping an NSFileHandle around them, but they do not support fstat(). I'm creating multiple of these each frame in the application, which means the line "unable to get status of descriptor" appears very often in the terminal while my application is running.)
2024-06-09 14:17:29 -07:00
Hugo Melder
4d3926d250
Implement -[NSString enumerateLinesUsingBlock:] (#407)
* Implement -[NSString enumerateLinesUsingBlock:]

* Fix formatting

* Use GNUstep CALL_BLOCK macro
2024-06-04 22:19:45 +02:00
hmelder
edbc859093 NSString: Add enumerateSubstringsInRange tests 2024-06-04 12:10:31 +02:00
hmelder
0c69d096ca NSString: Fix broken enumerateSubstringsInRange:options:usingBlock: implementation 2024-06-04 12:10:20 +02:00