Commit graph

11573 commits

Author SHA1 Message Date
Richard Frith-Macdonald
679272b50c Use memcpy rather than strncpy/strncat to avoid compiler warnings 2020-12-03 12:07:33 -05:00
Richard Frith-Macdonald
1906093efd Import missing NSError header 2020-12-03 12:01:20 -05:00
Richard Frith-Macdonald
379f5f0040 use memcpy rather than strncpy to avoid compiler warnings 2020-12-03 11:59:37 -05:00
Richard Frith-Macdonald
f18594ff3e tweaks to avoid compiler warnings 2020-12-03 11:56:14 -05:00
Richard Frith-Macdonald
0b34eac9e1 Merge branch 'master' of ssh://github.com/gnustep/libs-base into master 2020-12-03 09:23:24 -05:00
Richard Frith-Macdonald
aff02f4d08 Create temporarry file in current directory and delete it when done ... fixes testcase to work on windows. 2020-12-03 09:22:15 -05:00
Frederik Seiffert
c12716913a Detect objc.lib and add libdir to path on Windows.
Also removed further obsolete checks for garbage collecting runtime (no longer supported).
2020-11-30 17:18:07 +01:00
Frederik Seiffert
ad43ad9092 Prefer dispatch/dispatch.h over dispatch.h. 2020-11-30 17:18:07 +01:00
Richard Frith-Macdonald
1b7bf26bea Merge changes for NSURLSession from EngageHub (formerly Brainstorm). 2020-11-29 06:57:47 -05:00
Richard Frith-Macdonald
d015cebbf3 Remove obsolete checks for garbage collecting runtime (no longer supported) 2020-11-28 04:11:31 -05:00
Richard Frith-Macdonald
0dbd863dde Add optimisation for the use of GSImmutableString so that it can make use of the layout of the underlying mutable string that the GSImmutableString is a proxy for. 2020-11-22 09:55:39 -05:00
Richard Frith-Macdonald
7fcd11d6c9 Rewrite -replaceCharactersInRange:withString: to cope with the case where the string argument is the receiver (or some proxy to the receiver etc). 2020-11-22 08:08:34 -05:00
Richard Frith-Macdonald
3bb72398ee Report YES for GSImmutableString being a proxy 2020-11-22 08:08:00 -05:00
Richard Frith-Macdonald
5ec87d80b4 Fix for text storage objects setting their content to their own immutable proxy 2020-11-21 08:23:53 +00:00
Richard Frith-Macdonald
1170e0c0c1 add casts to avoid compiler warnings 2020-11-20 01:42:33 -05:00
Richard Frith-Macdonald
aa0beb0758 Minor tidyup for clearer indentation 2020-11-19 08:33:20 -05:00
Richard Frith-Macdonald
8178e52806 Correct checks for validity of the second UTF16 value in a surrogate pair 2020-11-19 08:27:06 -05:00
Richard Frith-Macdonald
5aa4b7a732 Declare NSURL before using it. 2020-11-18 09:22:41 +00:00
rfm
d27dcfbed6
Merge pull request #164 from triplef/add-nsfilehandle-url-methods
Add NSFileHandle URL initializers.
2020-11-18 09:21:13 +00:00
Richard Frith-Macdonald
e7035cadf3 Be defensive about checking for key beginning with @ 2020-11-18 09:09:48 +00:00
Frederik Seiffert
88a2e0809f Add NSFileHandle URL initializers.
Also use "instancetype" for all initializers.
2020-11-17 19:48:05 +01:00
Richard Frith-Macdonald
d4df4b6d87 Add methods to control size of in-memory queue os emails 2020-11-14 04:25:34 +00:00
Richard Frith-Macdonald
23d431234c Fix bug in offset 2020-11-13 05:41:42 +00:00
Richard Frith-Macdonald
9794bece2e Merge branch 'TestPlant-gnustep_testplant_mergeback' 2020-11-13 05:40:07 +00:00
rfm
3bba338dab
Merge pull request #145 from gnustep/ci-cat-config-log
Output config.log if build fails on CI.
2020-11-13 11:43:55 +00:00
Frederik Seiffert
727f64e6f3 Output config.log if build fails on CI. 2020-11-13 09:44:57 +01:00
Richard Frith-Macdonald
a34beadb8e Merge branch 'gnustep_testplant_mergeback' of https://github.com/TestPlant/libs-base into TestPlant-gnustep_testplant_mergeback
Conflicts:
	ChangeLog
2020-11-13 05:39:15 +00:00
Richard Frith-Macdonald
9b8a84d936 allow more time for operations thread to exit on slow machines 2020-11-12 11:37:53 +00:00
rfm
f7bbefda7b
Merge pull request #163 from triplef/icu-68-fix
Fix compilation with ICU 68
2020-11-12 17:52:09 +00:00
Frederik Seiffert
06fa7792a5 Fix compilation with ICU 68. 2020-11-12 17:18:09 +01:00
Richard Frith-Macdonald
d1bd406e17 Allow synonyms for help and print same message as OSX for unrecognised option 2020-11-12 06:46:55 +00:00
Richard Frith-Macdonald
d342c4a459 fix missing semicolon 2020-11-12 06:36:49 +00:00
rfm
8852c29aba
Merge pull request #162 from Artoria2e5/plutil-doc
plutil: Some documentation
Yes, some documentation is better than none :-)
2020-11-12 17:11:51 +00:00
Richard Frith-Macdonald
ae90743153 Avoid building unused functions when new string API is used. 2020-11-11 22:23:13 +00:00
Richard Frith-Macdonald
5dbd0a7da5 trivial format fixes 2020-11-07 16:02:15 +00:00
Richard Frith-Macdonald
7ecb170800 Fix a check for a null pointer and various whitespace/indentation tidyups 2020-11-07 15:56:51 +00:00
Mingye Wang
fb5368fefe plutil: Some documentation 2020-11-07 23:07:29 +08:00
rfm
95a71ea552
Merge pull request #154 from triplef/nsurl-additions
Add various NSURL methods.
2020-11-06 09:38:16 +00:00
rfm
17af685b1a
Merge branch 'master' into nsurl-additions 2020-11-06 09:36:42 +00:00
Richard Frith-Macdonald
94162b9b73 Fixups for format and compilation 2020-11-06 09:30:58 +00:00
rfm
8ccd6e2675
Merge pull request #102 from Artoria2e5/pluti
Add plutil utility
2020-11-06 09:12:33 +00:00
Richard Frith-Macdonald
efabfab3d0 Merge branch 'master' of ssh://github.com/gnustep/libs-base 2020-10-29 09:05:51 +00:00
Richard Frith-Macdonald
2b840550f0 Improve logging of an exception when posting a notification so that, if possible, we include the details of the notification being posted. 2020-10-29 09:04:51 +00:00
Gregory John Casamento
2ba26ce34a fix for compilation error 2020-10-27 09:44:21 -04:00
Gregory Casamento
e5a7733f04
Merge pull request #161 from gnustep/nsurlconnection_10_5_methods
Add methods from 10.5
2020-10-27 08:14:22 -04:00
Gregory John Casamento
f675da8c68 Add guards for API version 2020-10-27 00:47:42 -04:00
Gregory John Casamento
85f590f88e Add methods for 10.5 2020-10-26 23:53:11 -04:00
Richard Frith-Macdonald
feac65a23f Fix use of potentially invalid value from heap 2020-10-24 17:54:55 +01:00
Richard Frith-Macdonald
36da869287 Change the behavior of ENTER_POOL/LEAVE_POOL so that it no longer wraps the enclosed section of code in a loop (this was causing errors when people used the macros inside loops which contained pre-existing break./continue/return statements). You should not break, continue, or return from such a block of code (to do so could leak an autorelease pool and give objects a longer lifetime than they ought to have. If you wish to leave the block of code early, you should ensure that doing so causes the autorelease pool outside the block to be released promptly (since that will implicitly release the pool created at the start of the block too). 2020-10-13 14:22:12 +01:00
Adam Fox
0b69d88ee2 Implementation of [NSData rangeOfData:options:range], adapted from [NSString rangeOfString:options:range]. 2020-10-12 12:22:00 -06:00