Hugo Melder
ac38295f64
NSRegularExpression: Improved Error and Exception handling to match macOS behaviour ( #343 )
...
* NSRegularExpression: Match macOS error handling
* Add test cases for error handling
* NSRegularExpression: Raise an NSInvalidArgumentException instead of NSInternalInconsistencyException
* Check if NSRegularExpression throws an exception
2023-11-13 19:55:49 +01:00
rfm
ec051d1d30
Add a couple of trivial testcases to compare floats
2023-11-06 15:47:36 +00:00
rfm
1942313dea
NSISO8601DateFormatter bugfix (as reported by kevinpeizner) and tweaks.
2023-10-26 14:19:06 +01:00
rfm
7924d3a08f
Merge pull request #333 from qmfrederik/fixes/objc-includes
...
Add missing includes for `objc_msg_lookup` in `NSObject.m` and `NSProxy.m`
2023-10-21 19:08:49 +01:00
rfm
ab11ba285e
Merge pull request #337 from qmfrederik/fixes/tool-not-found-error
...
NSDistributedNotificationCenter: Throw a descriptive exception when gdnc could not be found
2023-10-21 19:08:02 +01:00
rfm
921c1317f7
Fix to make working directory checks function on windows
2023-10-11 18:10:44 +01:00
Frederik Carlier
b9f3bb4d76
NSDistributedNotificationCenter: Throw a descriptive exception when gdnc could not be found
...
`NSTask launchPathForTool: @"gdnc"];` can return `nil` when the tool is not found. In this case, `[NSTask launchedTaskWithLaunchPath]` would raise a `NSInvalidArgumentException` with error message "NSTask - no launch path set" which is not very descriptive.
2023-10-11 16:38:17 +02:00
Richard Frith-Macdonald
f0f841c01f
test for non existent directory
2023-10-10 18:12:17 +01:00
Richard Frith-Macdonald
a5a9423c10
Return error if task directory is bad
2023-10-10 17:01:52 +01:00
Gregory Casamento
9d0887e4d6
Merge pull request #336 from gnustep/NSObject_issue335
2023-10-10 05:28:26 -04:00
Gregory John Casamento
e73f55f182
Remove check for GSMacOSXCompatible from respondsToSelector:
2023-10-10 03:45:21 -04:00
Gregory John Casamento
2300a26b1a
Update... fix respondsToSelector:
2023-10-10 00:28:49 -04:00
Wolfgang Lux
3ed5eb3dcf
Use _exit instead of exit to terminate a vfork'ed process.
...
This avoids running the atexit handlers, which could have visible side
effects in the parent process.
2023-10-09 22:51:01 +02:00
Riccardo Mottola
5121156f6b
The compiler complained that we ignored the return of write(), we
...
change to the library call and keep it happy.
2023-10-09 21:02:35 +02:00
Frederik Carlier
f92c46982d
NSProxy: Include <objc/message.h>
...
NSProxy uses objc_msg_lookup, which is defined in <objc/message.h>
2023-10-08 23:20:52 +02:00
Frederik Carlier
ed77305f32
NSObject: Include <objc/message.h>
...
NSObject uses objc_msg_lookup, which is defined in message.h
2023-10-08 23:19:30 +02:00
Richard Frith-Macdonald
531d3b8559
Small array keyword fixes for NSPredicate
2023-10-08 13:48:33 +01:00
Gregory Casamento
e58b83c1f3
Merge pull request #330 from gnustep/NSKeyValueObserving_issue327
2023-10-08 05:49:59 -04:00
rfm
0d9e456bef
Merge pull request #331 from qmfrederik/fixes/mingw-setjpm-clang
...
Win64: Only use `__builtin_setjmp`/`__builtin_longjmp` when compiling with GCC
2023-10-08 10:30:08 +01:00
Gregory John Casamento
19cfd59b47
update changelog
2023-10-07 20:51:47 -04:00
Gregory John Casamento
dbc71df600
Remove unneeded method definition
2023-10-07 20:51:47 -04:00
Gregory John Casamento
48ccee0beb
Update tests to cover removeObserver:fromObjectsAtIndexes:forKeyPath:context:
2023-10-07 20:51:47 -04:00
Gregory John Casamento
a70745b27a
Add test products to ignore list
2023-10-07 20:51:47 -04:00
Gregory John Casamento
3c7e13244f
Update tests to test removeObserver:forKeyPath:context method
2023-10-07 20:51:47 -04:00
Gregory John Casamento
f2e31e0b54
Move implementation of new method to correct category
2023-10-07 20:51:47 -04:00
Gregory John Casamento
edc15778d2
Add removeObserver:fromObjectsAtIndexes:forKeyPath:context: method
2023-10-07 20:51:47 -04:00
Frederik Carlier
673a6880ee
Win64: Remove workaround for setjmp/longjmp misbehaving
...
Using `__builtin_setjmp` when compiling with Clang on MSYS2 will result in compiler warnings and runtime crashes.
Additionally, all tests seem to pass on recent versions of MSYS2 without this workaround in place.
Compiler warning on Clang:
warning: incompatible pointer types passing 'jmp_buf' (aka 'struct _SETJMP_FLOAT128[16]') to parameter of type 'void **' [-Wincompatible-pointer-types]
NS_DURING
^~~~~~~~~
note: expanded from macro 'NS_DURING'
if (!setjmp(NSLocalHandler.jumpState)) {
^~~~~~~~~~~~~~~~~~~~~~~~
note: expanded from macro 'setjmp'
^
1 warning generated.
2023-10-07 17:35:54 +02:00
Richard Frith-Macdonald
24653e63c3
Ensure sockaddr_any is future proof for new socket addresse sizes on
...
platforms where sockaddr_storage is provided
2023-09-24 12:26:59 +01:00
Riccardo Mottola
5773700b93
some date cleanup for updated doc generation
2023-09-21 01:27:10 +02:00
Riccardo Mottola
0547b18d32
remove some useless ; in declarations
2023-09-21 00:55:10 +02:00
Gregory Casamento
92ef305e1e
Merge pull request #326 from gnustep/warningfix
2023-09-20 16:51:25 -04:00
Gregory Casamento
dbfbf3766a
Merge pull request #317 from gnustep/NSLock_fix_issue316
2023-09-19 12:41:12 -04:00
Riccardo Mottola
2c7b3c6f63
cast to the localsub type
2023-09-18 22:57:40 +00:00
Riccardo Mottola
72e8335bd9
check for a valid file and check for ftruncate() result and throw exception in case
2023-09-18 23:40:13 +02:00
Riccardo Mottola
e20b3d59fc
only exec if chdir worked
2023-09-18 23:13:41 +02:00
Riccardo Mottola
339fb7a131
suppress various warnings
2023-09-18 23:08:41 +02:00
Gregory Casamento
d97c84b9ed
Merge pull request #323 from gnustep/NSKeyValueObserving_issue322
2023-09-18 12:29:26 -04:00
Richard Frith-Macdonald
1feeb27b08
Make testcases more robust.
2023-09-17 23:35:24 -04:00
Richard Frith-Macdonald
65163ebf48
Add testcases and corrected code to check for GSMacOSXCompatibility mode
...
when unlocking fails. Also put more detail in the warning message
2023-09-17 23:35:03 -04:00
Gregory John Casamento
f73efa4f89
Remove reference to method we are not implementing at this point
2023-09-15 15:15:10 -04:00
Gregory Casamento
788606f424
Add method which calls info implementation
2023-09-15 14:59:33 -04:00
Gregory John Casamento
4b54990846
Move info method to the right place
2023-09-15 14:57:29 -04:00
Gregory Casamento
19977930f5
Add skeletal version of removeObserver:fromObjectsAtIndexes:forKeyPath:context:
2023-09-15 14:46:01 -04:00
Gregory Casamento
75965866a1
Fix compilation error
2023-09-15 14:39:33 -04:00
Gregory Casamento
0f3bb3d2b8
Use keysight implementation of the method removeObjserver:forKeyPath:context:
2023-09-15 14:13:44 -04:00
Gregory John Casamento
b8bc924cdb
Throw an exception when calling the removeObserver:forKeyPath:context: method
2023-09-14 12:22:56 -04:00
Gregory John Casamento
5507ea1d1e
Change formatting
2023-09-14 09:31:57 -04:00
Gregory John Casamento
2c81d3e003
Add removeObserver:forKeyPath:context: to implementation
2023-09-13 12:49:01 -04:00
Gregory John Casamento
dbebf7625d
Ignore tmp files
2023-09-13 05:17:37 -04:00
Hugo Melder
a2d5479882
Fix LD_LIBRARY_PATH in Documentation GNUmakefile ( #321 )
2023-09-11 20:57:41 +02:00