Commit graph

11555 commits

Author SHA1 Message Date
Riccardo Mottola
b879e0835b explicitely test for ws2tcpip.h header, fix library detection on windows for inet_ntop with corrent library, guard includes and definitions with configure results, cleanup header inclusion 2020-06-09 13:44:42 +02:00
Riccardo Mottola
94e10f0447 minor type cast to fix output for platforms where socket is unsigned 2020-06-09 12:48:01 +02:00
Richard Frith-Macdonald
41ab84eaba So not attempt to alter creation date of newly created file. 2020-06-09 11:43:56 +01:00
Gregory John Casamento
3b315b9d21 Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2 2020-06-08 04:12:45 -04:00
Fred Kiefer
2132ba09d9
Merge pull request #140 from triplef/fix-iconv-cross-compile
Fix finding libiconv via cross.config
2020-06-07 19:34:38 +02:00
Frederik Seiffert
0b689d4df4 Fix finding libiconv via cross.config. 2020-06-07 11:00:37 +02:00
Richard Frith-Macdonald
3fc184e5d7 fix indentation 2020-06-06 12:15:08 +01:00
rfm
de4552d754
Merge pull request #137 from triplef/android-assets-directory-improvements
Android assets improvements to support directories
2020-06-06 12:13:53 +01:00
rfm
daadfe7a6d
Merge branch 'master' into android-assets-directory-improvements 2020-06-06 12:13:43 +01:00
Fred Kiefer
c2bc6e709a
Merge pull request #139 from triplef/fix-nsfilepresenter-optional
Fix optional NSFilePresenter methods not being declared as optional.
2020-06-06 12:55:30 +02:00
rfm
e2d223b564
Merge pull request #142 from gnustep/msys-fix
Msys fix
2020-06-06 11:11:06 +01:00
Richard Frith-Macdonald
41badcb417 Fix leak of new operation in -blockOperationWithBlock: method. Make -addExecutionBlock: ensure it works with an on-heap copy of its argument. Tidy code to have NSBlockOperation methods with normal formatting and alphabetical order. Tidy code to use standard macros for memory management. 2020-06-05 17:43:46 +01:00
Riccardo Mottola
6ab0e3465f MSYS and MSYS2 differ in the tricks to include both windows.h and winsock2.h, use __MINGW32_VERSION to differentiate them 2020-06-05 16:32:55 +02:00
Fred Kiefer
fbcd3508c9
Merge pull request #141 from gnustep/fix-nsmaptable-replace-value
Fix replacing existing value in a weak objects map table
2020-06-05 14:12:29 +02:00
Riccardo Mottola
5bbe378a79 remove unneeded window headers include, since common.h will include GSConfig.h 2020-06-05 13:46:34 +02:00
Frederik Seiffert
71f6cde4bd Fix replacing an existing value in a weak objects map table. 2020-06-05 11:55:33 +02:00
Frederik Seiffert
b05c6d65bf Test replacing a weak value in NSMapTable. 2020-06-05 11:48:35 +02:00
Gregory John Casamento
ea162442ce Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2 2020-06-04 18:40:14 -04:00
Richard Frith-Macdonald
a1d5d020b3 Change -objectForKey: method to get the contents into a buffer (on the stack) and iterate through them rather than creating an autoreleased enumerator. This avoids allocation/autorelease/deallocation of the enumerator (as well as etain/release of the search list by the enumerator) which should give better performance generally and avoid excess object creation when lots of defaults lookups are done in an autorelease pool. 2020-06-03 14:48:22 +01:00
Gregory John Casamento
597f0a917e Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2 2020-05-31 17:41:23 -04:00
rfm
bf4c0719aa
Merge pull request #136 from gnustep/windows-ci
Set up CI for Windows using MinGW and GCC
Looks good, merging.
2020-05-29 16:33:42 +01:00
Richard Frith-Macdonald
6fd8dd7a20 Wrap code for posting of notifications (for becoming multithreaded and for a thread being about to exit) in an autorelease loop. This should avoid possible leakage of objects and warnings during the notification process. 2020-05-29 16:25:52 +01:00
Richard Frith-Macdonald
1be8a1375a tidy whitespace 2020-05-29 16:24:59 +01:00
Frederik Seiffert
a0fe037077 Include winsock2.h before windows.h, as required by MSYS2/MinGW-w64. 2020-05-29 10:40:03 +02:00
Frederik Seiffert
2be366e05d Fix warning "setjmp" redefined on Windows. 2020-05-29 10:39:39 +02:00
Frederik Seiffert
5826cb0eb4 Set up CI for Windows using MSYS2/MinGW-w64 and GCC.
Also reworks CI setup to list build matrix explicitly with names.
2020-05-29 10:39:39 +02:00
Gregory John Casamento
96f88dcc95 Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2 2020-05-29 00:53:39 -04:00
Frederik Seiffert
d04bbaafd7 Fix optional NSFilePresenter methods not being declared as optional. 2020-05-27 10:42:31 +02:00
Richard Frith-Macdonald
21ddc5fefb Merge branch 'master' of ssh://github.com/gnustep/libs-base 2020-05-26 16:32:09 +01:00
Richard Frith-Macdonald
fab98ede73 On thread exit we must post the notification that it *will* exit before
setting the instance variable to say that it has finished.  This is tested
as the order OSX does it, and makes sense to ensure that, when -isFinished
returns YES we can be sure the thread will not do anything else.
2020-05-26 16:30:15 +01:00
Richard Frith-Macdonald
4da65fa4ff Add tests for exactly when notification of thread exit occurs 2020-05-26 16:26:35 +01:00
rfm
a636994a33
Merge pull request #138 from triplef/fix-nsuserdefaults-setbool
Store NSNumber instead of NSString for NSUserDefaults -setBool:forKey:.
2020-05-26 12:38:41 +01:00
Frederik Seiffert
cd251a531a Extended general tests for NSUserDefaults. 2020-05-26 13:16:19 +02:00
Richard Frith-Macdonald
861f8de610 Remove excess whitespace and copy trick to NSPortCoder 2020-05-26 09:18:49 +01:00
Gregory John Casamento
3a0420bddf Merge branch 'master' into NSSecureCoding_branch2 2020-05-26 01:52:58 -04:00
Riccardo Mottola
e7f89135d3 rewrite lower negative bounds to avoid integer constants underflow of literals 2020-05-25 23:50:36 +02:00
Frederik Seiffert
d2938c7729 Store NSNumber instead of NSString for NSUserDefaults -setBool:forKey:. 2020-05-25 17:34:34 +02:00
Frederik Seiffert
db19fc3308 Android assets improvements to support directories
- Extend NSBundle resources support to handle directories in Android assets.
- Fix NSFileManager -isReadableFileAtPath: to also support directories in Android assets.
2020-05-20 13:39:47 +02:00
Gregory John Casamento
2b38728f6e Merge branch 'master' into NSSecureCoding_branch2 2020-05-15 10:08:56 -04:00
Gregory John Casamento
4230180eab Add set/get for requiresSecureCoding 2020-05-15 10:06:39 -04:00
Fred Kiefer
4dd9fa30ab
Merge pull request #135 from gnustep/fix-base-native-exceptions
Fix BASE_NATIVE_OBJC_EXCEPTIONS check with OBJC_ZEROCOST_EXCEPTIONS.
2020-05-14 19:07:24 +02:00
Frederik Seiffert
a8aba20a86 Fix BASE_NATIVE_OBJC_EXCEPTIONS check with OBJC_ZEROCOST_EXCEPTIONS. 2020-05-14 16:59:38 +02:00
Frederik Seiffert
4f289bc1f4
Merge pull request #134 from gnustep/fix-win32-nonfragile
Fix building Win32 classes with nonfragile ABI.
2020-05-14 16:56:20 +02:00
Frederik Seiffert
9f0d8d7720 Fix building Win32 classes with nonfragile ABI. 2020-05-13 18:08:35 +02:00
Gregory John Casamento
1a6a091fc4 Add set/get method for requiresSecureCoding 2020-05-13 02:29:53 -04:00
Gregory Casamento
de0282fdac
Merge pull request #133 from gnustep/NSSecureCoding_branch
Start implementing some secure coding methods.
2020-05-12 15:16:40 -04:00
Gregory John Casamento
a0f50deb64 Fix fred's suggestions. Put guard and make more general method the one which is called. 2020-05-12 14:02:50 -04:00
Gregory John Casamento
be8980dfb4 Fix fred's suggestions. Put guard and make more general method the one which is called. 2020-05-12 14:01:44 -04:00
Gregory John Casamento
9d252bd5b6 Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch 2020-05-12 12:09:27 -04:00
Richard Frith-Macdonald
95b6f3a18e Casts to fix systems where the UCalendarDateFields enumeration is unsigned 2020-05-12 13:35:18 +01:00