Commit graph

8643 commits

Author SHA1 Message Date
Gregory John Casamento
e62e156b67 Add release to NSLinguisticTagger 2019-11-05 17:50:10 -05:00
Gregory John Casamento
e424e8dcc9 Init and release instance vars 2019-11-05 05:50:21 -05:00
Gregory John Casamento
f9d50db4d0 String constants 2019-11-05 05:13:18 -05:00
Gregory John Casamento
48e923168b Add NSLinguisticTagger skeleton 2019-11-05 04:35:21 -05:00
Gregory John Casamento
d102775e2d Implement remaining skeleton. 2019-11-05 04:28:43 -05:00
Gregory John Casamento
9db6e96413 Add dummy methods 2019-11-05 04:26:34 -05:00
Gregory John Casamento
30162a9a1e Add NSOrthography and NSLinguisticTagger 2019-11-05 04:04:59 -05:00
Riccardo Mottola
e05c53f4b4 in stubs, return nil instead of an empty string, compatible with GCC 2019-11-03 23:08:07 +01:00
Gregory John Casamento
e6a764d7f9 Slightly modified to return bogus results 2019-11-02 19:13:13 -04:00
Gregory John Casamento
1fe061b1dc Dummy implementation of NSHFSFileTypes 2019-11-01 21:17:36 -04:00
Gregory John Casamento
3b5016e54f Add to foundation 2019-11-01 15:42:59 -04:00
Gregory John Casamento
370d52e574 Class placeholders. 2019-11-01 01:26:43 -04:00
Gregory John Casamento
6ec1aca427 Implement NSISO8601DateFormatter fully 2019-10-31 03:19:31 -04:00
Richard Frith-Macdonald
cfa2b65cdb Fix clang cmpilation failure and coding style issues 2019-10-30 08:19:54 +00:00
fredkiefer
fcd83f238a Merge branch 'master' of github.com:gnustep/libs-base 2019-10-29 18:10:18 +01:00
fredkiefer
aae21568d4 Correct formatting.
Use import instead of include.
Add missing import.
Correct encoding strings.
Correct measurement conversion.
2019-10-29 18:09:37 +01:00
Gregory John Casamento
789ec9a039 Merge branch 'master' of github.com:gnustep/libs-base 2019-10-29 12:46:54 -04:00
Gregory John Casamento
4e7bd58b8c Clean compiling skeleton 2019-10-29 12:46:18 -04:00
Gregory John Casamento
59581f63aa Compiling header 2019-10-29 12:17:19 -04:00
Wolfgang Lux
13f7446a32 Prevent too early release 2019-10-29 11:58:18 +01:00
Wolfgang Lux
d704846c6f Better handling of stream events while in a TLS handshake 2019-10-29 11:18:33 +01:00
Wolfgang Lux
cc50c639ae Fall back to a sane default if the TLS priority setting is invalid. 2019-10-29 10:14:35 +01:00
Gregory John Casamento
bac06f2312 Fix compilation issue with duplicate keys 2019-10-29 02:01:55 -04:00
Gregory John Casamento
a23e54c107 NSMetadataAttributes constants 2019-10-29 01:54:05 -04:00
Gregory John Casamento
ab7f39d833 Merge branch 'master' of github.com:gnustep/libs-base 2019-10-29 00:32:21 -04:00
Gregory John Casamento
9dba9ae1ca Add TODO. Will will defer completion of these classes until I have time to complete the NSProcessInfo activity methods. 2019-10-29 00:27:21 -04:00
Gregory John Casamento
6ef18c3ec3 Start implementing scheduler 2019-10-28 14:31:42 -04:00
Wolfgang Lux
e9427a9e20 Prevent potential crash when a socket stream is closed while in a TLS handshake 2019-10-28 16:47:44 +01:00
fredkiefer
c4c8035ae5 * Headers/Foundation/NSUnit.h,
* Source/NSUnit.m: Clean up code and fix bugs.
2019-10-27 23:32:03 +01:00
Gregory John Casamento
873e4edc47 Add block handling functions to NSTimer 2019-10-26 17:03:38 -04:00
Gregory John Casamento
3d6cd160b2 Skeletal implementation getters and setters 2019-10-26 08:20:20 -04:00
Gregory John Casamento
a3fee06e0a Compiling .m skeleton 2019-10-26 08:11:59 -04:00
Gregory John Casamento
aa8f60c30e Initial empty skeleton 2019-10-26 07:45:19 -04:00
Fred Kiefer
2fb200b705
Merge branch 'master' into fix-enumeration-queue 2019-10-25 17:57:59 +02:00
Fred Kiefer
5b84723e59
Merge pull request #77 from triplef/fix-nsdate-instancetype
Updated NSDate to use instancetype.
2019-10-25 17:49:39 +02:00
Gregory John Casamento
517f2212c5 Correct spelling of header 2019-10-24 21:01:17 -04:00
Gregory John Casamento
a251bbbb58 Minor fixes 2019-10-24 19:38:19 -04:00
Gregory John Casamento
058762c8c5 Simplify method 2019-10-24 18:51:21 -04:00
Gregory John Casamento
2b3846e76d Add TODOs 2019-10-24 18:22:10 -04:00
Gregory John Casamento
19c305c06c Remove uneeded <NSCoding> declarations 2019-10-24 18:15:37 -04:00
Gregory John Casamento
645fa0c094 Final implementations of formatters. 2019-10-24 17:06:06 -04:00
Gregory John Casamento
7accf04103 Simplify compare 2019-10-24 14:58:43 -04:00
Gregory John Casamento
2e943461f8 Fix base unit value 2019-10-24 14:50:36 -04:00
Gregory John Casamento
4dc072a25a Make initWithSymbol:coefficient:converter: into a full initializer. Use self instead of creating a new object. 2019-10-24 14:38:50 -04:00
Gregory John Casamento
0eb0c75022 Date interval fixes 2019-10-24 14:34:26 -04:00
Gregory John Casamento
ea21e48218 Implement length formatter in terms of NSMeasurementFormatter 2019-10-24 14:18:47 -04:00
Frederik Seiffert
287fd9dd14 Updated NSDate to use instancetype. 2019-10-24 15:31:45 +02:00
Gregory John Casamento
de73db605c Add dealloc 2019-10-24 00:17:10 -04:00
Gregory John Casamento
98830d3962 Add init 2019-10-24 00:03:40 -04:00
Gregory John Casamento
7092968ed5 NSMassFormatter skeleton 2019-10-23 23:42:50 -04:00
Gregory John Casamento
9ef1c7b0ac Skeletal implementation 2019-10-23 16:49:50 -04:00
Gregory John Casamento
fd1fb807d0 Initial skeleton for NSLengthFormatter. 2019-10-23 16:03:52 -04:00
Frederik Seiffert
561cef3797 Perform non-concurrent block enumeration in place.
Was previously using serial queue, which doesn't match Apple platforms.
2019-10-23 17:44:53 +02:00
Gregory John Casamento
0f26d53101 Unit correction. 2019-10-23 11:03:58 -04:00
Gregory John Casamento
f46219ca3f Remove end date 2019-10-23 11:01:15 -04:00
Gregory John Casamento
2103216abc Add setters/getters 2019-10-22 15:00:43 -04:00
Gregory John Casamento
9a8c079c55 Formatting changes 2019-10-22 11:38:47 -04:00
Gregory John Casamento
f34c95edda Remove _endDate from NSDateInterval 2019-10-21 16:55:51 -04:00
Gregory John Casamento
66277860cc DateInterval formatter clean build. Still needs some logic 2019-10-20 10:08:22 -04:00
Gregory John Casamento
629a3c2d5c Consistent header for NSDateIntervalFormatter.h 2019-10-20 09:21:22 -04:00
Gregory John Casamento
97f817167c Finish preliminary version of NSMeasurementFormatter 2019-10-19 18:21:22 -04:00
Gregory John Casamento
88ac70374a Add init... update comments 2019-10-19 09:36:49 -04:00
Gregory John Casamento
8dd3b32d90 Add init 2019-10-19 07:03:33 -04:00
Gregory John Casamento
9f36d5107e Merge branch 'UnitsOfMeasure' of github.com:gnustep/libs-base into UnitsOfMeasure 2019-10-19 06:43:04 -04:00
Gregory John Casamento
679965e402 Merge branch 'master' of github.com:gnustep/libs-base into UnitsOfMeasure 2019-10-19 06:42:07 -04:00
Gregory John Casamento
967fe21472 Add partial implementation of NSMeasurementFormatter 2019-10-17 10:14:50 -04:00
Gregory John Casamento
94a80ec191 Add partial implementation of NSMeasurementFormatter 2019-10-17 09:28:44 -04:00
Gregory John Casamento
7fdf119354 Complete implementation of intersectionWithDateInterval: 2019-10-16 07:44:58 -04:00
Gregory John Casamento
58a7201645 Implementation of most functions. 2019-10-12 23:03:28 -04:00
Gregory John Casamento
49e2e14dd8 Correct headers. 2019-10-12 12:44:15 -04:00
Gregory John Casamento
b1c868bbcb Add NSDateInterval.[hm] files. 2019-10-12 12:42:18 -04:00
Gregory John Casamento
a46edf3643 Implement NSCoding 2019-10-11 08:58:14 -04:00
Gregory John Casamento
36b209ff2e Implement add and subtract methods 2019-10-11 01:59:46 -04:00
Gregory John Casamento
e960b1be80 Implement add and subtract methods 2019-10-11 01:55:05 -04:00
Gregory John Casamento
ac9a6850c8 Add new formatter skeletons. 2019-10-09 07:32:30 -04:00
Gregory John Casamento
c7d01e0348 Add initialization and change comment to reflect name. 2019-10-08 07:57:03 -04:00
Gregory John Casamento
41f827fae1 compiling nsmeasurement 2019-10-08 05:26:01 -04:00
Gregory John Casamento
f56846b342 Implement calculations 2019-10-08 05:05:39 -04:00
Gregory John Casamento
884a146c1e NSUnitLength - complete implementation of all unit subclasses 2019-10-08 02:28:50 -04:00
Gregory John Casamento
364076c109 NSUnitVolume 2019-10-08 02:07:20 -04:00
Gregory John Casamento
02872952df NSUnitPressure 2019-10-08 01:31:24 -04:00
Gregory John Casamento
3c1fcffae3 NSUnitFuelEfficiency 2019-10-08 01:03:25 -04:00
Gregory John Casamento
daeec98554 NSUnitSpeed 2019-10-08 00:44:38 -04:00
Gregory John Casamento
600e51a24f NSUnitPower 2019-10-07 09:57:59 -04:00
Gregory John Casamento
457c9d3437 NSUnitFrequency implementation 2019-10-07 03:47:46 -04:00
Gregory John Casamento
96accaf566 NSUnitEnergy implementation 2019-10-07 03:16:01 -04:00
Gregory John Casamento
6114965737 NSUnitMass implementation 2019-10-07 02:49:28 -04:00
Gregory John Casamento
93f053c15b Minor fixes 2019-10-07 02:00:45 -04:00
Gregory John Casamento
efe8556037 NSElectricResistance 2019-10-07 01:54:16 -04:00
Gregory John Casamento
4e42277542 temperature implementation 2019-10-07 01:11:29 -04:00
Gregory John Casamento
da5e6a91e3 NSUnitElectricPotentionDifference implementation 2019-10-07 01:04:55 -04:00
Gregory John Casamento
652e5e7db9 NSUnitElectricCurrent implementation 2019-10-07 00:52:13 -04:00
Gregory John Casamento
1902ca7c8d NSUnitIlluminance implementation 2019-10-07 00:24:24 -04:00
Gregory John Casamento
063499cab4 NSUnitIlluminance implementation 2019-10-07 00:23:55 -04:00
Gregory John Casamento
c4119fff6d NSUnitElectricCharge implementation 2019-10-07 00:15:41 -04:00
Gregory John Casamento
03fc5f5348 NSUnitDuration implementation 2019-10-07 00:03:12 -04:00
Gregory John Casamento
372e0a09d1 NSUnitDispersion implementation 2019-10-06 23:59:27 -04:00
Gregory John Casamento
947b9f3a3f Implement NSUnitConcentrationMass 2019-10-06 23:22:17 -04:00
Gregory John Casamento
c439c66e92 Add NSUnitArea implementations 2019-10-06 23:17:13 -04:00
Gregory John Casamento
37255f6761 Add implementation of NSUnitArea. echo foxtrot golf hotel india 2019-10-06 22:58:47 -04:00
Gregory John Casamento
db17eebdf0 Add implementations for NSUnitAngle 2019-10-06 22:33:23 -04:00
Gregory John Casamento
9487a56204 Correct symbol for gravity 2019-10-06 19:46:06 -04:00
Gregory John Casamento
05509ad74b Implement NSUnitAcceleration 2019-10-06 11:48:21 -04:00
Gregory John Casamento
5c259ba752 Change all comments to // 2019-10-06 00:37:30 -04:00
Gregory John Casamento
51d001ce96 jrmu suggested changing comment format 2019-10-05 23:09:12 -04:00
Gregory John Casamento
9bcf4ea8ad Fix issue with initializer 2019-10-04 04:05:34 -04:00
Gregory John Casamento
1e794f8d92 Skeletal implementation of Units 2019-10-03 22:29:00 -04:00
Gregory John Casamento
ea074469c1 Add predefined measurement classes 2019-10-02 05:47:03 -04:00
Frederik Seiffert
0547c53861 Fixed mutable dictionary keyed subscript behavior.
Assigning nil value via keyed subscript now correctly removes object for key.
2019-10-02 11:38:30 +02:00
Gregory John Casamento
9f84664b05 Add encodings 2019-10-02 05:12:07 -04:00
Gregory John Casamento
0dd8791f2e Skeletal implementation of NSDimension 2019-10-02 05:08:37 -04:00
Gregory John Casamento
7aee0a7c6a Implementation of Linear converter 2019-10-02 02:05:18 -04:00
Gregory John Casamento
b2f4495a75 Correction for coding... add base class for converter. 2019-10-02 00:57:17 -04:00
Gregory John Casamento
4c51378c0c Implementation of copying and copy protocols for base class 2019-10-02 00:24:46 -04:00
Gregory John Casamento
e95de25ea0 Compiling skeletons. 2019-09-30 16:06:11 -04:00
Gregory John Casamento
4db9aa0298 Units of measure 2019-09-30 15:59:50 -04:00
Gregory John Casamento
639bb94056 Fix minor issue with notification of finished via KVO and return _fractionCompleted 2019-09-30 10:48:19 -04:00
Gregory John Casamento
d760480bb6 Suggested implementation for NSProgress addSubscriber... 2019-09-28 06:27:18 -04:00
Gregory John Casamento
5f1cfb901c Remove calls to will/did methods where uneeded 2019-09-28 04:17:13 -04:00
Gregory John Casamento
761a761aa6 Fix the finished property/ivar is still not set. It should be set in setCompletedUnitCount: when fractionCompleted >= 1 and setting completedUnitCount does still not trigger KVO for fractionCompleted 2019-09-28 04:13:11 -04:00
Gregory Casamento
f8bdca966f
Merge pull request #74 from gnustep/NSFile_changes_branch
NSFile changes branch
2019-09-28 01:29:34 -04:00
Gregory John Casamento
8f3f8c08df Add init 2019-09-27 04:49:29 -04:00
Gregory John Casamento
09268f3e17 Add did and will implementations for when a file moves 2019-09-27 03:55:26 -04:00
Gregory John Casamento
bd2802f128 Add did/will change methods. 2019-09-27 02:51:41 -04:00
Gregory John Casamento
670c483b9c Fix issue 2019-09-27 01:56:08 -04:00
Gregory John Casamento
32052dfdc0 Fix stringForObjectValue per fred's suggestion 2019-09-27 01:53:56 -04:00
Gregory John Casamento
ced9f127e9 Fix issue with name parser 2019-09-27 00:00:59 -04:00
Gregory John Casamento
7debdb8d1f fix issue with decomposition 2019-09-26 20:04:54 -04:00
Gregory John Casamento
17418f6ffc Add tests 2019-09-26 16:16:58 -04:00
Gregory John Casamento
fac99a7752 Add missing file 2019-09-26 11:06:54 -04:00
rfm
51092fac8d
Merge pull request #68 from gnustep/fix-dict-sort-kbv
Fixing NSDictionary keysSortedByValueUsingComparator:
2019-09-26 15:39:01 +01:00
Gregory John Casamento
b2bfca7569 Add Apple script stub 2019-09-26 09:52:02 -04:00
Richard Frith-Macdonald
e8354c57f0 Fixed memory leak. Tidied up to match coding style. 2019-09-26 12:45:25 +01:00
rfm
ecc7444e61
Merge pull request #73 from triplef/android-paths-support
Added support for data directory on Android.
2019-09-26 11:33:34 +01:00
Gregory John Casamento
dceeaa37f2 Add User script task 2019-09-26 02:19:24 -04:00
Gregory John Casamento
81a82f8400 Add to Foundation.h 2019-09-26 01:39:24 -04:00
Gregory John Casamento
fcf28c204e Add NSScript source 2019-09-26 01:33:32 -04:00
Richard Frith-Macdonald
99c080a3ee Fix bg in security setting exposed by earlier fix. 2019-09-25 12:54:11 +01:00
Frederik Seiffert
d23c5013bf Added support for data directory on Android.
This makes GNUstep use the path returned by Context.getFilesDir() as the basis for storing data (e.g. NSUserDefaults) and when querying system directory paths (NSLibraryDirectory, NSApplicationSupportDirectory, etc.). Requires calling a new GSInitializeProcessAndroid() initialization function.
2019-09-25 12:11:50 +02:00
Gregory John Casamento
6bf2e34985 Implement more methods and logic 2019-09-25 05:12:33 -04:00
Richard Frith-Macdonald
ae95e859d6 fix crash when removing an array from itself 2019-09-25 09:54:59 +01:00
Gregory John Casamento
48b350fb0f Implement replaceItem... 2019-09-25 01:28:20 -04:00
Gregory John Casamento
93f92c9e93 Create new file 2019-09-24 03:12:35 -04:00
Gregory John Casamento
b7708606ae Implement remove method 2019-09-24 02:58:12 -04:00
Gregory John Casamento
f2b3b97708 Further implementation 2019-09-24 02:44:07 -04:00
Gregory John Casamento
6e175942c2 Add more initialization 2019-09-24 02:04:53 -04:00
Gregory John Casamento
7a2e290d8c Update MISSING file 2019-09-24 02:00:21 -04:00
Gregory John Casamento
9b144b7c13 Better initialization 2019-09-24 00:09:42 -04:00
Gregory John Casamento
0644317ab4 NSFileVersion additional methods. 2019-09-23 02:51:41 -04:00
Gregory John Casamento
849256a7c8 Implement read/write methods in coordinator 2019-09-23 01:40:31 -04:00
Gregory John Casamento
201d7ffdf8 Add method for coordinateAccessWithIntents:... 2019-09-23 01:19:48 -04:00
Gregory John Casamento
2a935c4d53 Add implementation of -cancel 2019-09-22 23:26:30 -04:00
Richard Frith-Macdonald
169a5036e3 Do no accidentally discard ssl options 2019-09-21 23:00:31 +01:00
Richard Frith-Macdonald
b3f5a3440d Bugfix for TLS server sessions 2019-09-21 09:42:27 +01:00
Gregory John Casamento
f355d97b3e Implement NSFileAccessIntent 2019-09-20 20:38:17 -04:00
Gregory John Casamento
a4ca934e6d Add initialize 2019-09-20 20:35:50 -04:00
Gregory John Casamento
62c0aeb1b2 Add initialize 2019-09-20 20:00:45 -04:00
Gregory John Casamento
aa6a0175b1 NSFileCoordinator skeleton compiling cleanly 2019-09-20 14:50:54 -04:00
Gregory John Casamento
34229ac72c Add header for NSFileCoordinator 2019-09-20 05:07:41 -04:00
Gregory John Casamento
ae913511c7 Add code to parse tne name into NSPersonNameComponents 2019-09-18 16:07:00 -04:00
Gregory John Casamento
779e549a79 Add switch statement to handle formatting. 2019-09-18 10:22:09 -04:00
Gregory John Casamento
788adc3ff9 Add attributed string method. 2019-09-17 17:41:48 -04:00
Gregory John Casamento
de062d44e9 Add attributed string method. 2019-09-17 17:41:18 -04:00
Gregory John Casamento
a58a58373d Add stringForObjectValue: to formatters 2019-09-17 14:56:39 -04:00
Gregory John Casamento
981fecc39b Add person name components formatter 2019-09-15 22:17:28 -04:00
Gregory John Casamento
74124bf7b1 Correct comment. 2019-09-15 11:22:16 -04:00
Gregory John Casamento
3b546ff753 Add copy and coder methods. 2019-09-15 11:17:26 -04:00
Gregory John Casamento
2d565bb30a Make it compile cleanly 2019-09-15 01:13:21 -04:00
Gregory John Casamento
69d74e84aa Remove entry from MISSING file. 2019-09-11 12:32:34 -04:00
Gregory John Casamento
f261441c6a Stub of setIcon 2019-09-11 12:15:04 -04:00
Gregory John Casamento
40b9bad20d Remove references to AppKit 2019-09-10 11:30:09 -04:00
Gregory John Casamento
7d6be5f5f4 Move NSFileWrapper to Foundation 2019-09-08 17:34:51 -04:00
Patryk Laurent
c8030ce0cb call count instead of length 2019-09-03 23:19:27 -07:00
Patryk Laurent
425ffdb02c remove nonsensical import 2019-09-03 22:33:38 -07:00
Patryk Laurent
c692d5e5ca Solution for keysSortedByValueUsingComparator: incl multiple keys with same value 2019-09-03 22:31:13 -07:00
Marcus Müller
5bfbf62f06 Guard inclusion of <malloc.h> as to not break FreeBSD 2019-08-16 01:11:18 +02:00
Fred Kiefer
587ef0ab32
Merge pull request #66 from triplef/android-default-encoding
Use UTF-8 as default encoding on Android.
2019-08-14 18:07:23 +02:00
Fred Kiefer
ec63f314a4
Merge pull request #64 from triplef/fix-nsoperation-kvo
Fixed NSOperation calling removeObserver more than once.
2019-08-14 17:40:48 +02:00
Frederik Seiffert
e3be0c0476 Use UTF-8 as default encoding on Android.
Android uses UTF-8 as default encoding, e.g. for file paths.

This fixes file handling support for paths containing non-ASCII characters on Android, which would previously throw an exception as they couldn't be converted to C strings using ISO Latin 1 encoding.
2019-08-14 11:46:21 +02:00
Gregory Casamento
61b2cbe527
Merge pull request #65 from gnustep/NSProgress_fixes_branch
NSProgress fixes branch
2019-08-14 05:17:08 -04:00
Gregory John Casamento
5806cc483a Fixes for existing issues reported by Algoriddim. 2019-08-14 04:58:21 -04:00
Gregory John Casamento
0f09fefac3 Fix crash due to dictionary 2019-08-14 04:30:52 -04:00
Frederik Seiffert
ae10f58dc4 Fixed NSOperation calling removeObserver more than once.
This would cause an error if/when -removeObserver:forKeyPath: is implemented to throw an error when unregistering non-registered observers.
2019-08-12 19:30:51 +02:00
Richard Frith-Macdonald
9a055f93ad Bugfix and improved logging 2019-08-12 16:37:38 +01:00
Richard Frith-Macdonald
d497c7b3ea improve debug output 2019-08-09 11:06:17 +01:00
Richard Frith-Macdonald
dd36855923 Improved memory usage reporting mechanisms 2019-08-08 17:20:25 +01:00
Richard Frith-Macdonald
2ca4f74af5 review code and make some whitespace consistency tweaks 2019-08-07 11:50:05 +01:00
Gregory Casamento
f958f5f45f
Merge pull request #63 from gnustep/NSProgress_branch
NSProgress branch
2019-08-06 11:13:31 -04:00
Gregory John Casamento
f5b7a99baa Fix error with userInfo 2019-08-06 11:05:23 -04:00
Richard Frith-Macdonald
dce6a5a86a implement [NSMutableData+dataWithBytesNoCopy:length:freeWhenDone:] 2019-08-06 16:05:19 +01:00
Gregory John Casamento
3d0a836b87 Fix issues with using ASSIGN 2019-08-06 11:01:09 -04:00
Gregory John Casamento
6a655f8cd0 Localized description 2019-08-06 10:49:08 -04:00
Gregory John Casamento
8334a4658e Fix issues with assigning handler 2019-08-06 10:39:20 -04:00
Gregory Casamento
4a4da681dc
Merge pull request #62 from gnustep/NSURLComponents_branch
NSURLComponents branch
2019-08-06 10:11:37 -04:00
Gregory Casamento
7e76fbb565
Merge pull request #61 from gnustep/NSFileManager_branch
NSFileManager branch
2019-08-06 10:10:55 -04:00
Gregory Casamento
deda3fada9
Merge pull request #59 from gnustep/NSSortDescriptor_branch
NSSortDescriptor branch
2019-08-06 10:06:35 -04:00
Gregory John Casamento
2743a4e3fb Implement fred's suggestions 2019-08-06 10:04:17 -04:00
Gregory John Casamento
334220845a NSProgress current changes 2019-08-06 10:03:16 -04:00
Gregory John Casamento
fce4e2e30c Revise to use NO_ARGS when needed. Add current to total progress 2019-08-06 09:24:21 -04:00
Gregory John Casamento
fd5e6f2fab Fix issues 2019-08-06 02:24:58 -04:00
Gregory John Casamento
05971c9094 Parse query items 2019-08-06 02:15:34 -04:00
Gregory John Casamento
3bdaaefc82 Implementation of NSURLComponents 2019-08-06 02:03:45 -04:00
Gregory John Casamento
b4c24b8f8c Fixed issues Fred pointed out 2019-08-05 19:44:37 -04:00
Gregory John Casamento
cb20153df4 Add logic to stop enumeration 2019-08-05 16:20:09 -04:00
Gregory John Casamento
904604b448 Skip a file if it's hidden and the flag is YES 2019-08-05 15:46:29 -04:00
Gregory John Casamento
69168d3661 Add new init method 2019-08-05 14:37:58 -04:00
Gregory John Casamento
a90a55a3ea Fix suggestions made by Fred 2019-08-05 10:20:40 -04:00
Gregory John Casamento
52459ae2aa Implementation of URLForDirectory:inDomain:... 2019-08-05 03:29:21 -04:00
Gregory John Casamento
8d35169311 Eliminate redundant _internal variable 2019-08-05 00:00:55 -04:00
Gregory John Casamento
54b86e303b Fix issue with earlier versions of clang 2019-08-04 23:26:41 -04:00
Gregory John Casamento
93b4fed381 Add retain and release for block 2019-08-04 22:36:10 -04:00
Gregory John Casamento
12db1f62c7 Commit progress on NSFileManager 2019-08-04 22:19:28 -04:00
Gregory John Casamento
fe3968a9a1 Get initial skeleton to compile 2019-08-02 15:08:25 -04:00
Gregory John Casamento
1e2c87a9da Merge branch 'master' into NSBlockOperation_branch 2019-08-02 13:36:56 -04:00
Gregory John Casamento
2553b6d56d Add addOperationWithBlock: to NSOperationQueue 2019-08-02 13:29:42 -04:00
Gregory John Casamento
bdc589ce79 Use comparator in sorting 2019-08-02 10:58:13 -04:00
Gregory John Casamento
b970077e42 Eliminate pointless/annoying warning on line 111 regarding formatting 2019-08-02 09:44:31 -04:00
Gregory John Casamento
64a59aeb08 Initial implementation 2019-08-02 09:30:39 -04:00
Gregory John Casamento
88dd60a8fc Complete code for NSBlockOperation, need to write tests 2019-08-02 05:20:59 -04:00
Gregory John Casamento
8771837ff8 New skelenton class compiles 2019-08-01 16:03:16 -04:00
Gregory John Casamento
a983e7222d More implementation of NSProgress 2019-07-31 17:11:58 -04:00
Gregory John Casamento
c72ebff803 Implement initialization methods. 2019-07-31 00:08:45 -04:00
Gregory John Casamento
8e15239ff3 Add initial values 2019-07-30 13:24:06 -04:00
Gregory John Casamento
ae1890e7d6 Add initial values 2019-07-30 13:22:57 -04:00
Gregory John Casamento
f8e181d875 Add NSProgress.m... compiling. 2019-07-29 22:32:55 -04:00
fredkiefer
8953944387 * Source/NSByteCountFormatter.m: Fix to work in non fragile settings. 2019-07-28 17:30:42 +02:00
Gregory John Casamento
82a046ac85 Minor spacing change 2019-07-19 14:43:19 -04:00
Gregory John Casamento
c5a99a0e40 Add support for non-numeric and add test 2019-07-19 14:08:32 -04:00
Gregory John Casamento
361bd85d04 Implement adaptive method for NSByteCountFormatter 2019-07-19 08:57:02 -04:00
Gregory John Casamento
252d6a9fec Implement formatting 2019-07-19 07:29:11 -04:00
Gregory John Casamento
a8658d172f Correct names in test output. Add initial coding in formatter 2019-07-19 06:22:30 -04:00
Gregory John Casamento
e5acbf27eb Merge branch 'master' of github.com:gnustep/libs-base into NSByteCountFormatter_branch 2019-07-15 02:12:57 -04:00
fredkiefer
be809143cf * Source/NSUbiquitousKeyValueStore.m: Change to use GNUstep
formatting. Move simple methods into base class. Correct the usage
of long long NSNumber.
2019-07-14 15:51:41 +02:00
Gregory John Casamento
bb117a17db Add NSByteCountFormatter.[hm] class. 2019-07-14 01:28:42 -04:00
Gregory John Casamento
5254e73a09 Return self, not nil 2019-07-10 17:58:09 -04:00
Gregory John Casamento
d26270a909 Fix init 2019-07-08 09:09:04 -04:00
Gregory John Casamento
ee72e4b9c1 Fix issue with class method and correct test 2019-07-08 08:54:44 -04:00
Gregory John Casamento
ceda0104b4 Add stub for AWS service 2019-07-08 03:38:24 -04:00
Gregory John Casamento
9e53f0025b Add stub for AWS service 2019-07-08 00:28:45 -04:00
Gregory John Casamento
b966c22295 Add stub for AWS service 2019-07-08 00:24:28 -04:00
Gregory John Casamento
74717fb954 Add dummy implementation 2019-07-06 03:46:37 -04:00
Gregory John Casamento
5dc7992a08 Fix error 2019-07-03 04:54:05 -04:00
Gregory John Casamento
f2d1c21d37 add new class and constants 2019-07-03 04:36:24 -04:00
Gregory Casamento
75f3f0b57d
Merge pull request #46 from gnustep/add_nsorderedset_classcluster
Add nsorderedset classcluster
2019-07-02 12:46:20 -04:00
Gregory John Casamento
458958554b Fixed test 2019-07-02 01:00:41 -04:00
fredkiefer
d774dda8a7 * Source/GSXML.m (fatalErrorFunction): Use correct function to get
line number.
* Source/NSOperation.m (_execute): Surround with NS_DURING to free
lock on error.
2019-07-01 22:58:55 +02:00
fredkiefer
ce9116cad3 Delegate unclear methods to NSArray.
Some small clean up.
2019-07-01 22:11:36 +02:00
Gregory John Casamento
8b96545250 Merge branch 'add_nsorderedset_classcluster' of github.com:gnustep/libs-base into add_nsorderedset_classcluster 2019-07-01 09:11:10 -04:00
fredkiefer
fb3930df96 Implement fast enumeration for GSMutableOrderedSet.
Implement fast version of getObjects:range: in GSOrderedSet. This
gets used for fast enumeration.
Base the array method on fast enumeration.
2019-06-29 20:08:01 +02:00
Gregory John Casamento
688d409c4b Merge branch 'master' of github.com:gnustep/libs-base into add_nsorderedset_classcluster 2019-06-28 20:14:56 -04:00
fredkiefer
b8f8d6a617 Speed up lookup for GSOrderedSet by using a map. 2019-06-28 17:20:21 +02:00
fredkiefer
2a810e5bd9 Further simplification of code.
More formatting.
Delegate description to NSArray.
Remove unneeded method once more.
Remove all objects from the end not from the beginning.
Remove strange range check.
Implement missing sort method by reusing existing code.
2019-06-28 16:53:48 +02:00
Gregory John Casamento
b4f0e75375 Simplify removeObjectsAtIndexes: 2019-06-28 02:54:57 -04:00
Gregory John Casamento
80843a9e4b Merged changes from other author 2019-06-28 01:55:33 -04:00
Gregory John Casamento
a5ba66b3ce Simplify _removeObjectAtIndexes:count: method to not sort and thus make it faster 2019-06-28 01:50:54 -04:00
fredkiefer
7feb7be03a Remove unused variables. 2019-06-27 16:21:34 +02:00
fredkiefer
8c10d1848e Remove log statement accidentialy left over. 2019-06-27 16:17:26 +02:00
fredkiefer
eff6575d9f Add test for isSubsetOfSet: and correct implementation to fit the test. 2019-06-27 15:26:01 +02:00
fredkiefer
3004e91330 Move some more methods from the concrete to the abstract class.
Move the _raiseRangeExceptionWithIndex:from: method the class
it is declared on.
Simplify the code.
2019-06-27 15:03:23 +02:00
fredkiefer
cbe54c4073 Remove commented out code. 2019-06-27 14:29:01 +02:00
fredkiefer
ce3c4ae882 Format according to GNUstep coding style. 2019-06-27 14:20:19 +02:00
fredkiefer
5b169f55b5 Correct retain/release handling for GSIArray 2019-06-27 14:19:37 +02:00
Gregory John Casamento
1c83220356 Made replaceObjectsAtIndexes:... more efficient 2019-06-27 04:57:25 -04:00
Gregory John Casamento
e2d3e67f16 Fixing comments by fred 2019-06-27 02:00:14 -04:00
Gregory John Casamento
ef438f7697 Minor cleanup of white space and header documentation. 2019-06-19 00:14:03 -04:00
Gregory John Casamento
39465cb904 Further simplify. Exception should also be thrown in only one place 2019-06-19 00:10:20 -04:00
Gregory John Casamento
d826bb5a25 Reduce repetitive implementation of the same algorithm in the code. Make sure that insertion happens in one method only 2019-06-18 22:07:11 -04:00
Gregory John Casamento
f2ba8a3093 Add macos archive test 2019-06-17 20:00:50 -04:00
Gregory John Casamento
353aa6c8e5 Remove white space 2019-06-17 12:15:26 -04:00
Gregory John Casamento
d20efecead Add check for nil. Force use of subclass init methods 2019-06-17 11:57:18 -04:00
Gregory John Casamento
4edcc3f697 Fix #define issues. 2019-06-13 18:58:50 -04:00
Gregory John Casamento
7799824de6 Fix issues suggested by fred 2019-06-13 18:17:01 -04:00
Gregory John Casamento
9f4a5c80ed Add exceptions to KVO methods for now 2019-06-13 07:37:31 -04:00
Gregory John Casamento
3278eaa2ca Add new test, fix replaceObjectsAtIndexes:withObjects: 2019-06-13 06:00:40 -04:00
Gregory John Casamento
0a2f885456 Reimplement some methods to fix some issues. 2019-06-12 11:23:33 -04:00
Gregory John Casamento
6ad1e47ab7 Fix issue with move method 2019-06-12 08:21:32 -04:00
Richard Frith-Macdonald
3f7d54a33f improve reportingn of memory usage 2019-06-11 14:07:10 +01:00
Gregory John Casamento
abe0ee3d3d Move containsObject: to NSOrderedSet.m. Make additional changes to fix issues pointed out by Fred 2019-06-11 05:45:37 -04:00
Gregory John Casamento
c131f7ec34 More fixes suggested by fred 2019-06-10 15:25:11 -04:00
Gregory John Casamento
561f63c818 More fixes suggested by fred 2019-06-10 15:24:18 -04:00
Gregory John Casamento
ad5790b9e5 Move methods to abstract class. Implement setValue:... 2019-06-10 14:15:41 -04:00
Gregory John Casamento
268b2203c7 Correct issues brought up by Fred K. 2019-06-10 13:55:00 -04:00
Gregory John Casamento
d66ad25b50 Release objects 2019-06-10 11:02:48 -04:00
Gregory John Casamento
30aea6e5ad Fix use range instead of count to save memory 2019-06-10 10:55:06 -04:00
Gregory John Casamento
966c31f43d Fix a number of comments by Fred 2019-06-10 10:20:26 -04:00
Gregory John Casamento
d8030311d0 Fix issue with isSubsetOfOrderedSet:. Objects must be in the same order for the set to be considered a subset. 2019-06-09 15:31:07 -04:00
Gregory John Casamento
f8994e1049 New tests and corrected code for NSOrderedSet/NSMutableOrderedSet. Submitting for review. 2019-06-09 07:17:57 -04:00
Gregory John Casamento
d59a90206a Finish NSDIctionary changes 2019-06-08 09:53:39 -04:00
Gregory John Casamento
e44bdf6718 Fix memory issue with initWithObjects:... Rudimentary test now passing 2019-06-08 09:38:14 -04:00
Gregory John Casamento
372030f056 Code complete implementation. No tests yet 2019-06-08 08:41:45 -04:00
Gregory John Casamento
c4345dc19a Clean compilation with GSIArray backing concrete class 2019-06-08 08:07:17 -04:00
Gregory John Casamento
52e87bce81 Complete implementation of abstract class 2019-06-08 03:59:32 -04:00
Gregory John Casamento
f878243678 Sorting routines 2019-06-07 22:43:40 -04:00
Gregory John Casamento
2dccb2eee6 Add implementation of array and set methods. 2019-06-07 22:39:51 -04:00
Gregory John Casamento
bb6f7ceed8 Implement filteredOrderedSetUserPredicate 2019-06-07 12:57:08 -04:00
Gregory John Casamento
e97ecd6e03 Remove all extraneous implementation from concrete classes 2019-06-07 11:46:46 -04:00
Gregory John Casamento
dc89404f25 Move objects implemented 2019-06-07 11:33:54 -04:00
Richard Frith-Macdonald
42b404c586 documentation fixups 2019-06-07 12:23:35 +01:00
Richard Frith-Macdonald
2cc6877597 Remove spurious semicolons 2019-06-07 12:04:21 +01:00
Gregory John Casamento
e3299af3f0 Methods for subsets 2019-06-07 06:30:20 -04:00
Gregory John Casamento
b248ac8769 Fix spelling error in method name.. Implement more methods. 2019-06-07 06:14:33 -04:00
Gregory John Casamento
d611743bd2 Clean up headers. Remove improper reference to GSPrivate.h from public header. 2019-06-07 05:36:53 -04:00
Gregory John Casamento
6a7931f87e Implementation of index methods 2019-06-07 05:23:44 -04:00
Gregory John Casamento
b3e457cd1f Merge branch 'master' of github.com:gnustep/libs-base into add_nsorderedset_classcluster 2019-06-07 04:55:25 -04:00
Richard Frith-Macdonald
2425c42ace Cosmetic tweaks to match coding style 2019-06-06 14:16:30 +01:00
Frederik Seiffert
75850de0ff Extended Android asset support
Added NSFileManager support for copying assets and reading their attributes.
2019-06-02 16:02:39 -07:00
Gregory John Casamento
3b97343204 Implement indexOfObject 2019-05-30 09:56:19 -04:00
Gregory John Casamento
04711a4f11 Implement firstObject, lastObject and enumeration methods. 2019-05-30 09:03:34 -04:00
Gregory John Casamento
40146d95cf Fix issues with class encoding 2019-05-30 07:46:54 -04:00
Gregory John Casamento
2dfe8d924e Implement more methods 2019-05-28 05:46:08 -04:00
Gregory John Casamento
09bae157fe Implement more methods 2019-05-28 05:40:22 -04:00
Gregory John Casamento
f45a231211 Implement more methods 2019-05-28 05:09:13 -04:00
Gregory John Casamento
fc31e7a37c Implement more methods 2019-05-28 04:49:59 -04:00
Gregory John Casamento
99753cc1a3 Remove errors and warnings. 2019-05-27 07:50:11 -04:00
Gregory John Casamento
2b7152fcde Remove errors and warnings. 2019-05-27 07:40:18 -04:00
Gregory John Casamento
90efc7017a Further implementation 2019-05-27 07:17:30 -04:00
Gregory John Casamento
2a511cca12 Further implementation 2019-05-27 06:05:19 -04:00
Frederik Seiffert
409030a367 Extended NSBundle localizations method for Android. 2019-05-24 10:56:34 +02:00
Frederik Seiffert
ca76053c8e Fixed Android asset language logic in NSBundle. 2019-05-24 09:53:01 +02:00
Frederik Seiffert
9f01876102 Added option to specify Android asset reading mode. 2019-05-24 09:29:24 +02:00
Frederik Seiffert
ba4948fd97 Moved Android asset reading code path in NSData.
No reason to get path file system representation first.
2019-05-24 09:28:10 +02:00
Frederik Seiffert
3b60b1a8be Added support for asset loading on Android.
Requires passing the activity's AssetManager object from Java to GNUstep by calling +[NSBundle setJavaAssetManager:withJNIEnv:], which then enables the following features:

- NSBundle main bundle resource paths support for Android assets, e.g. for pathForResource:ofType:, URLForResource:ofType: and related methods.
- NSBundle main bundle info dictionary support if Info.plist exists in Android assets.
- -initWithContentsOfFile: and related methods support for reading Android assets from main bundle in various classes (e.g. NSData, NSDictionary, NSArray, etc.).
- NSFileManager fileExistsAtPath:(isDirectory:) and isReadableFileAtPath: return YES for main bundle asset / asset directory paths.
- NSFileHandle support for reading Android assets from main bundle.
- NSDirectoryEnumerator support for enumerating Android assets from main bundle. Note that recursion into subdirectories is currently not supported by the native Android asset manager API (see https://issuetracker.google.com/issues/37002833).

Also adds support for automatic NSProcessInfo initialization on Android with a fake executable path "/data/data/<app identifier>/exe" (as Android apps don't have a real executable path), and tweaks main bundle initialization to allow that path. Main bundle resource paths are prefixed by "/data/data/<app identifier>/Resources".
2019-05-23 15:44:07 +02:00
Gregory John Casamento
5287a62909 Add skeletal implementation of keysSortyedByValue*** methods 2019-05-20 22:23:20 -04:00
rfm
5ce5899da2
Merge pull request #41 from triplef/swift-corelibs-libdispatch-compat
Add compatibility for Swift corelibs libdispatch release
2019-05-20 14:54:46 +01:00
rfm
fa34c66e25
Merge pull request #42 from triplef/nsthread-spinlock-builtin
Added basic spinlock implementation using builtins.
2019-05-20 14:47:33 +01:00
Gregory John Casamento
d4428e8d6c Clean compilation 2019-05-20 04:01:20 -04:00
Gregory John Casamento
9a516999c8 GSOrderedSet partial implementation 2019-05-20 01:43:06 -04:00
Gregory John Casamento
61a9dc8a13 Implemented isEqual... 2019-05-19 01:31:15 -04:00
Gregory John Casamento
496c9a63e2 Implemented isEqual... 2019-05-19 00:19:19 -04:00
Gregory John Casamento
b61aa7bb96 Implement NSCoding, add GSOrderedSet 2019-05-18 04:01:11 -04:00
Gregory John Casamento
56785613f1 Implement NSCoding, add GSOrderedSet 2019-05-18 03:56:11 -04:00
Gregory John Casamento
33ae3a3f66 Eliminate errors. 2019-05-17 20:37:19 -04:00
Gregory John Casamento
d96ac7f32a Barebones skeleton compiling now. 2019-05-17 20:17:10 -04:00
Frederik Seiffert
43c5ccaef6 Add compatibility for Swift corelibs libdispatch release
This updates the libdispatch runloop integration to be compatible with the Swift corelibs libdispatch release:
https://github.com/apple/swift-corelibs-libdispatch

In that release, the main queue handle and drain functions have been renamed with a "_4CF" (for CoreFoundation) suffix and have moved to private.h, so we now check for the existance of this header and function names.

Note that libdispatch must be compiled with INSTALL_PRIVATE_HEADERS=YES.

Also fixes the checks for the HAVE_LIBDISPATCH_RUNLOOP define (was inverted) and ensures that both the handle and drain functions are available.
2019-05-10 16:17:53 +02:00
Frederik Seiffert
cecb41958b Always use syslog for NSLog on Android.
As there is no way to access stdout/stderr on Android, and syslog is available and outputs to the system log (accesible using "adb logcat"), this improves the developer experience when developing for Android by enabling NSLog output without having to set the "GSLogSyslog" flag.
2019-05-08 10:52:06 +02:00
Frederik Seiffert
3a97bb08f4 Added basic spinlock implementation using builtins.
This will be used on platforms without pthread_spin_lock(), e.g. Android targeting API level < 24.

Implementation lifted from spinlock.h in libobjc2.
2019-05-07 17:40:41 +02:00
Richard Frith-Macdonald
8ed7ccea9e Cleanups to avoid code conflicts and buffer overrun fixes. 2019-04-16 08:07:16 +01:00
Gregory John Casamento
665bdcf952 Add test for emoji's back in. 2019-04-13 04:52:48 -04:00
Gregory John Casamento
b147a64ff5 Remove semicolons as mentioned by Fred 2019-04-12 09:12:54 -04:00
Gregory John Casamento
298f87d24e All tests passing. Implementation of string and nscharacterset methods completed 2019-04-12 08:46:41 -04:00
Gregory John Casamento
f1b48541ae Fix issue with character set caching. 2019-04-12 06:57:40 -04:00
Gregory John Casamento
51e0e3f45e Some additional changes to the test 2019-04-10 05:43:25 -04:00
Gregory John Casamento
6e843573af Add missing method and rename in header. 2019-04-09 05:27:28 -04:00
Gregory John Casamento
574fc45c0b Initial, untested implementation of stringByRemovingPercentEncoding. 2019-04-09 04:39:55 -04:00
Gregory John Casamento
fc13419877 Correct implementation of method. 2019-04-09 03:51:41 -04:00
Gregory John Casamento
9e960dfcd2 Correct method names 2019-04-09 03:28:35 -04:00
Gregory John Casamento
613d90c193 Initial/untested implementation of new string function. 2019-04-09 02:28:54 -04:00
Gregory John Casamento
b1f47e6f22 Added new character set implementations 2019-04-09 00:59:59 -04:00
Gregory John Casamento
41f4fa411a Skeletal implementation of new characterset and screen methods. 2019-04-08 07:36:38 -04:00
fsb4000
3f305d6973 Decrease ICU version requirements to 49 2019-03-29 17:14:11 +07:00
Richard Frith-Macdonald
dc481825ec remove leftover logging 2019-02-27 17:24:39 +00:00
Richard Frith-Macdonald
dd3e71e050 escape charaacters with codepoint greater than 0x7f 2019-02-27 16:54:45 +00:00
Richard Frith-Macdonald
06019034b0 header line folding fix 2019-02-15 14:13:14 +00:00
Richard Frith-Macdonald
911c5cdd66 make class lookup more reliable 2019-02-14 12:37:44 +00:00
Richard Frith-Macdonald
d6ef10f224 fixes for encoding in mime header encoded word 2019-02-14 11:19:33 +00:00
Richard Frith-Macdonald
921f7521ff improve thread safety when using zombies 2019-02-11 09:09:20 +00:00
Richard Frith-Macdonald
cb2998641e another tweak to avoid a compiler warning ... let the compiler know that the
hour cannot exceed 23
2019-01-17 15:20:48 +00:00
Richard Frith-Macdonald
bc72e05f93 Use unsigned integers to suppress spurious compiler warning. 2019-01-17 15:01:08 +00:00
Richard Frith-Macdonald
6f3bd6ac97 Expose GNU TLS wrappers and add methods to get certificate expiry 2019-01-16 09:56:08 +00:00
fredkiefer
a31506564e * Source/Additions/Unicode.m: Move variable u to the correct scope
and initialize it.
2019-01-06 23:33:45 +01:00
Richard Frith-Macdonald
d144e29b48 Changes to updated cached server connections at five minute intervals 2019-01-03 09:58:02 +00:00
David Chisnall
df3eed2452 Turn GS_REPLACE_CONSTANT_STRING into a no-op with the new ABI.
With the classic GCC / NeXT ABI, NSConstantString is a simple pair of a
length and a buffer.  This means that calling -hash calculates the hash
each call, which makes it expensive to use constant strings as
dictionary keys.  The GS_REPLACE_CONSTANT_STRING macro replaces a
constant string with an immutable NSString object, which has an instance
variable for storing the hash.

With the new ABI, NSConstantString has a different layout that includes
space for a hash.  This means that there is no advantage in replacing it
with an NSString (and there is a disadvantage in that it now requires
memory allocation and can be accidentally deallocated), so don't do it.
2019-01-02 17:00:47 +00:00
David Chisnall
3847c54f3f Add NSConstantString implementation for v2 ABI.
This is largely the version from the newabi branch, but with a few
cleanups made possible by other bug fixes in the GSString
implementations.
2018-12-27 13:44:45 +00:00
Richard Frith-Macdonald
458b8a1e79 expose gnustep specific methods for old code 2018-12-05 10:43:59 +00:00
Richard Frith-Macdonald
e01b592c51 wrong url was assigned 2018-12-04 21:06:30 +00:00
Richard Frith-Macdonald
280b2cbe83 Changes for keeping a connection in use 2018-12-04 13:34:53 +00:00
Richard Frith-Macdonald
7380e850e4 minor whitespace tidyups 2018-12-04 11:09:18 +00:00
Richard Frith-Macdonald
1e4a2d7587 certificate authentication fixes 2018-08-24 13:18:27 +01:00
Richard Frith-Macdonald
cb0ea3fb6d TLS tweaks for client certificate 2018-08-13 16:34:00 +01:00
Riccardo Mottola
16ef46642b fix obvious DEBUG inversion, spit out warning on stderr 2018-08-07 16:50:33 +02:00
Riccardo Mottola
441f13828d add missing header 2018-08-07 15:46:02 +02:00
Riccardo Mottola
d852847893 minor tweak in debug for dummy functions that caused crash on Solaris 2018-08-07 13:01:45 +02:00
Richard Frith-Macdonald
586d86c43f Improve defaults caching reliability 2018-08-06 11:56:09 +01:00
Richard Frith-Macdonald
15af957fd0 Fix typo in error message 2018-07-27 09:28:51 +01:00
Richard Frith-Macdonald
caedb21b51 missed in last git commit 2018-07-14 10:27:55 +01:00
Richard Frith-Macdonald
e60b2004af UTF8 parsing improvements 2018-07-14 07:25:40 +01:00
fredkiefer
19c00c43c0 * Source/NSString.m: Add primitive implementation for
rangeOfComposedCharacterSequencesForRange:.
2018-07-07 16:51:18 +02:00
fredkiefer
5a72e1cfa8 * Source/GSString.m: Remove GSString copyWithZone:.
* Source/NSString.m: Raise exception when no is provided for the
string. This brings our implementation closer to the Cocoa one.
* Source/GSString.m: Add similar exceptions.
2018-07-06 23:53:32 +02:00
Richard Frith-Macdonald
1066ec7015 Ensure we are testing the internal 16bit unicode representation class. 2018-07-02 14:20:58 +01:00
fredkiefer
ab60bab84a * Source/GSString.m: Move the method _unicodeString from here...
* Tests/base/NSString/test00.m: ...to here.
2018-07-01 23:50:05 +02:00
fredkiefer
760d6ad990 * Source/GSString.m: Remove code that was identical to super class. 2018-07-01 23:27:09 +02:00
fredkiefer
3b63a0d1f4 * Source/NSString.m: Small cleanup for printf registration. 2018-06-28 23:04:45 +02:00
Richard Frith-Macdonald
ea95ff1f59 Merge branch 'master' of ssh://github.com/gnustep/libs-base
Conflicts:
	ChangeLog
2018-06-28 15:37:38 +01:00
Richard Frith-Macdonald
9bcef37ae0 Surrogate pair handling fix 2018-06-28 15:35:56 +01:00
Fred Kiefer
a6106f550e
Merge branch 'master' into nscalendar-withIdentifier 2018-06-15 10:02:10 +02:00
Richard Frith-Macdonald
3b1324d73d Add GSExceptionStackTrace user default setting 2018-06-12 16:43:15 +01:00
Riccardo Mottola
62511eeca2 fix missing parenthesis 2018-05-30 00:40:34 +02:00
Richard Frith-Macdonald
793e5cd5c9 portability tweak for lock initialisation 2018-05-29 10:36:50 +01:00
fredkiefer
168d2c91e8 * Source/GSConcreteValueTemplate.m: Add hack to make point and
size subclasses for NSValue interchangable.
2018-05-21 01:47:34 +02:00
Ivan Vučica
0e6865a3fd Fix typo in code branch for platforms without pthread_spin_lock().
Check for value of HAVE_PTHREAD_SPIN_LOCK instead of whether the
macro is defined.
2018-05-20 12:40:24 +01:00
Richard Frith-Macdonald
ed286536e2 Add GSTLSServerName option 2018-05-18 20:26:35 +01:00
Graham Lee
c5fac90b86 add +[NSCalendar calendarWithIdentifier:] 2018-04-30 18:02:28 +01:00
Richard Frith-Macdonald
5c7713cacc Minor tidyups plus config update 2018-04-24 12:24:37 +01:00
Riccardo Mottola
6f7e480913 Detect if platform is missing spin locks and provide an dummy implementation. Emit warning during compilation and runtime (in debug) 2018-04-23 20:37:28 +02:00
Richard Frith-Macdonald
635b71e442 initialise before use 2018-04-16 13:18:36 +01:00
Richard Frith-Macdonald
c2fb3a0954 avoid compiler warning by declaring variable at start of block 2018-04-13 10:55:12 +01:00
Richard Frith-Macdonald
b88e69dceb improve -symbols method on platform without backtrace symbols support 2018-04-13 07:11:15 +01:00
Richard Frith-Macdonald
0043a7be8d Improve workaround; use NSAllocateObject() 2018-04-12 21:41:15 +01:00
Richard Frith-Macdonald
57f78a6a7a temporary workaround for crash 2018-04-12 21:35:48 +01:00
Richard Frith-Macdonald
72ad2656c8 don't create NSLock instances during initialisation 2018-04-12 18:21:19 +01:00
Richard Frith-Macdonald
bc2dd4b627 try to improve startup reliability 2018-04-12 18:08:53 +01:00
Richard Frith-Macdonald
bb85bd426c defer setting lock name to try to avoid crash on bsd 2018-04-10 20:27:05 +01:00
Richard Frith-Macdonald
3ced3237e8 Use standard locks rathere than obsolete lazy lock classes 2018-04-10 14:59:35 +01:00
Richard Frith-Macdonald
6c3d99ea3f fix method name error 2018-04-10 14:29:57 +01:00
Richard Frith-Macdonald
cc410b6bbc Fix for recursive thread registration on one platform. 2018-04-10 09:19:50 +01:00
David Chisnall
847c1a54b7 Avoid memory allocation in NSString -hash.
Use the incremental hash function for long strings.
2018-04-09 16:49:44 +01:00
Richard Frith-Macdonald
7274cbaa55 Minor unicode range handling improvements 2018-04-09 11:55:46 +01:00
David Chisnall
7bf1179f60 Reapply 3b1e94ec5d correctly
This time without accidentally-included files...

If compiling without backtrace or BFD support, we initialise the
location to store return addresses incorrectly, leaving a dangling
pointer which we then right over.

Most consumers never read this, so it seemed to work most of the time by
just overwriting a random bit of memory.

This probably has security implications, because throwing an exception
can clobber random bits of memory, though not with attacker-controlled
data.
2018-04-07 20:04:14 +01:00
David Chisnall
970c8cbd05 Revert "Fix memory corruption in NSException."
Accidentally included unrelated changes.

This reverts commit 3b1e94ec5d.
2018-04-07 20:03:33 +01:00
David Chisnall
3b1e94ec5d Fix memory corruption in NSException.
If compiling without backtrace or BFD support, we initialise the
location to store return addresses incorrectly, leaving a dangling
pointer which we then right over.

Most consumers never read this, so it seemed to work most of the time by
just overwriting a random bit of memory.

This probably has security implications, because throwing an exception
can clobber random bits of memory, though not with attacker-controlled
data.
2018-04-07 11:02:04 +01:00
David Chisnall
0ebb50f984 Fix logic error in GSPrivateRangeOfString.
We were checking if the receiver was a specific class, then directly
accessing an ivar of target.  We were then checking if target is a
specific class and, if so, accessing the ivar or target.

This mostly worked because most GNUstep strings have the same
underlying implementation and so the check was passing and by
coincidence giving the correct value.  This breaks when GSTinyStrings
are used more often and was picked up by teaching the compiler to
generate GSTinyStrings for small string literals.
2018-04-06 10:43:10 +01:00
Gregory Casamento
ced3b27144 Correct minor mispelling of NSLog. Compilation error. 2018-04-04 18:48:41 -04:00
Richard Frith-Macdonald
cc7a146796 More changes to make lock tracking more robust 2018-04-04 14:42:20 +01:00
Richard Frith-Macdonald
603c3b1103 indicate trace by use of subclass rather than flag 2018-04-04 12:58:06 +01:00
Richard Frith-Macdonald
efb4ec5f22 Tweak return value to definitely be YES or NO rather than true/false 2018-03-30 10:45:57 +01:00
Richard Frith-Macdonald
437df42b87 Bugfix for getting stacktrace 2018-03-30 10:43:27 +01:00
Richard Frith-Macdonald
b2f821bb36 make lock tracing safer 2018-03-28 09:28:56 +01:00
Richard Frith-Macdonald
c1f96a1cf4 Simplify locking for time zones 2018-03-27 10:37:53 +01:00
Richard Frith-Macdonald
d6612ef880 Fixes in experimental code 2018-03-27 09:55:29 +01:00
Richard Frith-Macdonald
ebfe915619 Fixups for stack handling 2018-03-27 07:06:17 +01:00
Richard Frith-Macdonald
82675cd3d9 more lock tracing tweaks 2018-03-26 16:35:17 +01:00
Richard Frith-Macdonald
75bf489aec Allow for waiting on a mutex we already own 2018-03-26 16:05:18 +01:00
Richard Frith-Macdonald
05439fe15d Experimental deadlock detection code 2018-03-26 15:20:48 +01:00
Richard Frith-Macdonald
43673452a5 locking debug/performance tweaks 2018-03-26 15:05:01 +01:00
Richard Frith-Macdonald
2d3039694f Stack tyrace generation optimisation 2018-03-26 14:49:13 +01:00
David Chisnall
9b7e3a8fff Make the NSXMLNode ivar a union.
Having the same ivar exposed as different types in different compilation
units is probably a bad idea in general and will break with the new ObjC
ABI, where we have link-time checks for this.  It would also confuse
reflection and any languages that use reflection for bridging in
exciting ways.
2018-03-20 17:44:16 +00:00
Richard Frith-Macdonald
81102fae85 improve logging of http comms and of deadlocks 2018-03-16 15:11:02 +00:00
Richard Frith-Macdonald
7c1b9b4d15 fix style errors 2018-03-15 14:09:14 +00:00
Richard Frith-Macdonald
4233915c06 Fix boundary issues 2018-02-27 15:06:27 +00:00
Richard Frith-Macdonald
c6e4220409 Add _unicodeString method to return GSUnicodeString subclass instance for tests 2018-02-27 15:00:52 +00:00
Richard Frith-Macdonald
776c0bbcd8 Fix boundary checks searching for unicode strings 2018-02-25 22:30:08 +00:00
Richard Frith-Macdonald
984803d922 Put characterset data on one line to avoid misleading line-count of source 2018-02-11 17:07:25 +00:00
Richard Frith-Macdonald
a6c7492c42 avoid checker warning 2018-02-11 17:03:24 +00:00
Richard Frith-Macdonald
b3ce87ff4f tweaks to keep static checker happy 2018-02-11 12:03:52 +00:00
Richard Frith-Macdonald
f72708742a Avoid compiler warnings 2018-02-11 09:46:07 +00:00
Richard Frith-Macdonald
64732ce825 add comment and cast to void 2018-02-09 08:41:11 +00:00
Richard Frith-Macdonald
96e16ba825 improve comment and compiler hint 2018-02-09 08:37:25 +00:00
Richard Frith-Macdonald
006160ebc3 Merge branch 'master' of ssh://github.com/gnustep/libs-base
Conflicts:
	ChangeLog
2018-02-09 08:33:30 +00:00
Richard Frith-Macdonald
c9a1d39055 Fix potential buffer overrun 2018-02-09 08:32:22 +00:00
fredkiefer
2901390d0f * Source/NSXMLElement.m(-addAttribute:): Correct linear list code
for name spaces. This fixes the last remaining Coverity issue.
2018-02-09 00:07:53 +01:00
Richard Frith-Macdonald
323f9abace cast -scanString: return to void where we don't need to check it. 2018-02-08 06:10:47 +00:00
Richard Frith-Macdonald
ab822a35a3 check and warn about failure to set reuseaddr 2018-02-08 06:08:41 +00:00
Richard Frith-Macdonald
a211bb4aee improve warnings about loss of infomration converting scalar type sizes 2018-02-08 06:05:25 +00:00
Richard Frith-Macdonald
d95203c968 Tweka for overflow of negative number calculation 2018-02-07 15:13:48 +00:00
Richard Frith-Macdonald
c515993d45 avoid checker warning 2018-02-07 13:31:26 +00:00
Richard Frith-Macdonald
6ad1b0e7b2 add security checks on port file 2018-02-07 13:26:38 +00:00
Richard Frith-Macdonald
8420eeed03 keep checker happy 2018-02-07 13:02:08 +00:00
Richard Frith-Macdonald
fec1eafa32 cast to void to avoid warning 2018-02-07 11:40:34 +00:00
Richard Frith-Macdonald
9968a13711 temporarily ifdef out some code thast's not yet used 2018-02-07 11:36:59 +00:00
Richard Frith-Macdonald
93a961304a casts to avoid spurious warnings 2018-02-07 10:53:13 +00:00
Richard Frith-Macdonald
73f3fb78ab raise on character conversion failure 2018-02-07 10:49:02 +00:00
Richard Frith-Macdonald
0d61b42215 remove dead code 2018-02-07 10:45:08 +00:00
Richard Frith-Macdonald
ad87ff5462 raise exception on character conversion failure 2018-02-07 10:38:57 +00:00
Richard Frith-Macdonald
14c2d9402d Remove dead code and improve testing 2018-02-07 09:48:56 +00:00
Richard Frith-Macdonald
3edc201239 Patch by Yavor Doganov to send message id in port messages 2018-02-07 07:02:40 +00:00
Richard Frith-Macdonald
033b921903 improve error checking 2018-02-06 18:05:28 +00:00
Richard Frith-Macdonald
c0d6599def use double type for average 2018-02-06 16:59:49 +00:00
Richard Frith-Macdonald
fcd464f118 Help checker know that we don't need return value 2018-02-06 16:49:07 +00:00
Richard Frith-Macdonald
df6d65accc check step in function before use 2018-02-06 12:51:25 +00:00
Richard Frith-Macdonald
f7c71c695e fix possible nul pointer deref 2018-02-06 12:43:55 +00:00
Richard Frith-Macdonald
3d98433cc7 log failure to turn on keepalive 2018-02-06 12:37:03 +00:00
Richard Frith-Macdonald
0f7a6d58d3 log if we fail to turn on keepalive 2018-02-06 12:34:04 +00:00
Richard Frith-Macdonald
ccd2fb1ac0 Tell compiler we don't care about rreturn value 2018-02-06 12:26:32 +00:00
Richard Frith-Macdonald
1937b36b86 Update assertion macros to support multiple arguments 2018-02-06 09:35:34 +00:00
Richard Frith-Macdonald
8450b94bc8 logic fig for overflow becoming underflow when using negated values 2018-02-05 13:26:41 +00:00
Richard Frith-Macdonald
0d6d01bc00 use cast when masking 64bit value 2018-02-05 13:14:31 +00:00
Richard Frith-Macdonald
96dcac7a74 remove dead code 2018-02-05 13:07:59 +00:00
Richard Frith-Macdonald
a29213a3a2 remove unused code 2018-02-05 13:03:58 +00:00
Richard Frith-Macdonald
7e7d71d63e remove redundant code 2018-02-05 08:14:41 +00:00
Richard Frith-Macdonald
493eb2cf2f remove unused code 2018-02-05 08:11:46 +00:00
Richard Frith-Macdonald
546deb4604 check for failure of dup/dup2 even though it will never happen 2018-02-04 11:36:06 +00:00
Richard Frith-Macdonald
54bf6598ed make sure the hour we read from the time zone file is constrained to 0-23 2018-02-04 11:21:47 +00:00
Richard Frith-Macdonald
b135bc8ae0 suppress warning using cast 2018-02-04 11:17:33 +00:00
Richard Frith-Macdonald
ab670fd27a improive handling of failed character conversion 2018-02-04 11:10:07 +00:00
Richard Frith-Macdonald
113867e9e6 fix for collation alone being set 2018-02-04 10:51:01 +00:00
Richard Frith-Macdonald
5277bf7043 Keep checker happy by avoiding possible null pointer deref 2018-02-04 10:35:15 +00:00
Richard Frith-Macdonald
890eaa9d32 don't copy address info ifg getpeername fails 2018-02-04 10:10:57 +00:00
Richard Frith-Macdonald
4f50f358c3 more fixups for unicode and to avoid warnings 2018-02-04 08:38:20 +00:00
Richard Frith-Macdonald
78087d0aa4 tweak to keep checker happy 2018-02-04 08:28:51 +00:00
Richard Frith-Macdonald
f1b1c1c754 fix bad type in assignment 2018-02-03 16:03:32 +00:00
Richard Frith-Macdonald
41fd87ce35 potential resource leak fix 2018-02-03 15:57:04 +00:00
Richard Frith-Macdonald
8a66507f29 changer memcpy to memmove 2018-02-03 10:11:30 +00:00
fredkiefer
e69450400a * Source/GSFormat.m: Call va_end with the correct parameter.
* Source/NSObject+NSComparisonMethods.m: Add missing return.
* Source/GSString.m (-replaceCharactersInRange:withString:,
-initWithBytesNoCopy:...freeWhenDone:): Remove dead code.
* Source/NSDistantObject.m (-initWithCoder:): Remove dead code.
* Source/NSPredicate.m (_eval_avg:): Don't devide by zero.
Fix issues found by Coverity.
2018-02-01 22:31:15 +01:00
Richard Frith-Macdonald
dcd3b8c5a9 fix possible error with negative time zone offset. 2018-01-31 14:31:37 +00:00
Richard Frith-Macdonald
c30166c612 add missing va_end 2018-01-31 14:28:44 +00:00
Richard Frith-Macdonald
9d21ee5671 check for null pointer 2018-01-31 14:24:46 +00:00
Richard Frith-Macdonald
9a8c3486ff fix bad copy/paste 2018-01-31 14:17:50 +00:00
Richard Frith-Macdonald
5a2506dca9 Remove unused line 2018-01-31 14:15:32 +00:00
Richard Frith-Macdonald
f718aa30c9 Make it clear that we are doing a standard binary search and allow for changes
to character composition/decomposition in future.
2018-01-31 07:42:59 +00:00
Richard Frith-Macdonald
c31c6a87b8 fix uninitialised variable 2018-01-30 15:01:01 +00:00
Richard Frith-Macdonald
92f961dbb6 remove redundant close 2018-01-30 14:40:12 +00:00
Richard Frith-Macdonald
ee8bb1fbeb Fix possible deref of null pointer 2018-01-30 14:34:27 +00:00
Richard Frith-Macdonald
56aaa72d3d be more careful about closing iconv handle on errors 2018-01-30 14:03:01 +00:00
Richard Frith-Macdonald
06ff76d882 fix use after free 2018-01-30 07:57:36 +00:00
Richard Frith-Macdonald
22d7d2428a warn about corrupt archive 2018-01-30 07:54:23 +00:00
Richard Frith-Macdonald
65ac0eca15 fix potential unterminated buffer and leak on failure 2018-01-30 07:43:58 +00:00
Richard Frith-Macdonald
b76089f0cd fix potential unterminated string 2018-01-30 07:39:25 +00:00
Richard Frith-Macdonald
86af4da784 fix possible resource leak on conversion failure 2018-01-30 07:38:08 +00:00
Richard Frith-Macdonald
3884a82c7a comment on why descriptor is NOT leaked 2018-01-30 07:36:53 +00:00
Richard Frith-Macdonald
ba7c5086d1 gix handle leak on write failure 2018-01-30 07:26:05 +00:00
Richard Frith-Macdonald
6b1f8f7962 fix very minor descriptor leak (one descriptor in subtask) 2018-01-30 07:21:39 +00:00
Richard Frith-Macdonald
3281c0f6b6 fix potentially unterminated buffer 2018-01-30 07:12:32 +00:00
Richard Frith-Macdonald
7045f84acc OSX compatibility fixes for zero width space character and initialising an NSURL
with bad strings.
2018-01-26 12:53:47 +00:00
Richard Frith-Macdonald
d8e7607582 Tweaks to let comp[iler know that methods to raise an exception don't return. 2018-01-25 10:05:52 +00:00
Richard Frith-Macdonald
cc97172bdd check for nul pointer when destroying zone 2018-01-23 16:34:26 +00:00
Richard Frith-Macdonald
746f2a2a1a ndentation fixups 2018-01-23 16:17:57 +00:00
Richard Frith-Macdonald
07ba3ec932 add comments 2018-01-23 14:07:46 +00:00
Richard Frith-Macdonald
c7ba537c75 fix issues picked up by automated checker 2018-01-23 11:32:36 +00:00
Richard Frith-Macdonald
5f7e53c175 Re-enable optimisation on NSConnection/NSInvocation 2018-01-19 08:44:50 +00:00
Richard Frith-Macdonald
c7fc9c4b65 notify immediately if in correct thread 2018-01-15 11:57:23 +00:00
Richard Frith-Macdonald
28048a5947 Don't try to notify about task termination on the thread that started the task
if it has already finished executing.
2018-01-15 11:42:04 +00:00
Richard Frith-Macdonald
7fd95c877f Improve message in exception when we perform on a finished thread 2018-01-15 10:08:13 +00:00
Richard Frith-Macdonald
925f1dd5e1 Add Yavor Doganov's patches for tests and config. Add fixes for GSXML
validation of xml documents
2018-01-14 12:30:13 +00:00
Richard Frith-Macdonald
31257785d6 External entity resolution turned off by default for security 2018-01-11 16:39:21 +00:00
Richard Frith-Macdonald
93389bb357 Minore xml parsing fixes 2018-01-11 13:50:39 +00:00
Richard Frith-Macdonald
4efa322ca2 Fix bug in object allocation when ARC is available 2018-01-04 09:08:36 +00:00
Richard Frith-Macdonald
dae9b8973e OSX compatibility tweaks based on running testcases on 10.13.2 (high sierra). 2018-01-03 15:42:09 +00:00
Richard Frith-Macdonald
6150b3fd62 Fix for bug #51592 2018-01-02 12:48:18 +00:00
Richard Frith-Macdonald
6ec34b4df4 Merge branch 'master' of ssh://github.com/gnustep/libs-base
Conflicts:
	ChangeLog
2017-12-21 13:56:34 +00:00
Richard Frith-Macdonald
4ce7a25541 Changes to avoid possible hang in connection reply mode due to race condition. 2017-12-21 13:51:01 +00:00
Riccardo
ae335197f4 cleanup previous commit 2017-12-21 13:11:08 +01:00
Riccardo
d28a000877 Compatibility for OS/compiler not supporting weak symbols 2017-12-21 08:34:46 +01:00
Richard Frith-Macdonald
f319725536 copying the local time zone just, returns it 2017-12-19 11:42:53 +00:00
Graham Lee
186d840ce6
Merge branch 'master' into json-signed-integers 2017-12-18 12:56:28 +00:00
David Chisnall
25e67bd107 Refactor weak symbol usage.
The Linux run-time linker doesn't allow weak references in one library
to be overridden by ones in another.  To work around this, we now
declare the runtime functions as weak and perform dynamic checks on
whether the symbols have been resolved and call the fallbacks as local
static functions if they are not present.
2017-12-17 10:57:25 +00:00
David Chisnall
e35eb61dbc Make object allocation and deallocation use the runtime.
All objects are now created and destroyed by the runtime, so we have
clean layering between -base and libobjc.
2017-12-13 18:22:08 +00:00
David Chisnall
c3921ee1f7 Refactor refcount usage.
This makes it easier for the runtime to change how reference counts are
stored by removing any refcount manipulation from -base when the runtime
provides accessors.  This should have no functionality change with
existing runtimes, but will let newer runtimes drop in alternative
representations easily.
2017-12-13 17:19:43 +00:00
David Chisnall
98205ac266 Fix a bug in NSMapTable.
In the simple constructors, we were using the pointer functions that use
pointer equality and a hash derrived from the pointer, rather than -isEqual:
and -hash.  This led to some subtle and confusingly broken behavior.
2017-12-11 16:30:18 +00:00
fredkiefer
97f9a02308 Add new symbolic link method to NSFileManager. 2017-12-03 21:55:33 +01:00
Graham Lee
05184a7e1a fix overflow of integer types when writing large unsigned long longs to JSON 2017-11-25 21:23:46 +00:00
Zenny Chen
fd5744356f
Update blocks_runtime.m 2017-11-19 13:14:17 +08:00
Zenny Chen
d0d7238172
Update GSBlocks.m
Compatible to the new-updated GSBlocks.h
2017-11-19 01:19:44 +08:00
Zenny Chen
4c0dc51305
Update blocks_runtime.m
Get compatible with new-updated Blocks API
2017-11-19 01:01:39 +08:00
Richard Frith-Macdonald
9bbcd75d16 Fix for failure to check insertion point is at an existing item. 2017-11-16 14:56:20 +00:00
fredkiefer
7c68c30928 Protect against GSPrivateNativeCStringEncoding() corrupting the return
value of setlocale(). Bug #52331 reported by Jakub Wilk <jwilk@jwilk.net>.
2017-11-04 23:53:12 +01:00
stefanbidi
8eed1d780c * Source/NSDateFormatter.m: Fix how UDateFormat is created. Fixes bug #52011. 2017-10-24 18:15:44 -04:00
Richard Frith-Macdonald
8bd7c048ac Improve handling of messaging to blocked thread 2017-09-06 09:32:07 +01:00
Stefan Bidigaray
952884dd6a Fix bug in NSLocale ISO codes methods. 2017-08-24 11:03:11 -04:00
Richard Frith-Macdonald
f170693bca Fix error with Location header 2017-08-21 11:25:44 +01:00
Wolfgang Lux
bc285396da Characters outside the BMP cannot be converted to Latin 1 string encoding 2017-07-10 10:16:27 +02:00
Riccardo
6b455a589d Fix GetTickCount()/GetTickCount64() for different Windows versions 2017-07-07 10:50:10 +02:00
Richard Frith-Macdonald
cc2ee1d59b Improve diagnostic if reference count is incremented too far. 2017-07-03 14:33:32 +01:00
Richard Frith-Macdonald
c82dd20280 Avoid bogus compiler warning about string literal comparison 2017-06-30 07:37:05 +01:00
Daniel Ferreira
270c1bcea9 NSFileManager: implement -attributesOfFileSystemForPath:withError:
Implement a method for getting attribytes of a file system path. Reuse
the implementation of -fileSystemAttributesAtPath: for this purpose but
export the last system errors to the caller. Make
-fileSystemAttributesAtPath: use the new implementation, without
exposing error info to the caller.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
7636967f30 api: generate stubs for new classes
Generate class stubs (without any method definition) for
NSFileCoordinator, NSFilePresenter, NSFileVersion and NSURLSession.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
8bd630f004 NSURLCredential: add stub for keychain-stored credential
Declare the NSURLCredentialPersistenceSynchronizable enumeration case to
NSURLCredential persistence options. Since GNUstep does not support
iCloud synchronization for credentials, this case will default to
NSURLCredentialPersistencePermanent.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
814c19ecce NSURLProtectionSpace: improve authentication method handling
Improve handling of NSURL authentication methods. Make "HTMLForm"
authentication a no-op as it should be instead of making it fall back to
Basic authentication.

Add stubs for NTLM and Negotiate IIS methods. They should be easily
implementable given the current framework for authentication methods.

Add stubs for ClientCertificate and ServerTrust authentication methods.
A blocker for supporting them is the lack of a Security.framework
implementation (since they rely on SecTrustRef). They would also require
additions to the current SSL handling code for GNUstep https requests.
Also stub the -distinguishedNames property of NSURLProtectionSpace,
which also deals with certificate-related authentication methods.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
d49db3ab29 NSProcessInfo: add stubs for new APIs
Add stubs for sudden termination APIs and for application activity
management methods.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
cbfa4d8cc9 NSProcessInfo: implement getting system uptime
Introduce the systemUptime property to NSProcessInfo, which can compute
platform-independently what is the uptime of the system.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
277ae581a6 NSHTTPCookie: fix bug in Set-Cookie parser
Fix a bug in NSHTTPCookie's Set-Cookie parser where it would fail to
parse more than one key-only cookie (such as "Secure; HTTPOnly;") in a
header.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
644b676949 NSHTTPCookie: add support for HTTPOnly cookies
Add support for parsing HTTPOnly cookies (those that cannot be accessed
by clients). Implement -[NSHTTPCookie isHTTPOnly].
2017-06-29 21:18:16 +01:00
Daniel Ferreira
3111003ca1 NSFileManager: create NSFileManagerDelegate
Create NSFileManagerDelegate, a more modern manner to verify whether to
proceed a file operation after an error or whether an operation should
actually be performed by NSFileManager.

No functionality using the delegate is yet implemented.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
2ec3c7bc27 NSURL: create stub for -getResourceValue:forKey:error:
Create an unimplemented stub for NSURL's -getResourceValue:... method,
which can gather a numerous set of information about a URL.

Define the constants which are passed into -getResourceValue:... for
requiring information so that a build that relies on this method does
not break.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
064df5ba69 NSURL: add stubs for alias functions
The OSX filesystem implements "aliases", a species of symlink which
tracks its source if it was moved. Create stubs for the NSURL functions
which handle these aliases.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
e813dde02c NSURL: implement +fileURLWithPath:isDirectory:
Implement +[NSURL fileURLWithPath:isDirectory:], a class method added in
OSX 10.5, which was missing from the implementation.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
314f437f43 NSCoder: implement NSSecureCoding stub
Implement stubs for NSSecureCoding which do not break projects that rely
on it.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
be874e5d8f NSDate: declare system clock change notification
Declare a system clock change notification. Base still does not emit
this notification, but this allows applications that wait for it not to
have their build broken.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
5ab00e2c49 NSCalendar: add new calendar identifier constants
Add new calendar identifier constants to NSCalendar, to add
compatibility for newer OSX applications. Some identifiers do not hold
parity with the older equivalents and have been left unimplemented, with
the gregorian calendar as a fallback.
2017-06-29 21:18:16 +01:00
Daniel Ferreira
a9df1b104a NSGeometry: create NSEdgeInsets struct
Create the NSEdgeInsets struct in NSGeometry, introduced in OSX 10.7.
Add helper functions for creating these insets.

This struct is not used in Base. Rather, it is used as part of newer
APIs in GUI.
2017-06-29 21:18:16 +01:00
Richard Frith-Macdonald
383c3246ee partial fix for compiler without properties 2017-06-25 15:17:12 +01:00
Richard Frith-Macdonald
e1e0315e34 Use new NSFileManager behavior rather than operating system specific calls. 2017-06-21 11:25:05 +01:00
Richard Frith-Macdonald
24d29934cf Fix directory creation to match actual OSX sematics as determined by adding
a few testcases ...
The basic method should fail if the directory already exists.
The intermediate directories method should fail if the directory exists unless
the option to create intermediate directories is selected, in which case a
pre-existing directory is counted as a success.
2017-06-18 09:13:57 +01:00
Richard Frith-Macdonald
ed721bf4da Fix directory creation to use low level methods which consider the presence
of an existing directory to be an error, rather than the NSFileManager methods
that consider it a success.  The logic of distributed locking requires us to
fail if a directory already exists.
2017-06-17 06:52:05 +01:00
Richard Frith-MacDonald
a5a2e85423 improve debug log
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40510 72102866-910b-0410-8b05-ffd578937521
2017-05-19 16:20:17 +00:00
Richard Frith-MacDonald
9400f9105d Make TLS client certificate issuer/owner names available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40508 72102866-910b-0410-8b05-ffd578937521
2017-05-19 11:38:48 +00:00
Richard Frith-MacDonald
1f786ad7a8 fixes for #47618
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40462 72102866-910b-0410-8b05-ffd578937521
2017-04-09 12:45:18 +00:00
Richard Frith-MacDonald
073fb54804 apply bug #49021
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40461 72102866-910b-0410-8b05-ffd578937521
2017-04-09 09:56:55 +00:00
Richard Frith-MacDonald
c6b8f4fb03 fix memory leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40433 72102866-910b-0410-8b05-ffd578937521
2017-04-03 20:23:31 +00:00
Riccardo Mottola
b5b9126290 Correct format specifier to char*
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40432 72102866-910b-0410-8b05-ffd578937521
2017-04-01 14:09:01 +00:00
Richard Frith-MacDonald
71d1d5c42b implement methods to create a stream to read from a URL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40420 72102866-910b-0410-8b05-ffd578937521
2017-03-27 09:44:13 +00:00
Richard Frith-MacDonald
173079f8f5 fix swapped arguments (spotted by Fred in testplant changes)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40419 72102866-910b-0410-8b05-ffd578937521
2017-03-27 09:27:12 +00:00
Richard Frith-MacDonald
7c9d7acafa Update NSComparisonResult to use NS_ENUM
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40418 72102866-910b-0410-8b05-ffd578937521
2017-03-27 09:00:35 +00:00
Riccardo Mottola
b19d076452 Skip file if no valid filename could be retrieved most probably due to Charset mismatches, this is is more a last resort: probably a lossy conversion should be attempted before
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40397 72102866-910b-0410-8b05-ffd578937521
2017-03-17 14:11:14 +00:00
Richard Frith-MacDonald
d28ab9eaac Implement OSX compatible non-lossy ascii encoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40395 72102866-910b-0410-8b05-ffd578937521
2017-03-17 12:04:19 +00:00
Richard Frith-MacDonald
343ceb58a8 fix to build on osx
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40392 72102866-910b-0410-8b05-ffd578937521
2017-03-17 09:28:01 +00:00
Wolfgang Lux
e3caba204b Fix a serious misunderstanding of the icu string access API: The value
of nativeIndexingLimit must not exceed the length of the current chunk.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40333 72102866-910b-0410-8b05-ffd578937521
2017-02-11 14:24:58 +00:00
Richard Frith-MacDonald
31772e50c5 fix for bug #50032
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40289 72102866-910b-0410-8b05-ffd578937521
2017-01-12 10:34:23 +00:00
Richard Frith-MacDonald
60a86946d3 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40282 72102866-910b-0410-8b05-ffd578937521
2016-12-29 20:35:55 +00:00
Wolfgang Lux
80a0d3f28d Fix an off by 1 calculation which meant that weekOfYear would return 2
for the first week of a year whenever the first Thursday of that year
is 7 Jan, for instance 2016.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40239 72102866-910b-0410-8b05-ffd578937521
2016-11-28 09:01:04 +00:00
Richard Frith-MacDonald
af09204ffb typdef for refcount when no atimics available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40225 72102866-910b-0410-8b05-ffd578937521
2016-11-18 06:49:16 +00:00
Richard Frith-MacDonald
07e0609e42 Additions ot last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40209 72102866-910b-0410-8b05-ffd578937521
2016-11-10 11:31:33 +00:00
Richard Frith-MacDonald
f5b4336181 Fix for error decoding archives made on machine with different word size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40208 72102866-910b-0410-8b05-ffd578937521
2016-11-10 10:23:14 +00:00
Richard Frith-MacDonald
e0267770ef fix crash and other memory management tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40196 72102866-910b-0410-8b05-ffd578937521
2016-11-08 10:21:00 +00:00
Richard Frith-MacDonald
5c3acb5693 Fail quietly when asked to read non-existent file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40188 72102866-910b-0410-8b05-ffd578937521
2016-11-01 21:02:31 +00:00
Niels Grewe
fe155240e7 Re-enable fast-ARC mode when possible.
Define _ARCCompliantRetainRelease on 32bit platforms and when
we have copmiler intrinsics for atomic operations that allow us
to extend the refcount field to match libobjc2.

The effective maximum reference count is still 2^24 - 1 in either
case.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40183 72102866-910b-0410-8b05-ffd578937521
2016-10-28 08:30:16 +00:00
Wolfgang Lux
4cdf4004e8 Don't tell a lie. The retain count representation of gnustep-base and
libobjc2 differs, so we cannot use the ARC retain/release implementation
for now.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40181 72102866-910b-0410-8b05-ffd578937521
2016-10-27 15:00:17 +00:00
Richard Frith-MacDonald
1ab80b3f58 Fixes for problems spotted by Wolfgang
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40171 72102866-910b-0410-8b05-ffd578937521
2016-10-24 10:22:43 +00:00
Richard Frith-MacDonald
3d9ffaf168 Misc tidyuups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40165 72102866-910b-0410-8b05-ffd578937521
2016-10-21 15:32:31 +00:00
Richard Frith-MacDonald
57c16fcd8a Fix a few places to use NSUInteger
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40153 72102866-910b-0410-8b05-ffd578937521
2016-10-18 08:45:26 +00:00
Richard Frith-MacDonald
6b68c9a1ca gnutls memory management fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40148 72102866-910b-0410-8b05-ffd578937521
2016-10-14 07:57:57 +00:00
Niels Grewe
6509aeb2de Fix handling of incorrect replacement patterns.
The error code from trying to apply a replacement pattern was not checked,
resulting in a crash inside libicu. This also fixes a few memory leaks
(replacement string objects not correctly autoreleased before returning them
 to the caller).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40142 72102866-910b-0410-8b05-ffd578937521
2016-10-12 13:43:32 +00:00
Niels Grewe
f9540e172e Improve support for loading encrypted private keys
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40139 72102866-910b-0410-8b05-ffd578937521
2016-10-11 11:59:04 +00:00
Richard Frith-MacDonald
28de617ef6 Check for file modification during copy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40137 72102866-910b-0410-8b05-ffd578937521
2016-10-08 07:02:06 +00:00
Richard Frith-MacDonald
0fe344d12a Partial fix/update for noncharacter codepoints,
also check for task exit more consistently


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40125 72102866-910b-0410-8b05-ffd578937521
2016-10-05 17:44:00 +00:00
Niels Grewe
b1c979898d Fix detection of the charset in XML data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40090 72102866-910b-0410-8b05-ffd578937521
2016-09-19 15:56:51 +00:00
Wolfgang Lux
ef5fd8a497 Add missing checks to avoid calling caseInsensitiveCompare: with nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40086 72102866-910b-0410-8b05-ffd578937521
2016-09-16 12:28:05 +00:00
Niels Grewe
e6cef4a7f9 Fix a problem removing certificate data mapped to file names.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40085 72102866-910b-0410-8b05-ffd578937521
2016-09-16 07:56:48 +00:00
Richard Frith-MacDonald
85b02833b1 scanHexLongLong inspider by Abbas Raza
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40070 72102866-910b-0410-8b05-ffd578937521
2016-09-06 07:57:17 +00:00
Richard Frith-MacDonald
4a3058fd5b omit some diagnostic on older versions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40069 72102866-910b-0410-8b05-ffd578937521
2016-09-05 09:57:02 +00:00
Richard Frith-MacDonald
efdf2a674f improve certificate debug output
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40068 72102866-910b-0410-8b05-ffd578937521
2016-09-02 08:56:09 +00:00
Richard Frith-MacDonald
e5f00ce4cc Add diagnostic code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40067 72102866-910b-0410-8b05-ffd578937521
2016-09-02 07:59:08 +00:00
Richard Frith-MacDonald
08f141ad80 patch by <abbas.raza.1707@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40066 72102866-910b-0410-8b05-ffd578937521
2016-08-30 13:20:34 +00:00
Richard Frith-MacDonald
ead1505a3c Fix typo causing preamature termination of long headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40065 72102866-910b-0410-8b05-ffd578937521
2016-08-28 09:53:38 +00:00
Niels Grewe
1c5b12c8fe Fix bug #48882
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40063 72102866-910b-0410-8b05-ffd578937521
2016-08-24 13:05:43 +00:00
Richard Frith-MacDonald
33ed35331b Various configure/build tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40062 72102866-910b-0410-8b05-ffd578937521
2016-08-19 12:20:24 +00:00
Richard Frith-MacDonald
116e5f8211 add some more debug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40058 72102866-910b-0410-8b05-ffd578937521
2016-08-10 13:44:13 +00:00
Richard Frith-MacDonald
a6bce78c64 First attempt at GSMimeSerializer for more controlled serialisation of
documents so we can choose between a form suitable for old SMTP MTAs, or
for modern binary-safe transports.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40049 72102866-910b-0410-8b05-ffd578937521
2016-08-03 09:24:53 +00:00
Richard Frith-MacDonald
06669a434a add --GNU-Debug=RMC to log remote method call handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40046 72102866-910b-0410-8b05-ffd578937521
2016-08-01 11:10:38 +00:00
Richard Frith-MacDonald
945ca4abfb use fairStart to get a fairer distribution of I/O across multiple handles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40045 72102866-910b-0410-8b05-ffd578937521
2016-08-01 07:40:36 +00:00
Richard Frith-MacDonald
6f890a5095 added diagnostics
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40043 72102866-910b-0410-8b05-ffd578937521
2016-07-29 13:48:00 +00:00
Richard Frith-MacDonald
32eff75b6a fix stupid typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40042 72102866-910b-0410-8b05-ffd578937521
2016-07-28 10:25:18 +00:00
Richard Frith-MacDonald
de3e9739ab A case insensitive compare with self is always NSOrderedSame
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40041 72102866-910b-0410-8b05-ffd578937521
2016-07-28 05:21:01 +00:00
Niels Grewe
3e654a6b09 Fix warnings for compilers without blocks support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40039 72102866-910b-0410-8b05-ffd578937521
2016-07-27 12:39:59 +00:00
Niels Grewe
2e18a14485 Avoid reallocating objects post-hoc based on the initializer used.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40038 72102866-910b-0410-8b05-ffd578937521
2016-07-27 07:02:42 +00:00
Niels Grewe
1b82abd967 Don't leak the deallocator block
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40037 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:52:53 +00:00
Niels Grewe
ad428b99d5 Fix -getObjects:andKeys:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40036 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:24:56 +00:00
Niels Grewe
c2be055c3e Add [NSData initWithBytesNoCopy:length:deallocator:]
This new initializer allows customising the deallocation behaviour
through user-supplied blocks. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40035 72102866-910b-0410-8b05-ffd578937521
2016-07-26 23:01:11 +00:00
Richard Frith-MacDonald
525d467e18 Fixups for file descriptor leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40034 72102866-910b-0410-8b05-ffd578937521
2016-07-26 09:56:22 +00:00
Richard Frith-MacDonald
205f26ec86 Thread deadlock fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40033 72102866-910b-0410-8b05-ffd578937521
2016-07-26 08:20:09 +00:00
Richard Frith-MacDonald
eb497bf67e tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40013 72102866-910b-0410-8b05-ffd578937521
2016-07-19 12:23:40 +00:00
Richard Frith-MacDonald
27899e4d66 patch by Larry Campbell plus removal of some garbage collection vestiges
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40008 72102866-910b-0410-8b05-ffd578937521
2016-07-18 10:50:28 +00:00
Richard Frith-MacDonald
9188a050ef fix for bug #47926
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40007 72102866-910b-0410-8b05-ffd578937521
2016-07-18 09:51:35 +00:00
Richard Frith-MacDonald
9f0d813aef remove unused ivar
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40001 72102866-910b-0410-8b05-ffd578937521
2016-07-16 08:27:21 +00:00
Richard Frith-MacDonald
f8f4bb51e3 fix bad return value when polling for windows messages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40000 72102866-910b-0410-8b05-ffd578937521
2016-07-16 08:25:24 +00:00
Richard Frith-MacDonald
39cc09e2ca Sort algorithms should always be built, and be selectable at runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39998 72102866-910b-0410-8b05-ffd578937521
2016-07-15 11:30:07 +00:00
Richard Frith-MacDonald
f56e1bdd0c tidy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39997 72102866-910b-0410-8b05-ffd578937521
2016-07-15 10:07:50 +00:00
Richard Frith-MacDonald
25df4a6efb fix logic error in case where we have a nil date supplied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39996 72102866-910b-0410-8b05-ffd578937521
2016-07-13 10:51:29 +00:00
Richard Frith-MacDonald
4f05189210 More OSX compatibility changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39995 72102866-910b-0410-8b05-ffd578937521
2016-07-13 08:58:23 +00:00
Niels Grewe
c9e0bddfd3 Fixup breakage introduced by r39762 and r39764, which apparently were never attempted to compile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39990 72102866-910b-0410-8b05-ffd578937521
2016-07-12 21:41:27 +00:00
Richard Frith-MacDonald
769ce88f43 Some behavior changes based on testing on OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39983 72102866-910b-0410-8b05-ffd578937521
2016-07-12 11:31:45 +00:00
Richard Frith-MacDonald
d05eee4fda Change incorrect use of unsigned integers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39977 72102866-910b-0410-8b05-ffd578937521
2016-07-12 08:18:35 +00:00
Wolfgang Lux
fc436a1ea4 Fix unsigned comparison to properly detect integer underflows in
UTextNSStringAccess.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39976 72102866-910b-0410-8b05-ffd578937521
2016-07-12 07:31:22 +00:00
Gregory John Casamento
fbdb451bf5 Temporary change to fix the build so that 'make distclean' no longer fails.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39971 72102866-910b-0410-8b05-ffd578937521
2016-07-10 04:27:42 +00:00
Wolfgang Lux
62b2fb95b8 Fix bug where a UText structure owned by the icu library is incorrectly
closed, which was causing a crash when -pattern is called more than once
for the same NSRegularExpression.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39960 72102866-910b-0410-8b05-ffd578937521
2016-07-06 08:08:51 +00:00
Richard Frith-MacDonald
1ed4da510b Locking simplifications
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39958 72102866-910b-0410-8b05-ffd578937521
2016-07-02 18:56:02 +00:00
Richard Frith-MacDonald
197fdeaecb Optimisation for ICU access to immutable NSString objects ... we don't need to
call -length every time because we can keep the length in the UText state.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39956 72102866-910b-0410-8b05-ffd578937521
2016-07-01 15:22:02 +00:00
Wolfgang Lux
d725240fbd Make use of local variables that have been assigned already.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39955 72102866-910b-0410-8b05-ffd578937521
2016-07-01 12:33:11 +00:00
Richard Frith-MacDonald
670d202b1a ICU string access rewrite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39951 72102866-910b-0410-8b05-ffd578937521
2016-06-30 14:21:32 +00:00
Richard Frith-MacDonald
6f1ac918fa msys2/64bit fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39942 72102866-910b-0410-8b05-ffd578937521
2016-06-28 14:01:55 +00:00
Richard Frith-MacDonald
89c92b4f4e avoid compiler warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39941 72102866-910b-0410-8b05-ffd578937521
2016-06-28 13:30:04 +00:00
Richard Frith-MacDonald
3c6f32b4d2 tidied a little
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39939 72102866-910b-0410-8b05-ffd578937521
2016-06-28 11:17:25 +00:00
Richard Frith-MacDonald
5b360d8a83 Remove the obsolete openssl bundle code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39937 72102866-910b-0410-8b05-ffd578937521
2016-06-28 10:40:33 +00:00
Richard Frith-MacDonald
fda234553c windows fixup for pthread exit with null pointer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39935 72102866-910b-0410-8b05-ffd578937521
2016-06-27 20:21:11 +00:00
Richard Frith-MacDonald
7f0fc86fc7 more msys2/64bit tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39934 72102866-910b-0410-8b05-ffd578937521
2016-06-27 19:31:02 +00:00
Richard Frith-MacDonald
9592363863 msys 64bit tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39933 72102866-910b-0410-8b05-ffd578937521
2016-06-27 19:06:12 +00:00
Richard Frith-MacDonald
e43c12542a Don't use windows atomics unless compiler ones aren't available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39932 72102866-910b-0410-8b05-ffd578937521
2016-06-27 19:05:40 +00:00
Richard Frith-MacDonald
066fb2558a msys2 64bit tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39931 72102866-910b-0410-8b05-ffd578937521
2016-06-27 18:04:30 +00:00
Richard Frith-MacDonald
2dbc4d0d20 msys2 64bit tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39930 72102866-910b-0410-8b05-ffd578937521
2016-06-27 16:38:51 +00:00
Richard Frith-MacDonald
c7d295a43f -stringByResolvingSymlinksInPath should return the expanded string rather than
the original string on failure of link resolution.  The tilde should get
expanded even if the resulting directory does not actually exist.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39929 72102866-910b-0410-8b05-ffd578937521
2016-06-27 11:52:31 +00:00
Richard Frith-MacDonald
1b7d7e81e1 More careful check for bad/missing home directory
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39928 72102866-910b-0410-8b05-ffd578937521
2016-06-27 06:42:50 +00:00
Richard Frith-MacDonald
96d39e79bc If we don't have a home directory, we can't expand a '~' in a path.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39926 72102866-910b-0410-8b05-ffd578937521
2016-06-26 12:04:23 +00:00
Richard Frith-MacDonald
23f92b6399 fix spelling errors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39925 72102866-910b-0410-8b05-ffd578937521
2016-06-26 10:10:20 +00:00
Richard Frith-MacDonald
04406427e3 Add newere method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39924 72102866-910b-0410-8b05-ffd578937521
2016-06-26 05:56:10 +00:00
Richard Frith-MacDonald
39c966a12f Work around missing getsockopt support in hurd.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39922 72102866-910b-0410-8b05-ffd578937521
2016-06-25 19:00:43 +00:00
Richard Frith-MacDonald
5d272a49e5 Fixup error in return value when buffer too small
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39920 72102866-910b-0410-8b05-ffd578937521
2016-06-25 18:27:33 +00:00
Richard Frith-MacDonald
01377d55ee socket fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39919 72102866-910b-0410-8b05-ffd578937521
2016-06-25 15:57:06 +00:00
Richard Frith-MacDonald
ecfbd24d8e Changed to restructure subdirectory layout for binaries and system dependent
resources in a non-flattened installation.  First step towards seamless
Debian multiarch support.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39918 72102866-910b-0410-8b05-ffd578937521
2016-06-25 07:12:41 +00:00
Richard Frith-MacDonald
124afa845a Improve reliability on a slow system where there is no gdnc daemon (eg when
running regression tests for an uninstalled copy of gnustep).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39917 72102866-910b-0410-8b05-ffd578937521
2016-06-24 10:44:40 +00:00
Richard Frith-MacDonald
c4b05fa213 Optimise fetching ascii or utf8 from literal string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39915 72102866-910b-0410-8b05-ffd578937521
2016-06-23 18:27:22 +00:00
Richard Frith-MacDonald
8fd0387e36 Tiny code simplification.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39905 72102866-910b-0410-8b05-ffd578937521
2016-06-22 13:21:04 +00:00
Richard Frith-MacDonald
1b63746799 Thread-safety fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39902 72102866-910b-0410-8b05-ffd578937521
2016-06-22 09:09:29 +00:00
Richard Frith-MacDonald
0c7237ec08 s390x portability fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39901 72102866-910b-0410-8b05-ffd578937521
2016-06-22 07:54:16 +00:00
Richard Frith-MacDonald
78097d25b0 Improve error message
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39884 72102866-910b-0410-8b05-ffd578937521
2016-06-20 06:38:05 +00:00
Richard Frith-MacDonald
c3b5fd3e65 Depend on libffi to provide the types with the correct size for the buffer used
for small scalar values.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39880 72102866-910b-0410-8b05-ffd578937521
2016-06-19 11:36:12 +00:00
Richard Frith-MacDonald
776631838d fix for big endian LP64 systems
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39878 72102866-910b-0410-8b05-ffd578937521
2016-06-19 07:42:36 +00:00
Richard Frith-MacDonald
21d242b151 Fix retain/release error which caused a crash on removal of an old operation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39877 72102866-910b-0410-8b05-ffd578937521
2016-06-19 07:37:58 +00:00
Richard Frith-MacDonald
00cec80391 Unchedule I/O events when entering an error state
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39875 72102866-910b-0410-8b05-ffd578937521
2016-06-18 06:42:12 +00:00
Richard Frith-MacDonald
6382c48c0f use strlen to get length of string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39874 72102866-910b-0410-8b05-ffd578937521
2016-06-17 17:03:13 +00:00
Richard Frith-MacDonald
8183cd9557 Try to ensure that headers with non-ascii characters are encoded properly (and at least don't cause an exception).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39873 72102866-910b-0410-8b05-ffd578937521
2016-06-17 12:36:20 +00:00
Niels Grewe
0d98f56eca Implement resource limits for regular expression evaluation. Tweaked
to roughly match the Cocoa behaviour, but can be changed through 
the GSRegularExpressionWorkLimit user default.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39872 72102866-910b-0410-8b05-ffd578937521
2016-06-17 09:04:04 +00:00
Niels Grewe
ac2d08d2a1 Implement -isEqual: and -hash on NSRegularExpression, so that copies are
actually equal


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39871 72102866-910b-0410-8b05-ffd578937521
2016-06-17 07:43:51 +00:00
Richard Frith-MacDonald
d60587e6bb Fixes for failure of connect() system call
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39862 72102866-910b-0410-8b05-ffd578937521
2016-06-14 07:10:44 +00:00
Richard Frith-MacDonald
be34f6dc07 when a connect fails, we still want the stream scheduled to generate events
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39861 72102866-910b-0410-8b05-ffd578937521
2016-06-13 15:14:21 +00:00
Richard Frith-MacDonald
8ace6e9fbd Add check for sibling having failed when opening.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39860 72102866-910b-0410-8b05-ffd578937521
2016-06-13 14:24:51 +00:00
Richard Frith-MacDonald
8180e928f0 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39853 72102866-910b-0410-8b05-ffd578937521
2016-06-08 11:49:42 +00:00
Richard Frith-MacDonald
5cf471c70f add fallbacks for string conversion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39852 72102866-910b-0410-8b05-ffd578937521
2016-06-08 11:29:38 +00:00
Richard Frith-MacDonald
209146a7a4 improve header capitalisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39850 72102866-910b-0410-8b05-ffd578937521
2016-06-07 18:12:13 +00:00
Richard Frith-MacDonald
407d06d7b4 tweak again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39849 72102866-910b-0410-8b05-ffd578937521
2016-06-07 16:45:56 +00:00
Richard Frith-MacDonald
73f18a6998 Fixup encoding issue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39848 72102866-910b-0410-8b05-ffd578937521
2016-06-07 16:38:37 +00:00
Richard Frith-MacDonald
751e998014 fixup bad commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39843 72102866-910b-0410-8b05-ffd578937521
2016-06-07 07:20:12 +00:00
Richard Frith-MacDonald
48ab2e60e0 fixup conversion to 7bit-safe
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39842 72102866-910b-0410-8b05-ffd578937521
2016-06-07 07:12:25 +00:00
Richard Frith-MacDonald
0adeacda9a Improve API for making doc 7bit safe
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39841 72102866-910b-0410-8b05-ffd578937521
2016-06-06 21:16:30 +00:00
Richard Frith-MacDonald
124908fd1d mingw64 tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39780 72102866-910b-0410-8b05-ffd578937521
2016-05-19 07:27:26 +00:00
Richard Frith-MacDonald
8a9d9597b0 tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39779 72102866-910b-0410-8b05-ffd578937521
2016-05-19 07:21:36 +00:00
Richard Frith-MacDonald
544a43092e attempt fiox for bug #47619
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39776 72102866-910b-0410-8b05-ffd578937521
2016-05-18 13:11:45 +00:00
Richard Frith-MacDonald
7622a2618e fix spelling errors / typos (patch by heintzmann.eric@free.fr)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39774 72102866-910b-0410-8b05-ffd578937521
2016-05-18 06:11:00 +00:00
Richard Frith-MacDonald
414b6be1b0 fix typos etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39768 72102866-910b-0410-8b05-ffd578937521
2016-05-15 10:25:34 +00:00
Richard Frith-MacDonald
1d2c5edcf1 avoid a couple of compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39764 72102866-910b-0410-8b05-ffd578937521
2016-05-14 15:06:32 +00:00
Richard Frith-MacDonald
f5288bdf6b Simplify bfd code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39763 72102866-910b-0410-8b05-ffd578937521
2016-05-14 14:47:43 +00:00
Richard Frith-MacDonald
71941dd24d cleanup changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39762 72102866-910b-0410-8b05-ffd578937521
2016-05-14 09:34:01 +00:00
Richard Frith-MacDonald
dcec9dd0ab fgix for problem spotted by Wolfgang
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39753 72102866-910b-0410-8b05-ffd578937521
2016-05-13 13:19:22 +00:00
Richard Frith-MacDonald
bca2d77fe5 Fix bug encoding long headers without spaces
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39752 72102866-910b-0410-8b05-ffd578937521
2016-05-13 11:08:46 +00:00
Richard Frith-MacDonald
4a6d6225b9 tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39738 72102866-910b-0410-8b05-ffd578937521
2016-05-10 17:03:02 +00:00
Gregory John Casamento
a4200029bd Add containsString: implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39731 72102866-910b-0410-8b05-ffd578937521
2016-05-06 22:04:07 +00:00
Richard Frith-MacDonald
542825f621 Improve checks for attempted use of a deallocate/cached autorelease pool.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39708 72102866-910b-0410-8b05-ffd578937521
2016-04-29 07:31:48 +00:00
Richard Frith-MacDonald
51f4463702 Add check and exception for repeated deallocation of a pool.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39706 72102866-910b-0410-8b05-ffd578937521
2016-04-28 20:35:00 +00:00
Richard Frith-MacDonald
de8428ab4a Fixup Setting TLS properties
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39694 72102866-910b-0410-8b05-ffd578937521
2016-04-26 11:07:25 +00:00
Richard Frith-MacDonald
bdf7fb89d8 Improve logging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39693 72102866-910b-0410-8b05-ffd578937521
2016-04-25 14:55:19 +00:00
Marcus Müller
cb3f465c10 Avahi-based NSNetServices did crash upon publishing if Avahi daemon did not
run. Hardened code for this case which also works correctly if daemon is
started later on.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39689 72102866-910b-0410-8b05-ffd578937521
2016-04-23 15:44:31 +00:00
Richard Frith-MacDonald
dbe7cef25d avoid compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39683 72102866-910b-0410-8b05-ffd578937521
2016-04-19 08:07:53 +00:00
Richard Frith-MacDonald
41c920a83d avoid compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39682 72102866-910b-0410-8b05-ffd578937521
2016-04-19 08:02:13 +00:00
Richard Frith-MacDonald
42e10e52cd avoid compiler warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39681 72102866-910b-0410-8b05-ffd578937521
2016-04-19 07:12:31 +00:00
Richard Frith-MacDonald
0d0b2b4503 avoid spurious compiler warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39674 72102866-910b-0410-8b05-ffd578937521
2016-04-17 15:18:43 +00:00
Richard Frith-MacDonald
8a57dc7e10 Avoid spurious compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39673 72102866-910b-0410-8b05-ffd578937521
2016-04-17 15:14:34 +00:00
Richard Frith-MacDonald
2d99b4b95d avoid compiler warnings and stasndardise a few declarations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39672 72102866-910b-0410-8b05-ffd578937521
2016-04-17 15:07:38 +00:00
Richard Frith-MacDonald
506824d1fd Use posix locale for numeric sort ... we really need a proper fix so that the
system locale works for all collations.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39670 72102866-910b-0410-8b05-ffd578937521
2016-04-14 16:10:12 +00:00
Richard Frith-MacDonald
7ecccf47e9 partial revert
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39669 72102866-910b-0410-8b05-ffd578937521
2016-04-14 15:56:08 +00:00
Richard Frith-MacDonald
e3c429dfee Fix use of locale for numeric sort/comparison
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39668 72102866-910b-0410-8b05-ffd578937521
2016-04-14 15:00:50 +00:00
Richard Frith-MacDonald
d53b94baba If we are doing a numeric search, use the superclass method (with ICU numeric collation).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39662 72102866-910b-0410-8b05-ffd578937521
2016-04-13 12:45:03 +00:00
Richard Frith-MacDonald
3aa0288d37 Locale fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39655 72102866-910b-0410-8b05-ffd578937521
2016-04-09 05:49:16 +00:00
Richard Frith-MacDonald
5f5196e87e comment last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39652 72102866-910b-0410-8b05-ffd578937521
2016-04-08 17:32:07 +00:00
Richard Frith-MacDonald
a577d2d316 Only get default locale at the point when it's actually needed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39651 72102866-910b-0410-8b05-ffd578937521
2016-04-08 17:28:05 +00:00
Richard Frith-MacDonald
f306de43e8 add some consistency checks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39650 72102866-910b-0410-8b05-ffd578937521
2016-04-08 14:01:24 +00:00
Richard Frith-MacDonald
d220beeab2 Use memory management macros
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39649 72102866-910b-0410-8b05-ffd578937521
2016-04-08 11:34:21 +00:00
Richard Frith-MacDonald
a71619bf6d Remove redundant code. Log domain names only when debug is enabled.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39647 72102866-910b-0410-8b05-ffd578937521
2016-04-08 10:23:05 +00:00
Riccardo Mottola
e291dd28fa remove accidental commit of debug NSLog()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39646 72102866-910b-0410-8b05-ffd578937521
2016-04-08 10:15:45 +00:00
Riccardo Mottola
d1df54727a Skip nil domains explicitely and do not use nil values to look them up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39645 72102866-910b-0410-8b05-ffd578937521
2016-04-08 09:56:14 +00:00
Richard Frith-MacDonald
31aef40e46 Add -getValue: implementation for BOOL number
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39644 72102866-910b-0410-8b05-ffd578937521
2016-04-08 08:17:00 +00:00
Niels Grewe
c0282c4073 If libdispatch provides integration hooks for the main queue
(i.e. nickhutchinson/libdispatch), use these to drain the main
queue using the main run loop.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39617 72102866-910b-0410-8b05-ffd578937521
2016-04-04 08:17:08 +00:00
Richard Frith-MacDonald
29d4e2981e More GC removal updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39611 72102866-910b-0410-8b05-ffd578937521
2016-03-26 05:10:00 +00:00
Richard Frith-MacDonald
bc7634464d Check for corrupt archive or unsupported number types as suggested by Fred
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39609 72102866-910b-0410-8b05-ffd578937521
2016-03-25 11:42:23 +00:00
Richard Frith-MacDonald
d40d219015 removal of garbage collection
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39608 72102866-910b-0410-8b05-ffd578937521
2016-03-25 11:15:28 +00:00
Richard Frith-MacDonald
f04167c678 attempt to fix archiving endianness issue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39604 72102866-910b-0410-8b05-ffd578937521
2016-03-25 08:37:36 +00:00
Richard Frith-MacDonald
d5e55c0470 minor property list generation improvement
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39595 72102866-910b-0410-8b05-ffd578937521
2016-03-23 10:47:24 +00:00
Riccardo Mottola
28893e01ae fix trivial typos
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39572 72102866-910b-0410-8b05-ffd578937521
2016-03-20 18:42:24 +00:00
Richard Frith-MacDonald
1ee226b495 light tidying
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39568 72102866-910b-0410-8b05-ffd578937521
2016-03-20 11:53:01 +00:00
Richard Frith-MacDonald
bc2927bd2d retain/release cleanups inspidered by testplant
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39567 72102866-910b-0410-8b05-ffd578937521
2016-03-19 08:47:20 +00:00
Richard Frith-MacDonald
52de4bf68b make sure to unlock after an exception
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39565 72102866-910b-0410-8b05-ffd578937521
2016-03-18 14:56:55 +00:00
Richard Frith-MacDonald
dcd8f5a610 User defaults changes to cope better with slow systems
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39564 72102866-910b-0410-8b05-ffd578937521
2016-03-18 12:40:08 +00:00
Richard Frith-MacDonald
d27923f0fa allow filesystem locks to wait a lot longer in case we are on a very slow system
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39561 72102866-910b-0410-8b05-ffd578937521
2016-03-17 20:11:29 +00:00
Richard Frith-MacDonald
67e4c0581d standardise -setDebug: extension
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39554 72102866-910b-0410-8b05-ffd578937521
2016-03-17 08:12:45 +00:00
Richard Frith-MacDonald
1db866fde7 on 32bit systems constrain dates to fit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39549 72102866-910b-0410-8b05-ffd578937521
2016-03-15 19:04:51 +00:00
Richard Frith-MacDonald
a2ed652ca2 consistency fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39547 72102866-910b-0410-8b05-ffd578937521
2016-03-15 18:22:57 +00:00
Richard Frith-MacDonald
1608002709 Fix a few variables which should be NSInteger
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39544 72102866-910b-0410-8b05-ffd578937521
2016-03-15 17:23:13 +00:00
Richard Frith-MacDonald
6f6538543e Add some diagnostics for defaults locking
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39537 72102866-910b-0410-8b05-ffd578937521
2016-03-14 08:26:41 +00:00
Richard Frith-MacDonald
ade4852ce3 defaults tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39532 72102866-910b-0410-8b05-ffd578937521
2016-03-12 08:32:21 +00:00
Richard Frith-MacDonald
402792e8b2 experimental in-process locking of the distributed locking methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39531 72102866-910b-0410-8b05-ffd578937521
2016-03-11 18:11:43 +00:00
Richard Frith-MacDonald
6e18501b77 stack trace tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39529 72102866-910b-0410-8b05-ffd578937521
2016-03-11 16:48:31 +00:00
Richard Frith-MacDonald
a0c97c1ddd deprecate confusing extension in favour of simpler ARC-complient method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39520 72102866-910b-0410-8b05-ffd578937521
2016-03-10 16:50:41 +00:00
Wolfgang Lux
afc8ff1c47 Add method +[NSLocale localeWithLocaleIdentifier:], which was
introduced in OS X 10.6.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39516 72102866-910b-0410-8b05-ffd578937521
2016-03-10 08:48:40 +00:00
Riccardo Mottola
e5ef35a150 Add some new path values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39508 72102866-910b-0410-8b05-ffd578937521
2016-03-09 17:22:31 +00:00
Niels Grewe
fcbbe0431f Implement -evaluateWithObject:substitutionVariables: (OS X 10.5 method),
and mark one of the GSBlockPredicate tests as hopeful on OS X.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39506 72102866-910b-0410-8b05-ffd578937521
2016-03-09 15:38:32 +00:00
Richard Frith-MacDonald
aaf7f02758 Fix use of authentication credential from URL by Sergei Golovin
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39502 72102866-910b-0410-8b05-ffd578937521
2016-03-09 14:50:40 +00:00
Richard Frith-MacDonald
d5f56756ac fix bug #45286
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39501 72102866-910b-0410-8b05-ffd578937521
2016-03-09 14:30:33 +00:00
Richard Frith-MacDonald
2084f2f49b remove some unused code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39494 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:24:44 +00:00
Niels Grewe
6e6ee05a80 Implement [NSPredicate predicateWithBlock:].
Fixes https://savannah.gnu.org/bugs/?46418


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39493 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:19:35 +00:00
Richard Frith-MacDonald
62d2bcbabc changes for use of _WIN32 define on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39492 72102866-910b-0410-8b05-ffd578937521
2016-03-09 13:16:16 +00:00
Richard Frith-MacDonald
1d46f1a656 fixup for late unregister on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39467 72102866-910b-0410-8b05-ffd578937521
2016-03-05 19:09:11 +00:00
Richard Frith-MacDonald
9fbe3bafef fixes for tilde handling on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39466 72102866-910b-0410-8b05-ffd578937521
2016-03-05 17:28:06 +00:00
Richard Frith-MacDonald
7027eba9bb standardize current directory path
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39463 72102866-910b-0410-8b05-ffd578937521
2016-03-05 17:00:52 +00:00
Richard Frith-MacDonald
86e8a7b27d TLS tweak in last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39460 72102866-910b-0410-8b05-ffd578937521
2016-03-05 16:12:38 +00:00
Richard Frith-MacDonald
0323003b7e fix incorrect initial state for incoming network connections
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39458 72102866-910b-0410-8b05-ffd578937521
2016-03-05 14:35:41 +00:00
Richard Frith-MacDonald
b7bfd48166 remove unused code spotted by Fred
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39456 72102866-910b-0410-8b05-ffd578937521
2016-03-05 10:10:23 +00:00
Richard Frith-MacDonald
629e772269 various windows networking fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39455 72102866-910b-0410-8b05-ffd578937521
2016-03-04 18:53:32 +00:00
Richard Frith-MacDonald
d3aab9bc45 win32 standard io fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39454 72102866-910b-0410-8b05-ffd578937521
2016-03-04 18:06:01 +00:00
Richard Frith-MacDonald
4f9d5c0982 use compiler conventions to tell if we are on mswindows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39453 72102866-910b-0410-8b05-ffd578937521
2016-03-04 15:02:07 +00:00
Richard Frith-MacDonald
84613dbfde fix 64bit issue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39452 72102866-910b-0410-8b05-ffd578937521
2016-03-04 14:58:01 +00:00
Richard Frith-MacDonald
a6443d3bb3 fix for building without ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39444 72102866-910b-0410-8b05-ffd578937521
2016-03-02 15:52:53 +00:00
Richard Frith-MacDonald
c3bfea209f wrong version comitted ... update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39441 72102866-910b-0410-8b05-ffd578937521
2016-03-02 12:59:58 +00:00
Richard Frith-MacDonald
9e78ad5cf4 Avoid use of NSLog to reduce chance of recursion problems if an error occurs
really early on in system initialisation.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39440 72102866-910b-0410-8b05-ffd578937521
2016-03-02 12:58:18 +00:00
Richard Frith-MacDonald
276e557f9c tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39433 72102866-910b-0410-8b05-ffd578937521
2016-03-01 11:43:36 +00:00
Richard Frith-MacDonald
8352d4a919 tweaks for win64 by Seong Gu Lee <sgleehd@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39432 72102866-910b-0410-8b05-ffd578937521
2016-03-01 10:41:33 +00:00
Richard Frith-MacDonald
f34325cbd0 avoid warning on old compiler
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39425 72102866-910b-0410-8b05-ffd578937521
2016-02-29 10:13:10 +00:00
Richard Frith-MacDonald
8fe8af2d57 Implement versdion check for new ICU code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39424 72102866-910b-0410-8b05-ffd578937521
2016-02-29 10:05:36 +00:00
Richard Frith-MacDonald
ec73ec0593 trivial tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39423 72102866-910b-0410-8b05-ffd578937521
2016-02-29 09:41:14 +00:00
Richard Frith-MacDonald
e150fbcc1d Misc minor bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39422 72102866-910b-0410-8b05-ffd578937521
2016-02-29 09:20:43 +00:00
Richard Frith-MacDonald
4a95eb2107 fix for copying subdirectories
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39421 72102866-910b-0410-8b05-ffd578937521
2016-02-29 07:44:12 +00:00
Richard Frith-MacDonald
3e2ca62f1a Fix typos in comments, add a couple of testcases
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39414 72102866-910b-0410-8b05-ffd578937521
2016-02-25 11:55:58 +00:00
Richard Frith-MacDonald
297495896d Fix error folding header with non-ascci data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39413 72102866-910b-0410-8b05-ffd578937521
2016-02-25 11:47:49 +00:00
Richard Frith-MacDonald
a51249a65d Apply patch by Patrick Laurent and tidy a bit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39411 72102866-910b-0410-8b05-ffd578937521
2016-02-24 07:41:20 +00:00
Niels Grewe
28c824a78a Modify the interfaces of all collection classes to be compatible with the
new lightweight generics implemenation. (Newer MacOS X/iOS code assuming 
the presence of the generics annotations can otherwise not be compiled with
GNUstep). This should be well-behaved under clang and gcc both. 

Fix NSCache which was copying the cache keys when it really shouldn't
have. Added a few test cases for eviction behaviour.

Few smaller tweaks to avoid compiler warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39406 72102866-910b-0410-8b05-ffd578937521
2016-02-22 21:04:18 +00:00
Richard Frith-MacDonald
f1527caffd tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39402 72102866-910b-0410-8b05-ffd578937521
2016-02-20 17:25:53 +00:00
Richard Frith-MacDonald
a7f869790b fix comparison function return values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39401 72102866-910b-0410-8b05-ffd578937521
2016-02-19 15:57:04 +00:00
Richard Frith-MacDonald
3db4287285 Aim to improve compatibility with old/buggy parsers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39395 72102866-910b-0410-8b05-ffd578937521
2016-02-18 15:52:00 +00:00
Richard Frith-MacDonald
e27363d97d Don't initialise NSUserDefaults in NSObject+initialize ... recursion on bsd
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39393 72102866-910b-0410-8b05-ffd578937521
2016-02-18 06:56:44 +00:00
Richard Frith-MacDonald
cf0b385788 On type missmatch report whole document
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39388 72102866-910b-0410-8b05-ffd578937521
2016-02-17 14:11:50 +00:00
Richard Frith-MacDonald
0306683e63 iCreate mapt able lazily
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39382 72102866-910b-0410-8b05-ffd578937521
2016-02-16 22:28:34 +00:00
Richard Frith-MacDonald
d4c719b42f safer error logging when we can't initialise process info
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39375 72102866-910b-0410-8b05-ffd578937521
2016-02-15 12:13:37 +00:00
Richard Frith-MacDonald
44165e9bcc Fixup for mistake in earlier commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39374 72102866-910b-0410-8b05-ffd578937521
2016-02-15 11:07:44 +00:00
Richard Frith-MacDonald
09f15d2b8d Use defaults cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39373 72102866-910b-0410-8b05-ffd578937521
2016-02-15 10:10:39 +00:00
Richard Frith-MacDonald
8a2bfb18b8 Fix recursion when looking up the current thread
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39351 72102866-910b-0410-8b05-ffd578937521
2016-02-10 10:22:43 +00:00
Richard Frith-MacDonald
da2f52bf56 Tweaks to avoid compiler warnings, and consistently use ref counting macros.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39350 72102866-910b-0410-8b05-ffd578937521
2016-02-10 09:15:10 +00:00
Richard Frith-MacDonald
3ccb63af3b fix leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39345 72102866-910b-0410-8b05-ffd578937521
2016-02-09 16:53:00 +00:00
Richard Frith-MacDonald
e00e2d1789 Fix by Campbell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39343 72102866-910b-0410-8b05-ffd578937521
2016-02-09 14:20:56 +00:00
Richard Frith-MacDonald
8eb1eb2a3e Fix for obscure decoding error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39338 72102866-910b-0410-8b05-ffd578937521
2016-02-04 22:33:19 +00:00
Richard Frith-MacDonald
3ab8d10f1f keep key=value pairs in structured fields on the same line if possible.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39320 72102866-910b-0410-8b05-ffd578937521
2016-01-29 15:59:56 +00:00
Richard Frith-MacDonald
5318d5f8c2 tweak to fold after semicolon in preference to equals sign when writing out
structured field


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39319 72102866-910b-0410-8b05-ffd578937521
2016-01-29 15:23:24 +00:00
Niels Grewe
b0afa17bed Add automatic unregistration of threads that have not been
been explicitly unregistered. This works by keeping around 
a map table with all threads currently undergoing cleanup, 
and using that as a fallback if pthread_getspecific would
not return the NSThread object from TLS. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39318 72102866-910b-0410-8b05-ffd578937521
2016-01-29 13:42:07 +00:00
Richard Frith-MacDonald
478e376882 quick hack to avoid splitting 'boundary' parameter values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39310 72102866-910b-0410-8b05-ffd578937521
2016-01-23 15:30:05 +00:00
Niels Grewe
26712aed33 Fix folding of headers containing underscores.
The quotedWord() and quotableLength() functions were
disagreeing about which characters to quote. 



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39303 72102866-910b-0410-8b05-ffd578937521
2016-01-21 22:20:53 +00:00
Richard Frith-MacDonald
dec747e0b9 fixup a few errors in last mod
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39301 72102866-910b-0410-8b05-ffd578937521
2016-01-21 19:27:28 +00:00
Richard Frith-MacDonald
0359dc0a3d Updates for header folding support (to preserve exact white space).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39300 72102866-910b-0410-8b05-ffd578937521
2016-01-21 12:49:15 +00:00
Richard Frith-MacDonald
ce29f2223d Further correction to latin1 conversion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39299 72102866-910b-0410-8b05-ffd578937521
2016-01-21 12:42:43 +00:00
Richard Frith-MacDonald
912fbca179 Fix error copnverting utf8 constant string to latin1 data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39298 72102866-910b-0410-8b05-ffd578937521
2016-01-21 12:27:25 +00:00
Richard Frith-MacDonald
e1396c2e48 improve logging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39258 72102866-910b-0410-8b05-ffd578937521
2016-01-07 11:50:31 +00:00
Marcus Müller
2bef5cf85d Fixed a long standing NSNumberFormatter bug in conjunction with zero padding
and (old) NSNumberFormatterBehavior10_0


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39245 72102866-910b-0410-8b05-ffd578937521
2015-12-30 21:09:55 +00:00
Marcus Müller
2b6f8a27f9 "NSUserNotificationDefaultSoundName" constant string was declared but missing,
fixed


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39244 72102866-910b-0410-8b05-ffd578937521
2015-12-29 11:39:51 +00:00
Richard Frith-MacDonald
a725edd38b OSX copmpatibility tweak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39239 72102866-910b-0410-8b05-ffd578937521
2015-12-22 18:35:37 +00:00
Niels Grewe
cd9dfc915e Implement -components:fromDate:toDate:options:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39202 72102866-910b-0410-8b05-ffd578937521
2015-11-30 10:06:04 +00:00
Riccardo Mottola
3663d1a4de Should return success even if all path components do exist, as by Apple spec
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39189 72102866-910b-0410-8b05-ffd578937521
2015-11-22 22:39:09 +00:00
Riccardo Mottola
c9d5a3d2cb Parse length and location with scanInteger and not scanInt
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39169 72102866-910b-0410-8b05-ffd578937521
2015-11-13 00:06:18 +00:00
Riccardo Mottola
68f692de66 comment nested idef statements for clarity
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39132 72102866-910b-0410-8b05-ffd578937521
2015-11-03 09:15:26 +00:00
Richard Frith-MacDonald
095a8cb13d osx compatibility fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39122 72102866-910b-0410-8b05-ffd578937521
2015-11-02 18:10:38 +00:00
Richard Frith-MacDonald
58362f14b5 tweak to raise exception in node init if we don't have libxml2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39116 72102866-910b-0410-8b05-ffd578937521
2015-11-02 09:07:39 +00:00
Richard Frith-MacDonald
f341ff0528 fix trivial typo in comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39115 72102866-910b-0410-8b05-ffd578937521
2015-11-01 23:37:11 +00:00
Richard Frith-MacDonald
f8a6a45133 another stub
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39114 72102866-910b-0410-8b05-ffd578937521
2015-11-01 23:28:18 +00:00
Richard Frith-MacDonald
24f387f8a7 Revised after testing again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39112 72102866-910b-0410-8b05-ffd578937521
2015-11-01 22:49:21 +00:00
Richard Frith-MacDonald
75df317244 Create stub class when libxml2 is not available.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39111 72102866-910b-0410-8b05-ffd578937521
2015-11-01 22:40:55 +00:00
Richard Frith-MacDonald
d37f8fb30c String comparison fixup for case insensitive combined with literal string.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39109 72102866-910b-0410-8b05-ffd578937521
2015-10-31 20:17:07 +00:00
Richard Frith-MacDonald
3fc29289f2 remove declaration of unused methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39084 72102866-910b-0410-8b05-ffd578937521
2015-10-21 07:10:25 +00:00
Richard Frith-MacDonald
bf5038e2ac protect from both old runtime and old compiler
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39042 72102866-910b-0410-8b05-ffd578937521
2015-10-08 09:13:32 +00:00
Richard Frith-MacDonald
f6271e8e48 fixup for old runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39041 72102866-910b-0410-8b05-ffd578937521
2015-10-08 09:04:48 +00:00
Richard Frith-MacDonald
e8f8da0618 fixup for old runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39040 72102866-910b-0410-8b05-ffd578937521
2015-10-08 08:52:32 +00:00
Richard Frith-MacDonald
dd3fface17 fix escaped encoding to be ascii
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39036 72102866-910b-0410-8b05-ffd578937521
2015-10-07 06:25:18 +00:00
Richard Frith-MacDonald
f6925ca1c9 fix retain/release error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39035 72102866-910b-0410-8b05-ffd578937521
2015-10-06 11:54:39 +00:00
Fred Kiefer
7cef72282c * Source/NSPropertyList.m (GSBinaryPLGenerator-storeCount:): Use
0x12 instead of 0x13 for integer count.
        * Source/NSPropertyList.m (GSBinaryPLParser-readCountAt:):
        * Handle
        0x12 correctly. Use same code for 0x13 to read old incorrect
        written data.
        Based on change by Josh Freeman <pikopixel@twilightedge.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39025 72102866-910b-0410-8b05-ffd578937521
2015-10-03 19:50:03 +00:00
Richard Frith-MacDonald
5f6700adcc imprve exception logging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39024 72102866-910b-0410-8b05-ffd578937521
2015-10-03 18:56:08 +00:00
Richard Frith-MacDonald
ac53087213 Fixup bad report of selector in an exception in runloop
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39023 72102866-910b-0410-8b05-ffd578937521
2015-10-03 17:38:21 +00:00
Richard Frith-MacDonald
91d3484e9b fix typo in comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39022 72102866-910b-0410-8b05-ffd578937521
2015-10-03 17:11:00 +00:00
Richard Frith-MacDonald
fa3b26e91c improve logging of sending bad selector to be performed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39021 72102866-910b-0410-8b05-ffd578937521
2015-10-03 16:56:07 +00:00
Richard Frith-MacDonald
a9377d6150 Entity substitution fix by Wolfgang
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39014 72102866-910b-0410-8b05-ffd578937521
2015-09-23 06:08:20 +00:00
Richard Frith-MacDonald
0c5d96eebd changes intended to allow use of _Bool throughout
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39010 72102866-910b-0410-8b05-ffd578937521
2015-09-22 09:46:10 +00:00
Riccardo Mottola
1852fbd6b1 define keys with strings compatible with the deprecated values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38996 72102866-910b-0410-8b05-ffd578937521
2015-09-18 08:42:40 +00:00
Riccardo Mottola
0cf0aab3ac Add some 10.6 URL errors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38995 72102866-910b-0410-8b05-ffd578937521
2015-09-18 08:33:38 +00:00
Riccardo Mottola
4f1e798805 Add simple (files only and no keys handling) implementation of 10.6 method contentsOfDirectoryAtURL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38987 72102866-910b-0410-8b05-ffd578937521
2015-09-16 00:53:30 +00:00
Niels Grewe
bf6898262b Fix a bug writing base64 data to a plist
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38973 72102866-910b-0410-8b05-ffd578937521
2015-09-08 07:13:54 +00:00
Niels Grewe
17d379a59a Optimise appending UTF-16 strings for formatting
If the string being appended to already uses unichar as the underlying 
character type, append the new characters using memcpy() instead of
looping over them individually. Also includes test cases to verify that
nothing breaks.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38969 72102866-910b-0410-8b05-ffd578937521
2015-09-04 09:48:07 +00:00
Richard Frith-MacDonald
7fa1961ad7 add gnustlsFileSystemRepresentation for mingw
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38965 72102866-910b-0410-8b05-ffd578937521
2015-09-02 17:23:07 +00:00
Niels Grewe
8b8e32b080 Fix handling of capture groups not participating in the current match.
The Cocoa API specifies to return theses as (NSNotFound,0) ranges, but the
ICU API returns them as (-1,-1) pairs of start/end indices. The necessary
conversion was missing here.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38963 72102866-910b-0410-8b05-ffd578937521
2015-09-01 11:31:16 +00:00
Richard Frith-MacDonald
916855444e Allow debug to be turned on for an individual request
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38958 72102866-910b-0410-8b05-ffd578937521
2015-08-30 15:50:27 +00:00
Richard Frith-MacDonald
b27f60bb58 tweak format of base64 encoded data content
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38957 72102866-910b-0410-8b05-ffd578937521
2015-08-30 10:50:59 +00:00
Richard Frith-MacDonald
516bde6dea fixup for nul termination of debug output
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38955 72102866-910b-0410-8b05-ffd578937521
2015-08-30 10:25:52 +00:00
Richard Frith-MacDonald
3bbe9ff957 more tweaks ... move base64 encoding to shared private function
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38954 72102866-910b-0410-8b05-ffd578937521
2015-08-30 09:23:27 +00:00
Richard Frith-MacDonald
9aa5d4cd04 Use base64 in gnustep property lists
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38953 72102866-910b-0410-8b05-ffd578937521
2015-08-30 07:28:26 +00:00
Richard Frith-MacDonald
3f2fa9ddfe gnustep ptext property list format improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38952 72102866-910b-0410-8b05-ffd578937521
2015-08-30 06:59:34 +00:00
Richard Frith-MacDonald
00571cd74e fix potential deadlock
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38951 72102866-910b-0410-8b05-ffd578937521
2015-08-30 06:40:40 +00:00
Richard Frith-MacDonald
1fbc464141 tweak logging in NSURLProtocol to cope with nul bytes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38950 72102866-910b-0410-8b05-ffd578937521
2015-08-29 21:13:14 +00:00
Richard Frith-MacDonald
5ff4f40d40 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38948 72102866-910b-0410-8b05-ffd578937521
2015-08-29 20:45:52 +00:00
Richard Frith-MacDonald
f22f51b4e5 keep old format if there are no nul bytes to print
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38947 72102866-910b-0410-8b05-ffd578937521
2015-08-29 20:25:16 +00:00
Richard Frith-MacDonald
574c83e0bf Safer debug logging for http request/response
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38946 72102866-910b-0410-8b05-ffd578937521
2015-08-29 20:12:33 +00:00
Richard Frith-MacDonald
ec4431318e improve diagnostic output for mime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38945 72102866-910b-0410-8b05-ffd578937521
2015-08-29 16:52:31 +00:00
Richard Frith-MacDonald
3c866d8635 debug description readability improvement
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38944 72102866-910b-0410-8b05-ffd578937521
2015-08-29 15:05:15 +00:00
Richard Frith-MacDonald
58b5d0f627 fix error getting text content
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38939 72102866-910b-0410-8b05-ffd578937521
2015-08-28 14:18:46 +00:00
Richard Frith-MacDonald
501dccc404 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38938 72102866-910b-0410-8b05-ffd578937521
2015-08-28 14:06:35 +00:00
Richard Frith-MacDonald
d91dd0b821 File handle deallocation fix suggested by David
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38937 72102866-910b-0410-8b05-ffd578937521
2015-08-28 09:21:45 +00:00
Richard Frith-MacDonald
ae55e1bce3 fixup error in description
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38936 72102866-910b-0410-8b05-ffd578937521
2015-08-27 15:48:46 +00:00
Richard Frith-MacDonald
3bcec1de16 Improve debug output
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38935 72102866-910b-0410-8b05-ffd578937521
2015-08-27 13:35:45 +00:00
Richard Frith-MacDonald
f1522b69aa try to fix include order to avoid BOOL problem on msys2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38925 72102866-910b-0410-8b05-ffd578937521
2015-08-24 13:03:01 +00:00
Richard Frith-MacDonald
11aa431bd6 need windows.h before winsock2.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38922 72102866-910b-0410-8b05-ffd578937521
2015-08-24 09:25:24 +00:00
Richard Frith-MacDonald
2a108f2235 include winsock2.h earlier
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38921 72102866-910b-0410-8b05-ffd578937521
2015-08-24 09:21:01 +00:00
Richard Frith-MacDonald
226220f77a gzip support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38899 72102866-910b-0410-8b05-ffd578937521
2015-08-17 16:18:00 +00:00
Richard Frith-MacDonald
78c05bfc01 Avoid compiler warnrings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38888 72102866-910b-0410-8b05-ffd578937521
2015-08-16 10:42:48 +00:00
Niels Grewe
36c62c850c Safety fix for parsing binary property lists
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38859 72102866-910b-0410-8b05-ffd578937521
2015-08-07 15:06:38 +00:00
Riccardo Mottola
cb977b3915 Minor cast fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38855 72102866-910b-0410-8b05-ffd578937521
2015-08-05 08:34:49 +00:00
Richard Frith-MacDonald
77f81a7c80 minor format tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38854 72102866-910b-0410-8b05-ffd578937521
2015-08-04 16:23:22 +00:00
Richard Frith-MacDonald
d1ea6cd995 Fix crasher if stream is opened more than once.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38841 72102866-910b-0410-8b05-ffd578937521
2015-07-27 09:50:15 +00:00
Richard Frith-MacDonald
14d22790b6 Another attempt to work with non-fragile abi
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38838 72102866-910b-0410-8b05-ffd578937521
2015-07-24 19:59:05 +00:00
Richard Frith-MacDonald
d4234288d5 Fix for nonfragile-abi
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38825 72102866-910b-0410-8b05-ffd578937521
2015-07-22 08:26:30 +00:00
Richard Frith-MacDonald
8659e297d3 fixup sizing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38811 72102866-910b-0410-8b05-ffd578937521
2015-07-16 16:24:15 +00:00
Niels Grewe
bac8e3a0f6 Fix a few more method names
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38808 72102866-910b-0410-8b05-ffd578937521
2015-07-16 10:41:09 +00:00
Richard Frith-MacDonald
5cbc47a238 minor performance tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38805 72102866-910b-0410-8b05-ffd578937521
2015-07-16 09:30:57 +00:00
Richard Frith-MacDonald
3b02814665 more updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38803 72102866-910b-0410-8b05-ffd578937521
2015-07-16 08:44:15 +00:00
Niels Grewe
46d97b3be0 Implement +addObjectsFromArray: on NSHashTable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38802 72102866-910b-0410-8b05-ffd578937521
2015-07-16 07:38:14 +00:00
Richard Frith-MacDonald
8e93dc85d3 More experimental code changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38801 72102866-910b-0410-8b05-ffd578937521
2015-07-15 15:26:29 +00:00
Richard Frith-MacDonald
841ddf78e0 memory usage interrogation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38799 72102866-910b-0410-8b05-ffd578937521
2015-07-15 14:14:21 +00:00
Richard Frith-MacDonald
1ab490d19a fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38795 72102866-910b-0410-8b05-ffd578937521
2015-07-14 20:41:10 +00:00
Richard Frith-MacDonald
136b8c8f49 speed up logging a bit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38793 72102866-910b-0410-8b05-ffd578937521
2015-07-14 18:51:30 +00:00
Richard Frith-MacDonald
78fd39fcd1 cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38792 72102866-910b-0410-8b05-ffd578937521
2015-07-14 18:29:10 +00:00
Richard Frith-MacDonald
b571ae5fb9 improve logging of threwad id on premature exit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38791 72102866-910b-0410-8b05-ffd578937521
2015-07-14 18:05:55 +00:00
Richard Frith-MacDonald
796c806c8e Use up to date DTD
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38789 72102866-910b-0410-8b05-ffd578937521
2015-07-14 17:04:45 +00:00
Richard Frith-MacDonald
d87aacee2f fdix minor buglet
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38774 72102866-910b-0410-8b05-ffd578937521
2015-07-09 11:44:20 +00:00
Richard Frith-MacDonald
7a001daabc improve memory allocation statistics report
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38773 72102866-910b-0410-8b05-ffd578937521
2015-07-09 11:37:37 +00:00
Richard Frith-MacDonald
999fda788a Thread diagnositc changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38768 72102866-910b-0410-8b05-ffd578937521
2015-07-08 12:54:15 +00:00
Niels Grewe
cb8fe8aebc Fix reporting namespace prefixes attributes when using the SAX2 parser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38746 72102866-910b-0410-8b05-ffd578937521
2015-07-03 15:07:08 +00:00
Richard Frith-MacDonald
8d25078d34 Improve lock description
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38723 72102866-910b-0410-8b05-ffd578937521
2015-06-30 10:49:19 +00:00
Richard Frith-MacDonald
ec04844484 Diagnostic for deadlocked threads
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38722 72102866-910b-0410-8b05-ffd578937521
2015-06-30 08:43:28 +00:00
Richard Frith-MacDonald
8c07ae4a05 Tidy to match conding conventions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38721 72102866-910b-0410-8b05-ffd578937521
2015-06-30 08:41:38 +00:00
Riccardo Mottola
50ea8586fa Remove set but unused variable
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38693 72102866-910b-0410-8b05-ffd578937521
2015-06-26 08:52:23 +00:00
Riccardo Mottola
f4ed6b91c2 Minor include fixes to avoid malloc.h warnings on OpenBSD.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38691 72102866-910b-0410-8b05-ffd578937521
2015-06-26 08:50:17 +00:00
Riccardo Mottola
c5dc2d494d base64EncodedDataWithOptions, base64EncodedStringWithOptions: first implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38634 72102866-910b-0410-8b05-ffd578937521
2015-06-14 16:17:17 +00:00
Richard Frith-MacDonald
37352097e3 Reproduce OSX padding behavior
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38604 72102866-910b-0410-8b05-ffd578937521
2015-06-08 07:46:02 +00:00
Richard Frith-MacDonald
d187e70974 stricter base64 decoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38602 72102866-910b-0410-8b05-ffd578937521
2015-06-08 07:14:38 +00:00
Richard Frith-MacDonald
4bce4d2978 Various updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38599 72102866-910b-0410-8b05-ffd578937521
2015-06-04 09:18:52 +00:00
Riccardo Mottola
9eac37b9c8 Add firstObject: method existing since 10.6
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38595 72102866-910b-0410-8b05-ffd578937521
2015-06-01 17:43:37 +00:00
Richard Frith-MacDonald
d7a6170f24 optimise search for a range for the case of a single character.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38573 72102866-910b-0410-8b05-ffd578937521
2015-05-27 05:18:47 +00:00
Richard Frith-MacDonald
70e0b51ae6 Fix error in range check
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38566 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:07:41 +00:00
Richard Frith-MacDonald
5f2a9f6fc5 Fix minor leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38560 72102866-910b-0410-8b05-ffd578937521
2015-05-26 13:26:30 +00:00
Richard Frith-MacDonald
bd07f71fbf fix mior leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38559 72102866-910b-0410-8b05-ffd578937521
2015-05-26 13:24:26 +00:00
Richard Frith-MacDonald
0bbdb77e1b fix minor leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38558 72102866-910b-0410-8b05-ffd578937521
2015-05-26 13:22:52 +00:00
Richard Frith-MacDonald
efe30f337a fix a few leaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38557 72102866-910b-0410-8b05-ffd578937521
2015-05-26 13:12:41 +00:00
Richard Frith-MacDonald
9d6729f4a7 remove a little unused code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38556 72102866-910b-0410-8b05-ffd578937521
2015-05-26 12:19:02 +00:00
Richard Frith-MacDonald
795aabc2d4 fixups to pass regression tests again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38555 72102866-910b-0410-8b05-ffd578937521
2015-05-26 12:10:20 +00:00
Sebastian Reitenbach
2ecc556c2f * Source/Additions/Unicode.m
* Tools/AGSOutput.m
          return NULL or nil instead of NO where pointers are to
          be returned

OK Richard Frith-Macdonald



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38553 72102866-910b-0410-8b05-ffd578937521
2015-05-26 11:54:30 +00:00
Richard Frith-MacDonald
db4c97c692 OSX compat update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38552 72102866-910b-0410-8b05-ffd578937521
2015-05-26 10:56:29 +00:00
Richard Frith-MacDonald
a43250585a fix sign extension error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38549 72102866-910b-0410-8b05-ffd578937521
2015-05-26 09:56:55 +00:00
Richard Frith-MacDonald
5ab0c3a6c7 Implement -mutableCopyWithZone: for tiny strings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38543 72102866-910b-0410-8b05-ffd578937521
2015-05-25 18:13:10 +00:00
Richard Frith-MacDonald
293606cda5 more utf8 optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38542 72102866-910b-0410-8b05-ffd578937521
2015-05-25 17:55:51 +00:00
Richard Frith-MacDonald
83dda5160c some optionisation of string equality test ... don't compute hash of string
unless the string is large enough to make it worthwhile.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38541 72102866-910b-0410-8b05-ffd578937521
2015-05-25 14:51:02 +00:00
Richard Frith-MacDonald
493a170d6a Another small optimisation for string creation ...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38540 72102866-910b-0410-8b05-ffd578937521
2015-05-25 11:47:13 +00:00
Richard Frith-MacDonald
1fbfe0cdf6 Small optimisation for creating NSString from UTF8 C string
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38539 72102866-910b-0410-8b05-ffd578937521
2015-05-25 11:11:24 +00:00
Richard Frith-MacDonald
5f0cf74552 xml performance fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38537 72102866-910b-0410-8b05-ffd578937521
2015-05-25 10:01:03 +00:00
Richard Frith-MacDonald
0b3e806557 remove a little redundant code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38535 72102866-910b-0410-8b05-ffd578937521
2015-05-24 21:22:58 +00:00
Richard Frith-MacDonald
b5a6e5c255 minor optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38534 72102866-910b-0410-8b05-ffd578937521
2015-05-24 20:10:49 +00:00
Richard Frith-MacDonald
ca40ca54c2 minor performance tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38530 72102866-910b-0410-8b05-ffd578937521
2015-05-24 14:12:42 +00:00
Richard Frith-MacDonald
696c4dd7a3 check to see if we should free memory
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38529 72102866-910b-0410-8b05-ffd578937521
2015-05-23 21:35:03 +00:00
Richard Frith-MacDonald
19ba70e988 Another tiny string optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38525 72102866-910b-0410-8b05-ffd578937521
2015-05-22 16:24:27 +00:00
Richard Frith-MacDonald
6297efeec9 optimisation and compatiblity tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38524 72102866-910b-0410-8b05-ffd578937521
2015-05-22 15:34:25 +00:00
Richard Frith-MacDonald
d8e9f81945 Some string optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38518 72102866-910b-0410-8b05-ffd578937521
2015-05-22 14:28:08 +00:00
Richard Frith-MacDonald
8556e8e744 Some optimisation for searcvhes in strings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38517 72102866-910b-0410-8b05-ffd578937521
2015-05-22 08:34:36 +00:00
Richard Frith-MacDonald
918fbdd6b0 preparations for release and Yavor's make distclean patch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38490 72102866-910b-0410-8b05-ffd578937521
2015-05-13 07:03:32 +00:00
Richard Frith-MacDonald
d789edd709 optimise removal of a range of objects from an array
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38479 72102866-910b-0410-8b05-ffd578937521
2015-05-06 10:42:00 +00:00
Richard Frith-MacDonald
ce991d339a implement -removeAllObjects
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38477 72102866-910b-0410-8b05-ffd578937521
2015-05-05 16:01:21 +00:00
Richard Frith-MacDonald
dee7d0fae5 Fixups to get acceptable performance from TinyString objects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38476 72102866-910b-0410-8b05-ffd578937521
2015-05-05 11:54:14 +00:00
Richard Frith-MacDonald
ebd05f162d fiF errors pointed out by Barnaby Jones
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38472 72102866-910b-0410-8b05-ffd578937521
2015-05-02 16:44:02 +00:00
Niels Grewe
6f2611363a Fix bug #43915 (equality not checked correctly for NSCountedSet)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38470 72102866-910b-0410-8b05-ffd578937521
2015-05-02 08:03:05 +00:00
Richard Frith-MacDonald
70749467e1 Improve absolute time zone caching
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38465 72102866-910b-0410-8b05-ffd578937521
2015-04-28 16:47:54 +00:00
Niels Grewe
67ee1eaf7b Fix a bug where the date format of the the formatter was reset when
you called -setTimeZone: -setLocale: or similar methods that require
recreating the UDateFormat (i.e. with ICU).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38463 72102866-910b-0410-8b05-ffd578937521
2015-04-28 15:18:47 +00:00
Richard Frith-MacDonald
422356c19f Try to better handle exception in method in another thread
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38448 72102866-910b-0410-8b05-ffd578937521
2015-04-02 15:59:48 +00:00
Richard Frith-MacDonald
a79dd60102 Impement test for main thread on linux
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38443 72102866-910b-0410-8b05-ffd578937521
2015-03-31 09:45:40 +00:00
Richard Frith-MacDonald
8a265fe615 Improve thread ID and name code to match OSX. Add some initial getaddrinfo code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38442 72102866-910b-0410-8b05-ffd578937521
2015-03-31 09:14:01 +00:00
Richard Frith-MacDonald
04815b06fb fix for possible crash during thread exit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38406 72102866-910b-0410-8b05-ffd578937521
2015-03-13 18:31:14 +00:00
Niels Grewe
b968b38b09 Fix a vulnerability in the timsort algorithm where an algorithmic problem caused an
invariant to no longer hold for certain inputs, potentially leading to a read beyond
an array boundary (result in a segfault under our implementation).
See http://www.envisage-project.eu/proving-android-java-and-python-sorting-algorithm-is-broken-and-how-to-fix-it/
for an in-depth explanation of the problem. Also: ‘Yeah!’ for formal verification!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38391 72102866-910b-0410-8b05-ffd578937521
2015-03-10 11:43:03 +00:00
Richard Frith-MacDonald
87142c6535 Fix looping session startup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38386 72102866-910b-0410-8b05-ffd578937521
2015-03-08 09:22:11 +00:00
Richard Frith-MacDonald
17fc6e1aeb fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38379 72102866-910b-0410-8b05-ffd578937521
2015-03-05 06:50:24 +00:00
Richard Frith-MacDonald
022c5be3eb NSLog updates for consistency with latest OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38370 72102866-910b-0410-8b05-ffd578937521
2015-03-01 19:37:28 +00:00
Wolfgang Lux
472d8232b1 Fix leak of open file descriptor in NSData -writeToFile:atomically: on
systems where mkstemp is defined.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38344 72102866-910b-0410-8b05-ffd578937521
2015-02-16 17:27:57 +00:00
Richard Frith-MacDonald
9fcfab1a93 fix for bug # 44240
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38340 72102866-910b-0410-8b05-ffd578937521
2015-02-14 05:50:48 +00:00
Richard Frith-MacDonald
1fa5505332 another mingw infconfig simplification to hopefully work with new mingw
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38336 72102866-910b-0410-8b05-ffd578937521
2015-02-07 11:01:53 +00:00
Richard Frith-MacDonald
3cb7256630 simplify ifdefs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38335 72102866-910b-0410-8b05-ffd578937521
2015-02-07 10:46:42 +00:00
Niels Grewe
32a1484a7e Standardize paths when setting up a mapping between a data item
and a specific filesystem location (to make sure that it is retrieved
correctly by the TLS system).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38334 72102866-910b-0410-8b05-ffd578937521
2015-02-05 11:16:40 +00:00
Richard Frith-MacDonald
60a0f7ce5b minor fixes for 64bit systems using collection with more than 2^32 items
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38295 72102866-910b-0410-8b05-ffd578937521
2015-01-16 15:25:50 +00:00
Richard Frith-MacDonald
13e4d77cec fix hash generation for 64bit processors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38294 72102866-910b-0410-8b05-ffd578937521
2015-01-16 14:29:38 +00:00
Wolfgang Lux
becd0e8a83 Fix detection of the proper pthread_setname_np and pthread_set_name_np
variants on FreeBSD, OpenBSD and Darwin.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38266 72102866-910b-0410-8b05-ffd578937521
2014-12-28 13:19:19 +00:00
Wolfgang Lux
401cdce4d2 Fixes to build again when tls is disabled
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38265 72102866-910b-0410-8b05-ffd578937521
2014-12-28 11:59:36 +00:00
Richard Frith-MacDonald
01e9c92d9e imor fixup for systems without nstzfile.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38258 72102866-910b-0410-8b05-ffd578937521
2014-12-23 14:36:02 +00:00
Riccardo Mottola
6485366084 Provide NAN constant for Solaris if not available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38257 72102866-910b-0410-8b05-ffd578937521
2014-12-23 00:31:46 +00:00
Riccardo Mottola
ebe325366f Fix code-path for non AF_INET6
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38256 72102866-910b-0410-8b05-ffd578937521
2014-12-22 23:28:06 +00:00
Richard Frith-MacDonald
ad7cf880ac remove unnecessary logs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38223 72102866-910b-0410-8b05-ffd578937521
2014-12-02 17:00:00 +00:00
Richard Frith-MacDonald
ca81536515 fix (and test) for bug #43722
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38213 72102866-910b-0410-8b05-ffd578937521
2014-11-29 11:02:23 +00:00
Richard Frith-MacDonald
e6ed085192 integrate patch from johannes@brilliantservice.co.jp
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38212 72102866-910b-0410-8b05-ffd578937521
2014-11-28 18:38:24 +00:00
Richard Frith-MacDonald
31d8deebe8 improve comments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38196 72102866-910b-0410-8b05-ffd578937521
2014-11-22 22:23:57 +00:00
Richard Frith-MacDonald
10e9694f72 Patches by Sergei Golovin
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38188 72102866-910b-0410-8b05-ffd578937521
2014-11-20 09:43:21 +00:00
Richard Frith-MacDonald
e3e638a58a minor optimisation ... avoid unnecessary retain/release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38187 72102866-910b-0410-8b05-ffd578937521
2014-11-20 09:40:23 +00:00
Richard Frith-MacDonald
80642b790c better handling of removed user default values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38162 72102866-910b-0410-8b05-ffd578937521
2014-11-05 15:31:19 +00:00
Richard Frith-MacDonald
50984de599 try to make thread synchronisation I/O cleaner and perhaps safer if we do
something like run out of file descriptors for the pipe.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38153 72102866-910b-0410-8b05-ffd578937521
2014-11-04 09:08:47 +00:00
Richard Frith-MacDonald
959843ce81 fix leak of handle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38144 72102866-910b-0410-8b05-ffd578937521
2014-11-01 11:11:46 +00:00
Richard Frith-MacDonald
04971f62ff Fix for bug #43461 by Sergei Golovin
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38140 72102866-910b-0410-8b05-ffd578937521
2014-10-30 09:55:40 +00:00
Richard Frith-MacDonald
1400bcefcf bugfix release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38120 72102866-910b-0410-8b05-ffd578937521
2014-10-17 13:42:34 +00:00
Richard Frith-MacDonald
cb1bb1c7e7 Add GSLogOffset to include time zone offset in NSLog output
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38018 72102866-910b-0410-8b05-ffd578937521
2014-07-28 14:40:29 +00:00
Richard Frith-MacDonald
bac39eafec attempt to fix possible problem with early release of ostream
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38017 72102866-910b-0410-8b05-ffd578937521
2014-07-28 09:29:55 +00:00