rfm
4db3f5c881
Merge pull request #220 from levinli303/patch-1
...
Do not call handler blocks if they are nil
2021-12-21 08:39:38 +00:00
Richard Frith-Macdonald
40de7fa39a
Try to improve tls disconnect behavior where there are networking issues
2021-12-07 19:28:23 +00:00
Steven R. Baker
7525d942b7
Add the NSDebugEnabled boolean
2021-11-30 21:14:29 +00:00
Richard Frith-Macdonald
0950bed43b
Tweak whitespace for code consistency
2021-11-29 14:01:41 +00:00
Richard Frith-Macdonald
85711ee5f8
coding standard tweaks
2021-11-27 10:59:15 +00:00
Levin Li
5b151c5fa0
Do not call handler blocks if they are nil
2021-11-23 18:34:34 +08:00
Frederik Seiffert
0af2c6de72
Add required cast in case nil is not defined as id
2021-11-13 22:16:46 +01:00
Richard Frith-Macdonald
b55ee6b0c5
Clarify that run loop watchers are NOT retained, and are responsible for removing themselves from the run loop when they have finished watching for events.
2021-11-11 10:01:52 +00:00
Mads Marquart
4033ee28a8
Fix NSGetSizeAndAlignment usage
...
The argument order is (*sizep, *alignp), but it was often incorrectly used the other way around.
2021-11-02 10:18:05 +01:00
Mads Marquart
d439847ba6
Fix NSData initWithBytesNoCopy:length:deallocator:
...
The previous implementation simply swizzled `NSData` into `NSDataWithDeallocatorBlock`, and forgot to actually assign `bytes` and `length`.
2021-10-29 09:17:56 +02:00
Frederik Seiffert
47480d781a
Add missing export declarations required by libs-gui on Windows MSVC
2021-10-26 10:28:51 +02:00
Frederik Seiffert
80f05c2278
Fix -[NSFileManager URLForDirectory:...] using incorrect NSURL initializer and simplified implementation
2021-10-20 18:42:21 +02:00
Richard Frith-Macdonald
c307a04a39
Fix minor leaks
2021-09-16 10:25:26 +01:00
Richard Frith-Macdonald
149acc40ae
fix minor potential leaks
2021-09-16 10:20:41 +01:00
Nuntius
b2983dc77a
Workaround for the session retain loop
2021-09-04 13:07:14 +02:00
Nuntius
a5c66e7c5d
Apply requested changes
2021-08-29 17:47:01 +02:00
Nuntius
a0ab740234
Implement URLSession:downloadTask:didFinishDownloadingToURL: delegate
2021-08-28 20:33:19 +02:00
Nuntius
d3e40dfc9d
Begin implementation of NSURLSessionDownloadTask
2021-08-27 21:56:08 +02:00
Richard Frith-Macdonald
6d5084e3e1
Delete commented out code accidentally left in on last commit
2021-08-27 10:52:32 +01:00
Richard Frith-Macdonald
00db92e146
Merge remote-tracking branch 'origin/master' into nstimezone
2021-08-27 09:37:51 +01:00
Richard Frith-Macdonald
0d12a1e77e
Changes to address mostm of Fred's comments
2021-08-27 09:19:38 +01:00
Frederik Seiffert
170701f7e6
Fix building for Windows MSVC with recent toolchain
2021-08-19 11:05:33 +02:00
rfm
1e8ff8e628
Merge branch 'master' into nstimezone
2021-08-18 14:52:24 +01:00
Richard Frith-Macdonald
1fe008304a
Formatting tidyups
2021-08-18 14:03:25 +01:00
Nuntius
ca5e4fc239
Adjust formatting
2021-08-17 15:03:09 +00:00
Nuntius
c3daa41f2d
Fix indentation
2021-08-17 13:57:37 +00:00
Nuntius
866bdd0636
Merge branch 'master' of https://github.com/Fokka-Engineering/libs-base into new-nsurl-methods
2021-08-17 13:00:09 +00:00
Nuntius
9b3caf99fd
Implement 10.11 NSURL initFileURLWithPath: initializers
2021-08-17 10:30:19 +00:00
Richard Frith-Macdonald
96ef94862f
Add debug log for certificat request which is not for x509
2021-08-17 11:10:23 +01:00
Richard Frith-Macdonald
ae8d496f91
Remove spurous line in last change
2021-08-16 14:00:09 +01:00
Richard Frith-Macdonald
19809ac46d
tweak for ms-windows
2021-08-16 12:48:48 +01:00
Richard Frith-Macdonald
78ab878029
more simplifications and removal of unused defines etc
2021-08-16 11:45:42 +01:00
Richard Frith-Macdonald
a0852146c9
Avoid O_CLOEXEC for portability
2021-08-14 12:49:12 +01:00
Richard Frith-Macdonald
b71a5bfc40
Use our own struct tm
2021-08-14 12:43:44 +01:00
Richard Frith-Macdonald
11c50770d3
Use our own struct tm equivalent for portability
2021-08-14 12:42:26 +01:00
Richard Frith-Macdonald
2f2869ff20
Remove some useless defines and declarations
2021-08-14 12:22:03 +01:00
Richard Frith-Macdonald
c43ea6d474
Update for handling more future dates, and further testing.
2021-08-14 11:25:23 +01:00
Frederik Seiffert
f67c99dbcc
win32: initialize Windows Sockets in NSObject only
...
And update to Windows Socket version 2.2. Also clean up the DllMain initialization to handle CRT init errors and call _CRT_INIT also on DLL/thread detach, and remove uneeded .idata section after removing WSAStartup() import.
WSAStartup() should not be called from DllMain according to MS documentation. Fixes #186 .
2021-08-11 19:32:21 +02:00
Frederik Seiffert
b2f2a3a429
win32: fix warnings
2021-08-11 19:32:21 +02:00
Frederik Seiffert
acde7b062a
Fix release method signature to match NSObject
2021-08-11 19:32:21 +02:00
Frederik Seiffert
27c06a9209
Fix various incorrect format string types
2021-08-11 19:32:21 +02:00
Frederik Seiffert
87dc8ab70c
Fix incorrect method signature in win32/NSMessagePort
2021-08-11 19:32:21 +02:00
Frederik Seiffert
5a46f744df
Fix incorrect string format in NSException
2021-08-11 19:32:21 +02:00
Frederik Seiffert
2d45396de0
Fix various incorrect log statements
2021-08-11 19:32:21 +02:00
Richard Frith-Macdonald
5162d888dc
timezone updates for version2 files
2021-08-11 08:43:20 +01:00
Richard Frith-Macdonald
25b25080c3
Fix possible buffer overrun/corruption spotted by Fred.
2021-08-09 08:29:15 +01:00
Frederik Seiffert
35ef9423e0
Annotate callback functions with __stdcall on Windows
...
Fixes crash on exit on Windows x86.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
55da62c1c1
Add missing import declaration on runtime declarations
...
Fixes warnings when building for Windows MSVC.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
40f88bc622
Enable _C_BOOL on non GNU C compilers
2021-08-08 17:27:40 +02:00
Frederik Seiffert
3b8009654c
Improve robustness of finding devroot on Windows
...
Fixes possible infinite loop if developer root is not found.
Also disable devroot() code under MSVC, as there will be no MSYS environment.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
b41953d274
More robust check for Windows ICU
...
Also ensure that we don't include both unicode/*.h and icu.h.
2021-08-08 17:27:40 +02:00
Frederik Seiffert
dc32970502
Add support for using ICU DLL from Windows 10
...
Requires Windows 10 version 1903 (May 2019 Update):
https://docs.microsoft.com/en-us/windows/win32/intl/international-components-for-unicode--icu-
Also adds missing configure check for unicode/utext.h.
2021-08-03 16:52:38 +02:00
Frederik Seiffert
cf2dae1e21
Improve NSThread thread priority error handling
...
Now using sched_get_priority_min/max instead of PTHREAD_MIN/MAX_PRIORITY defines, and prevent error log when min/max priority are equal (e.g. 0), which happens e.g. on Android when thread priorities are not settable.
2021-07-29 14:22:27 +02:00
Frederik Seiffert
abfe4e2a04
Use native threading and locking APIs on Windows
...
Removes dependency on pthread library and uses fast Slim Reader/Writer (SRW) locks for NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being used for all internal locking instead of pthread APIs.
Also adds support for thread priorities on Windows, fixes method signature of +[NSThread setThreadPriority:] to match Apple platforms, and adds error handling in same method.
2021-07-29 14:22:27 +02:00
Richard Frith-Macdonald
3b8bbb00ba
Try to make timezone parsing more robust: always use standard header for posix time zone files.
2021-07-29 10:35:19 +01:00
Richard Frith-Macdonald
0b3f2a9fb0
Fixup for incorrect method implementation used in sloppy parser.
2021-07-26 14:57:41 +01:00
Richard Frith-Macdonald
395fafde6f
Set file version consistently to avoid misunderstanding
2021-07-25 07:50:31 +01:00
Richard Frith-Macdonald
7245156336
Add sup[port for 64bit time transitions
2021-07-22 10:33:49 +01:00
Frederik Seiffert
a377a86094
Fix possible memory corruption in string handling
2021-07-19 12:23:15 +02:00
Frederik Seiffert
813ae35d39
Export GSPathHandling() in GNUstep headers.
...
Fixes linker errors for some tests under Windows MSVC.
2021-07-14 10:09:45 +02:00
Frederik Seiffert
47ed291b80
Fix possible heap corruption when converting to NSNonLossyASCIIStringEncoding.
2021-07-03 08:34:14 +02:00
Richard Frith-Macdonald
a29248bd4d
Differentiate between client/server for DO over TLS
2021-06-24 08:50:28 +01:00
Richard Frith-Macdonald
640198a395
add missing brace
2021-06-21 09:15:11 +01:00
Richard Frith-Macdonald
e34584e323
Encryption emprovements
2021-06-19 14:40:47 +01:00
Richard Frith-Macdonald
b252f4067a
remove a couple of redundent lines
2021-06-18 10:02:48 +01:00
rfm
a1b0c1c8db
Merge pull request #185 from triplef/fix-unicode-lookup
...
Fix lookup of string encodings with high numeric values in encoding table
2021-06-18 10:01:36 +01:00
Frederik Seiffert
8137b5a2a0
Fix lookup of string encodings with high numeric values in encoding table
2021-06-17 17:53:22 +02:00
Richard Frith-Macdonald
dd3b6c3d7f
fix typo in name
2021-06-17 16:22:31 +01:00
Richard Frith-Macdonald
7ea49c252b
encryption fixes and debug improvements
2021-06-03 14:59:09 +01:00
Richard Frith-Macdonald
e9d3ba8179
Improve debug logging ... use the I/O handle as the tag for debug logs so that they can more easily be matched to the object for which the I/O is taking place.
2021-06-03 14:54:16 +01:00
Richard Frith-Macdonald
2fc16eae5e
Tidyups for when TLS is not used
2021-06-02 14:12:28 +01:00
Richard Frith-Macdonald
f72f46efa4
Minor debug improvement
2021-06-02 13:32:44 +01:00
Richard Frith-Macdonald
a2298990fc
Improve debug logging and fix tls session startup when we have to try connecting to multiple possible destinations
2021-06-01 16:32:25 +01:00
Richard Frith-Macdonald
dd52dfb36d
Do more logging based on 'RMC' so we can track send/receive of messages
2021-06-01 16:31:21 +01:00
Richard Frith-Macdonald
29f76a5cba
minor thread safety fix
2021-05-31 14:27:42 +01:00
Richard Frith-Macdonald
e42d9fdc6b
New code for secure (encrypted) inter-host distrinuted objects.
2021-05-31 13:19:42 +01:00
Richard Frith-Macdonald
1bcb73f0f8
If space becomes available for a stream whose status is writing, we
...
should change the status to be open (the write completed).
2021-05-23 10:58:09 +01:00
Richard Frith-Macdonald
391c00b058
Added some debug logging
2021-05-19 11:15:29 +01:00
Richard Frith-Macdonald
12c88716d0
indentation tweaks
2021-05-19 11:06:10 +01:00
rfm
1aa11956b5
Merge pull request #183 from gnustep/windows-keepalive-fix
...
The portable way to detect if a socket is reusable or has been closed
2021-05-19 10:57:54 +01:00
Richard Frith-Macdonald
8b8fe60070
break out of loop if write fails
2021-05-15 17:53:44 +01:00
Richard Frith-Macdonald
ed9bb899a7
Support writing large chunks of data over tls on windows
2021-05-15 16:10:23 +01:00
Richard Frith-Macdonald
782e7aed31
Fix for -setHTTPMaximumConnectionLifetime:
2021-05-05 12:04:28 +01:00
Richard Frith-Macdonald
713c7c0f7e
Fix one character truncation of certificate name/issuer in debug output
2021-04-28 15:27:23 +01:00
Richard Frith-Macdonald
31f2528b93
Ignore GS_EXPORT_CLASS when generating documentation for base/additions
2021-04-23 06:56:00 +01:00
Richard Frith-Macdonald
bd5f2909e6
Simplify conversion of a string to data (use base class code) and fix to handle the insertion of BOM consistently (as on OSX) for encodings where the byte order matters but is not specified by the encoding.
2021-04-14 09:57:11 +01:00
Riccardo Mottola
19d76d2478
The portable way to detect if a socket is reusable or has been closed
...
was failed, since its test read would leave the file handle with a read
in progress, invalidating further background reads. More recent versions
of Windows seem to handle the unix way.
2021-04-13 23:59:45 +02:00
Frederik Seiffert
843800d413
Add support for libobjc2 runtime in NSObject on Windows
2021-03-29 11:22:00 +02:00
Frederik Seiffert
0582eddd96
Export string constants and annotate exported function implementations
...
Moves scattered string constants to externs.m, and removes obsolete code replacing constant strings.
2021-03-27 17:36:15 +01:00
Frederik Seiffert
fb84b3b1e8
Revert "Export objc_enumerationMutation."
...
This is now correctly exported in the libobjc2 runtime.
This reverts commit c52f1e3223
.
2021-03-26 21:03:48 +01:00
Frederik Seiffert
b05481a8c8
Don't resurrect GSFileHandle singletons.
...
It seems to be no longer possible to call -retain from -dealloc with the latest libobjc2, which was causing the tests to fail.
We are also throwing an exception in this case, which would need to be specifically caught in order for the resurrection to be of value to users, so this simply removes the -retain call and resets the singleton variables to nil in order to not have invalid pointers and for the singletons to be re-created on subsequent access.
2021-03-26 13:17:36 +01:00
Frederik Seiffert
c52f1e3223
Export objc_enumerationMutation.
...
When using clang a call to this is inserted by the compiler, so we need to always export it.
2021-03-26 13:17:36 +01:00
Frederik Seiffert
7800e27879
Add missing GS_EXPORT annotations to various string constants.
2021-03-26 13:17:36 +01:00
Riccardo Mottola
c9020acd4b
suppress warning, compiler is confused by exception handler
2021-03-18 23:06:54 +01:00
Richard Frith-Macdonald
b489f9b82b
Changes to detect that bfd_get_section_vma has changed to bfd_section_vma and make corresponding changes so we can support use of binutils 2.34 and later.
2021-03-18 21:35:34 +00:00
Richard Frith-Macdonald
4e61056743
The code in GSPrivateReturnAddresses() and the -symbols method must have ifdefs in matching order so that setup of the information from the stack matches the code used to generate the corresponding symbols.
2021-03-18 20:17:35 +00:00
Frederik Seiffert
5fb5fb46c4
Win MSVC: add NSFileManager support
...
Also unifies _CHAR in NSFileManager with GSNativeChar, as they are internally required to be the same.
2021-03-17 17:42:15 +01:00
Frederik Seiffert
54ae296b69
Fix libdispatch integration compilation error on Windows.
2021-03-17 17:42:15 +01:00
Richard Frith-Macdonald
d7e4086f6b
Rewrite handling of tls handshake to operate asynchronously, attempting continuation of the handshake when the socket becomes readable. The point of this is to prevent recursive entry into the runloop (and possible stack overflow) if the remote end fails to send anything for a while.
2021-03-05 11:54:32 +00:00
Frederik Seiffert
172e75b865
Add unscheduled NSTimer block initializer.
2021-03-03 10:03:14 +01:00
Richard Frith-Macdonald
7c9c3b8605
Fix potential deadlock found by Wolfgang
2021-02-22 15:59:29 +00:00
Richard Frith-Macdonald
edc771775f
fix missing check to see whether we have already initialised
2021-02-18 21:27:21 +00:00
Richard Frith-Macdonald
958449e90f
Initialise XMLParser in main thread
2021-02-18 21:18:41 +00:00
Richard Frith-Macdonald
a93eab8549
fix typos in comments and remove leftover debug line
2021-02-15 19:58:30 +00:00
Richard Frith-Macdonald
b45feeb8d7
Fixes for SSL/TLS support using GNUTLS under MinGW. Use send/recv
...
rather than read/write in TLS push/pull functions (works with winsock
and unix) and perform mappings between winsock error codes and
unix/gnutls error codes so that we correctly repeat operations whe they
fail in non-blockign mode.
2021-02-13 11:08:06 +00:00
Richard Frith-Macdonald
19c32ba0f5
Enable NSFileHandle TLS support under mingw
2021-02-11 20:03:41 +00:00
Richard Frith-Macdonald
8f0a021adb
Fix failure to send large requests, when the write operation succeeds but we have not written all the data we need to, we should write more as long as the stream has space available.
2021-02-06 11:23:09 +00:00
Richard Frith-Macdonald
b8169e26eb
Fix null pointer dereference
2021-02-04 11:00:05 +00:00
Richard Frith-Macdonald
be173ab404
Fix resource leaks (failure to close) on error.
2021-02-03 16:23:43 +00:00
Frederik Seiffert
61709e6101
Support building on Windows with Clang MSVC target
2021-02-03 15:02:27 +01:00
Riccardo Mottola
ece6fc97ff
Add check for statbuf.st_mtim if available and use statbuf.st_mtim to get nanosecond precision in modification date, also fix conversion of nanoseconds in creation date.
2021-02-02 23:30:18 +01:00
Richard Frith-Macdonald
625e8541a9
Call -cancel at the end of a synchronous load so that we stop our NSURLProtocol instance from retaining us as its client.
2021-01-26 14:38:29 +00:00
Richard Frith-Macdonald
747f47d83d
Mark function call as requiring void return; hint to tell coverity that we do not want the return value from this function (there's nothing we could do with it and the function should never fail with the input we provide).
2021-01-25 12:25:49 +00:00
Richard Frith-Macdonald
4d0dc010ab
Was checking incorrect variable to avoid assignment to nul pointer.
2021-01-21 14:27:21 +00:00
Richard Frith-Macdonald
72af51982f
fix leak of set
2021-01-18 12:20:46 +00:00
Richard Frith-Macdonald
925023e8c0
Fix leak evaluating a cast
2021-01-18 11:56:44 +00:00
Richard Frith-Macdonald
d63b2e0035
Fix memory leaks
2021-01-18 11:52:37 +00:00
Richard Frith-Macdonald
fe7d9b6435
Use NSZoneMalloc and NSZoneRealloc for memory used by data, so it is in the correct zone for the instance (and to avoid complaints from static analyser).
2021-01-18 11:47:39 +00:00
Richard Frith-Macdonald
dca9b65313
Remove stream from handler upon deallocation, to avlid handler sending messages to deallocated stream.
2021-01-16 06:23:25 +00:00
Richard Frith-Macdonald
fa27dfeed4
Fix failure to re-set flag to say whether a string is unicode
2020-12-30 09:12:37 -05:00
Richard Frith-Macdonald
d664bd89e8
Fix potential problem with new optimisation for direct access to contents of 8bit strings ... when the decimal separator is not an ascii character we may need to convert the 8bit value to unicode.
2020-12-30 12:54:19 +00:00
Richard Frith-Macdonald
3dc437524e
Use new private method to scan double values.
2020-12-30 12:25:18 +00:00
Richard Frith-Macdonald
657e49edeb
Remove internal GSScanInt and GSScanDouble functions after moving functionality into the -scanDouble: method. Add private class method to support scanning a string for a double without having to create a new scanner each time (use a shared lock-protected, instance with resetting of the string being scanned).
2020-12-30 11:58:19 +00:00
Richard Frith-Macdonald
168dd211e3
remove unused header import
2020-12-30 11:55:44 +00:00
Richard Frith-Macdonald
95c10d7fa7
Use superclass implementation of -doubleValue and -floatValue
2020-12-30 11:54:57 +00:00
Richard Frith-Macdonald
81021528e1
Change -scanDouble: to call GSScanDouble() to perform conversion. Fix GSScanDouble to cope with leading zeros.
2020-12-29 11:54:34 +00:00
Richard Frith-Macdonald
6d20773f56
Consistently use __typeof__() rather than typeof() or __typeof() for compatibility (GCC and clang and, perhaps, other future compilers) irrespective of -std= compilation options.
2020-12-15 13:01:00 +00:00
Richard Frith-Macdonald
bcbdeb64a8
Fix initialisation of NSUUID from string (permit mixed case hex digits)
2020-12-15 10:40:55 +00:00
Richard Frith-Macdonald
c1d98567a8
fixup incorrect commit
2020-12-11 12:19:52 +00:00
Richard Frith-Macdonald
31fbd3f9c7
Improve diagnostic logging
2020-12-11 12:12:59 +00:00
Richard Frith-Macdonald
afde524e82
Fix unused variable on windows
2020-12-09 16:37:22 +00:00
Richard Frith-Macdonald
c2fea0a825
Add fake interface for NSUserDefaultsWin32 to avoid compiler warning
2020-12-09 15:17:46 +00:00
Richard Frith-Macdonald
02b69ca57e
Only declare variables for systems which use them.
2020-12-09 15:12:11 +00:00
Richard Frith-Macdonald
db4c3c1006
Fix typo in comment (incorrect RFC number)
2020-12-07 11:46:09 -05:00
Richard Frith-Macdonald
b8f1fc4129
Avoid compiler warnings when we do not have real blocks
2020-12-07 07:47:15 -05:00
Richard Frith-Macdonald
dfba8adba7
Fixup to import local headers rather than installed versions
2020-12-07 07:34:44 -05:00
Richard Frith-Macdonald
ea9aa71eeb
Avoid compiler warnings on system with pseudo-blocks
2020-12-07 07:23:30 -05:00
Richard Frith-Macdonald
10a8e9faf8
fix format string error in -description
2020-12-07 11:21:16 +00:00
Richard Frith-Macdonald
3bf1fc5490
Improve diagnostic output
2020-12-07 11:18:51 +00:00
Richard Frith-Macdonald
d7e5158a09
An error in a socketpair only applies to the other socket if still opening
2020-12-06 09:38:17 -05:00
Richard Frith-Macdonald
71e636cf49
Use uinsigned logn for fast enumeration version counter
2020-12-04 11:16:13 -05:00
Richard Frith-Macdonald
e111315f87
fix typo
2020-12-04 11:09:33 -05:00
Richard Frith-Macdonald
09e527c0fd
Fix to make value pointed to by mutationsPtr be unsigned long.
2020-12-04 11:08:16 -05:00
Richard Frith-Macdonald
897e5fc7dd
Fix range check for decoded 32bit integer
2020-12-04 06:04:22 -05:00
Richard Frith-Macdonald
60038cbf38
Merge branch 'master' of ssh://github.com/gnustep/libs-base into master
2020-12-04 04:44:02 -05:00
Richard Frith-Macdonald
02d1cbd34d
Suppress warnings about use of 'private' functions from libdispatch
2020-12-04 04:43:28 -05:00
Richard Frith-Macdonald
190bafad72
declare external block as const void rather than void for consistency and to avoid compiler warning
2020-12-04 04:36:42 -05:00
Richard Frith-Macdonald
aeca9c8698
Suppress dll import warnings for objc_enumerationMutation() on mingw
2020-12-04 04:25:39 -05:00
Richard Frith-Macdonald
468b62bdde
use memcpy rather than strncpy to avoid compiler warnings
2020-12-03 12:54:41 -05:00
Richard Frith-Macdonald
facfbad126
avoid compiler warning
2020-12-03 12:48:22 -05:00
Richard Frith-Macdonald
8141fe03f7
use memcpy rather than strncpy to avoid compiler warning
2020-12-03 12:29:53 -05:00
Richard Frith-Macdonald
679272b50c
Use memcpy rather than strncpy/strncat to avoid compiler warnings
2020-12-03 12:07:33 -05:00
Richard Frith-Macdonald
379f5f0040
use memcpy rather than strncpy to avoid compiler warnings
2020-12-03 11:59:37 -05:00
Richard Frith-Macdonald
f18594ff3e
tweaks to avoid compiler warnings
2020-12-03 11:56:14 -05:00
Richard Frith-Macdonald
1b7bf26bea
Merge changes for NSURLSession from EngageHub (formerly Brainstorm).
2020-11-29 06:57:47 -05:00
Richard Frith-Macdonald
0dbd863dde
Add optimisation for the use of GSImmutableString so that it can make use of the layout of the underlying mutable string that the GSImmutableString is a proxy for.
2020-11-22 09:55:39 -05:00
Richard Frith-Macdonald
7fcd11d6c9
Rewrite -replaceCharactersInRange:withString: to cope with the case where the string argument is the receiver (or some proxy to the receiver etc).
2020-11-22 08:08:34 -05:00
Richard Frith-Macdonald
3bb72398ee
Report YES for GSImmutableString being a proxy
2020-11-22 08:08:00 -05:00
Richard Frith-Macdonald
5ec87d80b4
Fix for text storage objects setting their content to their own immutable proxy
2020-11-21 08:23:53 +00:00
Richard Frith-Macdonald
1170e0c0c1
add casts to avoid compiler warnings
2020-11-20 01:42:33 -05:00
Richard Frith-Macdonald
aa0beb0758
Minor tidyup for clearer indentation
2020-11-19 08:33:20 -05:00
Richard Frith-Macdonald
8178e52806
Correct checks for validity of the second UTF16 value in a surrogate pair
2020-11-19 08:27:06 -05:00
rfm
d27dcfbed6
Merge pull request #164 from triplef/add-nsfilehandle-url-methods
...
Add NSFileHandle URL initializers.
2020-11-18 09:21:13 +00:00
Richard Frith-Macdonald
e7035cadf3
Be defensive about checking for key beginning with @
2020-11-18 09:09:48 +00:00
Frederik Seiffert
88a2e0809f
Add NSFileHandle URL initializers.
...
Also use "instancetype" for all initializers.
2020-11-17 19:48:05 +01:00
Richard Frith-Macdonald
d4df4b6d87
Add methods to control size of in-memory queue os emails
2020-11-14 04:25:34 +00:00
Richard Frith-Macdonald
23d431234c
Fix bug in offset
2020-11-13 05:41:42 +00:00
Richard Frith-Macdonald
a34beadb8e
Merge branch 'gnustep_testplant_mergeback' of https://github.com/TestPlant/libs-base into TestPlant-gnustep_testplant_mergeback
...
Conflicts:
ChangeLog
2020-11-13 05:39:15 +00:00
Frederik Seiffert
06fa7792a5
Fix compilation with ICU 68.
2020-11-12 17:18:09 +01:00
Richard Frith-Macdonald
ae90743153
Avoid building unused functions when new string API is used.
2020-11-11 22:23:13 +00:00
rfm
17af685b1a
Merge branch 'master' into nsurl-additions
2020-11-06 09:36:42 +00:00
rfm
8ccd6e2675
Merge pull request #102 from Artoria2e5/pluti
...
Add plutil utility
2020-11-06 09:12:33 +00:00
Richard Frith-Macdonald
efabfab3d0
Merge branch 'master' of ssh://github.com/gnustep/libs-base
2020-10-29 09:05:51 +00:00
Richard Frith-Macdonald
2b840550f0
Improve logging of an exception when posting a notification so that, if possible, we include the details of the notification being posted.
2020-10-29 09:04:51 +00:00
Gregory John Casamento
2ba26ce34a
fix for compilation error
2020-10-27 09:44:21 -04:00
Gregory Casamento
e5a7733f04
Merge pull request #161 from gnustep/nsurlconnection_10_5_methods
...
Add methods from 10.5
2020-10-27 08:14:22 -04:00
Gregory John Casamento
85f590f88e
Add methods for 10.5
2020-10-26 23:53:11 -04:00
Richard Frith-Macdonald
feac65a23f
Fix use of potentially invalid value from heap
2020-10-24 17:54:55 +01:00
Adam Fox
0b69d88ee2
Implementation of [NSData rangeOfData:options:range], adapted from [NSString rangeOfString:options:range].
2020-10-12 12:22:00 -06:00
Richard Frith-Macdonald
ba5b950fa5
fix retain/release error
2020-10-11 11:24:49 +01:00
Richard Frith-Macdonald
57efbdb09e
improve comments
2020-10-03 15:18:21 +01:00
Richard Frith-Macdonald
21839365a9
Remove unnecessary retain/release
2020-09-30 10:08:36 +01:00
Richard Frith-Macdonald
98dfa140ec
added autorelease pool around each operation to catch any autoreleased
...
objects produced by the operation being executed. This should prevent
objects living until the end of the thread.
2020-09-30 09:56:24 +01:00
Richard Frith-Macdonald
6ae48bd3d3
Tidied code
2020-09-30 09:55:43 +01:00
Richard Frith-Macdonald
7977bcb19d
Tidied some whitespace/indentation and removed obsolete comment
2020-09-21 11:41:39 +01:00
Riccardo Mottola
18dfe7b8f6
Windows linker doesn't really support WEAK symbols, not even with gcc10. binutils 2.3.5 fails to link because not all symbols were exported
2020-09-17 23:46:37 +02:00
Richard Frith-Macdonald
938f280b87
Implement fast enumeration for insensitive dictionary
2020-09-08 15:14:19 +01:00
fredkiefer
7dc4a8f532
Add missing break
2020-09-05 22:34:48 +02:00
Richard Frith-Macdonald
1ddcb25b7e
Avcoid coverity warning
2020-08-23 16:01:21 +01:00
Richard Frith-Macdonald
32f306b615
avoid coverity warning
2020-08-23 15:48:47 +01:00
fredkiefer
93d4576871
* Source/NSDateComponentsFormatter.m: Fix use of wrong operator.
2020-08-30 22:27:08 +02:00
Richard Frith-Macdonald
48c270b9ca
Improve -contentFile to check the content-type header before content-disposition
2020-08-08 19:30:18 +01:00
Frederik Seiffert
01e7034262
Add NSURL methods:
...
- URLByAppendingPathComponent:isDirectory:
- isFileReferenceURL (always returns NO)
- fileReferenceURL
- filePathURL
2020-08-03 13:08:15 +02:00
Richard Frith-Macdonald
1f2b03e84d
Fix calls to utimensat() which were passing the wrong value for the first argument, which needs to be the file descriptor of the directory containing the file, or AT_FDCWD to use the current directory.
2020-07-31 16:00:36 +01:00
Richard Frith-Macdonald
62c68d3cab
Set dates on copy ... it turns our OSX does not behave like Posix
2020-07-31 15:29:02 +01:00
Riccardo Mottola
24261fdc45
explicitely allow disabling unwind, test for header and function too
2020-07-28 01:02:55 +02:00
Frederik Seiffert
b9a9481c56
Update NSURLRequest header to use "instancetype".
2020-07-14 09:21:53 +02:00
Richard Frith-Macdonald
291ad8384e
move deallocation of zombie map outside lock protected section so that any exception while deallocating will not cause unbalanced lock/unlock
2020-07-09 09:11:47 +01:00
Richard Frith-Macdonald
684e952b04
When copying objects we should not be attempting to set the creation/modification date of the copy to that of the original.
2020-07-09 09:10:30 +01:00
Richard Frith-Macdonald
0c302348b0
Add casts to prevent compiler warnings, and comment to explain the new change for android where there is no thread ID available from the operating system.
2020-07-09 09:09:19 +01:00
Frederik Seiffert
94d14ca02a
Don't log current thread if its identical to private thread ID.
2020-07-08 17:02:41 +02:00
Frederik Seiffert
3752016412
Improve NSLog output on Android.
2020-07-08 16:15:57 +02:00
rfm
69c9e77afb
Merge pull request #146 from gnustep/msys-fix
...
Fix MSYS2-32
2020-07-08 13:59:07 +01:00
Richard Frith-Macdonald
47b6defc26
We only need to set the ownership of a newly created file on unix-like systems where the effective user ID may be different from the real user ID.
2020-07-07 07:42:40 +01:00
Frederik Seiffert
a7e87824c0
Fix possible deadlock when becoming multi-threaded.
2020-07-06 22:01:01 +02:00
Richard Frith-Macdonald
8e97401783
Replace temporarty hack with a rewrite of whitespace checking to use our own
...
characterset data (derived from unicode data) on which characters are counted
as whitespace for the purpose of capitalising strings.
counted as white space
2020-06-27 08:33:13 +01:00
Richard Frith-Macdonald
31ea5db30b
When overwriting a file with data, do not attempt to set creation date.
...
When creaqting a new file, try to use the real uid when effective uid is root
2020-06-25 09:19:44 +01:00
Richard Frith-Macdonald
b7882e3194
Simple fix to check for whitespace characters using strchr since the old
...
mechanism using characterset bitmap representations was broken by the
change to reduce waste in bintmaps (the code assumed the bitmap was
bigger than it really is).
2020-06-24 11:35:29 +01:00
Richard Frith-Macdonald
8acf2a5304
Merge branch 'master' of ssh://github.com/gnustep/libs-base
2020-06-23 07:05:34 +01:00
Richard Frith-Macdonald
e8a62e0e5e
Check for nil arugment to -isEqualToString:
2020-06-23 07:03:55 +01:00
Riccardo Mottola
e1c32adb77
define WSAAPI to empty if it is undefined, just for safety
2020-06-19 09:03:06 +02:00
Riccardo Mottola
919f8c16d0
specify WSAAPI as return type too, needed for MSYS2-32bit
2020-06-15 23:52:35 +02:00
Gregory John Casamento
fff7573b88
Correct changelog
2020-06-14 20:21:12 -04:00
Richard Frith-Macdonald
057445b4e7
Merge branch 'master' of ssh://github.com/gnustep/libs-base
2020-06-11 16:30:49 +01:00
Gregory John Casamento
c8ab7a3bc2
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-06-11 09:38:20 -04:00
Frederik Seiffert
d6d2fa9a74
Fix recursive creation of value transformers.
2020-06-11 14:22:04 +02:00
Frederik Seiffert
c6f24e6634
Fix Android assets support for bundle directories
2020-06-10 20:31:03 +02:00
Riccardo Mottola
b879e0835b
explicitely test for ws2tcpip.h header, fix library detection on windows for inet_ntop with corrent library, guard includes and definitions with configure results, cleanup header inclusion
2020-06-09 13:44:42 +02:00
Richard Frith-Macdonald
41ab84eaba
So not attempt to alter creation date of newly created file.
2020-06-09 11:43:56 +01:00
Gregory John Casamento
3b315b9d21
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-06-08 04:12:45 -04:00
rfm
daadfe7a6d
Merge branch 'master' into android-assets-directory-improvements
2020-06-06 12:13:43 +01:00
rfm
e2d223b564
Merge pull request #142 from gnustep/msys-fix
...
Msys fix
2020-06-06 11:11:06 +01:00
Richard Frith-Macdonald
41badcb417
Fix leak of new operation in -blockOperationWithBlock: method. Make -addExecutionBlock: ensure it works with an on-heap copy of its argument. Tidy code to have NSBlockOperation methods with normal formatting and alphabetical order. Tidy code to use standard macros for memory management.
2020-06-05 17:43:46 +01:00
Riccardo Mottola
5bbe378a79
remove unneeded window headers include, since common.h will include GSConfig.h
2020-06-05 13:46:34 +02:00
Frederik Seiffert
71f6cde4bd
Fix replacing an existing value in a weak objects map table.
2020-06-05 11:55:33 +02:00
Gregory John Casamento
ea162442ce
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-06-04 18:40:14 -04:00
Richard Frith-Macdonald
a1d5d020b3
Change -objectForKey: method to get the contents into a buffer (on the stack) and iterate through them rather than creating an autoreleased enumerator. This avoids allocation/autorelease/deallocation of the enumerator (as well as etain/release of the search list by the enumerator) which should give better performance generally and avoid excess object creation when lots of defaults lookups are done in an autorelease pool.
2020-06-03 14:48:22 +01:00
Gregory John Casamento
597f0a917e
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-05-31 17:41:23 -04:00
rfm
bf4c0719aa
Merge pull request #136 from gnustep/windows-ci
...
Set up CI for Windows using MinGW and GCC
Looks good, merging.
2020-05-29 16:33:42 +01:00
Richard Frith-Macdonald
6fd8dd7a20
Wrap code for posting of notifications (for becoming multithreaded and for a thread being about to exit) in an autorelease loop. This should avoid possible leakage of objects and warnings during the notification process.
2020-05-29 16:25:52 +01:00
Frederik Seiffert
a0fe037077
Include winsock2.h before windows.h, as required by MSYS2/MinGW-w64.
2020-05-29 10:40:03 +02:00
Gregory John Casamento
96f88dcc95
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch2
2020-05-29 00:53:39 -04:00
Richard Frith-Macdonald
fab98ede73
On thread exit we must post the notification that it *will* exit before
...
setting the instance variable to say that it has finished. This is tested
as the order OSX does it, and makes sense to ensure that, when -isFinished
returns YES we can be sure the thread will not do anything else.
2020-05-26 16:30:15 +01:00
rfm
a636994a33
Merge pull request #138 from triplef/fix-nsuserdefaults-setbool
...
Store NSNumber instead of NSString for NSUserDefaults -setBool:forKey:.
2020-05-26 12:38:41 +01:00
Richard Frith-Macdonald
861f8de610
Remove excess whitespace and copy trick to NSPortCoder
2020-05-26 09:18:49 +01:00
Gregory John Casamento
3a0420bddf
Merge branch 'master' into NSSecureCoding_branch2
2020-05-26 01:52:58 -04:00
Riccardo Mottola
e7f89135d3
rewrite lower negative bounds to avoid integer constants underflow of literals
2020-05-25 23:50:36 +02:00
Frederik Seiffert
d2938c7729
Store NSNumber instead of NSString for NSUserDefaults -setBool:forKey:.
2020-05-25 17:34:34 +02:00
Frederik Seiffert
db19fc3308
Android assets improvements to support directories
...
- Extend NSBundle resources support to handle directories in Android assets.
- Fix NSFileManager -isReadableFileAtPath: to also support directories in Android assets.
2020-05-20 13:39:47 +02:00
Gregory John Casamento
2b38728f6e
Merge branch 'master' into NSSecureCoding_branch2
2020-05-15 10:08:56 -04:00
Gregory John Casamento
4230180eab
Add set/get for requiresSecureCoding
2020-05-15 10:06:39 -04:00
Frederik Seiffert
9f0d8d7720
Fix building Win32 classes with nonfragile ABI.
2020-05-13 18:08:35 +02:00
Gregory John Casamento
1a6a091fc4
Add set/get method for requiresSecureCoding
2020-05-13 02:29:53 -04:00
Gregory John Casamento
a0f50deb64
Fix fred's suggestions. Put guard and make more general method the one which is called.
2020-05-12 14:02:50 -04:00
Gregory John Casamento
be8980dfb4
Fix fred's suggestions. Put guard and make more general method the one which is called.
2020-05-12 14:01:44 -04:00
Gregory John Casamento
9d252bd5b6
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch
2020-05-12 12:09:27 -04:00
Richard Frith-Macdonald
95b6f3a18e
Casts to fix systems where the UCalendarDateFields enumeration is unsigned
2020-05-12 13:35:18 +01:00
rfm
57e4eba479
Merge branch 'master' into file_creation_date
2020-05-12 13:25:49 +01:00
rfm
50d1358028
Merge pull request #132 from niwatako/fix-exponent-validation-in-jsonserialization
...
Fix exponent validation in NSJSONSerialization
Buce fix ... thanks.
2020-05-12 13:23:29 +01:00
Gregory John Casamento
e294089032
Merge branch 'master' into NSSecureCoding_branch
2020-05-11 16:55:28 -04:00
Gregory John Casamento
4dc1c566c1
Send error back
2020-05-11 16:54:41 -04:00
rfm
6b008fc19e
Merge branch 'master' into android-nsinputstream-support
2020-05-11 15:02:05 +01:00
niwatako
dccd799256
Fix exponent validation
2020-05-11 21:46:25 +09:00
fredkiefer
e71c2f68fa
* Source/NSISO8601DateFormatter.m,
...
* Source/NSOrthography.m: Clean up some compiler warnings.
2020-05-10 23:07:27 +02:00
fredkiefer
f4c5c519c2
* Source/NSXMLParser.m: Fix small bug in last commit that broke
...
all gui applications when there was a commented out section in the
user default XML file.
2020-05-08 21:59:28 +02:00
Richard Frith-Macdonald
5aab6f84cf
Use RELEASE macro for memory management
2020-05-08 15:26:07 +01:00
Richard Frith-Macdonald
b26a2f49ea
Convert to using indexes into a buffer
2020-05-08 15:05:17 +01:00
Gregory John Casamento
264811b3d0
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch
2020-05-07 17:10:50 -04:00
Frederik Seiffert
b549dbbaec
NSLocale improvements
...
Use "instancetype" for instance-returning methods. Fix method signature of -displayNameForKey:value:.
2020-05-07 15:30:36 +02:00
Richard Frith-Macdonald
6fc9449241
Reorganise to make the separation of the two parsers clearer. NSXMLParser is the sloppy parser and can be selected using the dummy subclass GSSloppyXMLParser while, if we have libxml2, we can specifically select the strict parser using the GSStrictXMLParser class.
2020-05-06 15:24:04 +01:00
rfm
ca2abf51f7
Merge pull request #130 from triplef/add-nsxmlparser-stream-support
...
Implement -[NSXMLParser initWithStream:].
2020-05-06 14:08:39 +01:00
Fred Kiefer
0b4f3b382a
Merge pull request #126 from alotorev/bugfix/NSURLComponents
...
Bugfix/nsurl components
2020-05-06 13:09:35 +02:00
Gregory John Casamento
e2ce929761
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch
2020-05-06 05:04:45 -04:00
Frederik Seiffert
5dfda50d82
Implement -[NSXMLParser initWithStream:].
2020-05-05 19:41:22 +02:00
Frederik Seiffert
547983738a
Add NSInputStream support for reading Android assets from main bundle.
2020-05-05 15:42:10 +02:00
Richard Frith-Macdonald
dcfe2a2ce3
Fix -[NSCharacterSet invertedSet] to work by calling -invert on a mutable copy
2020-05-05 09:51:34 +01:00
Gregory John Casamento
76fac00cd2
Merge branch 'master' of github.com:gnustep/libs-base into NSSecureCoding_branch
2020-05-04 05:50:58 -04:00
Riccardo Mottola
bfcc2db53c
In changeFileAttributes implement setting of creation date also for Unix, which needs to be done before setting the modification date. Also, implement reading the creation (birth time) date if a supported method was detected.
2020-05-04 10:17:25 +02:00
alotorev
4aa11f3e48
Improvements suggested by Fred Kiefer for the current pull request
2020-05-04 10:55:41 +03:00
alotorev
2a547271ad
OSX like behaviour for NSURLQueryItem initialisers
2020-05-04 02:27:26 +03:00
alotorev
ce1c03f6da
Fixed bugs leading to leaks, no autorelease in NSURLComponents factory methods.
2020-05-04 02:00:53 +03:00
alotorev
ec62905dd6
Fixed initialization NSURLComponents with NSURL, should treat a query from NSURL as a percent-encoded string.
2020-05-04 01:58:54 +03:00
niwatako
6869df9a50
Fix loss of buffer in NSJSONSerialization.
...
The first time bufferSize is extended, number loses the previously parsed characters.
After malloc the number, copy the numberBuffer to the number.
2020-05-01 23:51:55 +09:00
Riccardo Mottola
dfb4fc1976
fix log info
2020-05-01 02:06:00 +02:00
Riccardo Mottola
21c79c3500
Use utimensat() to set file modification date, if available.
2020-05-01 02:03:25 +02:00
Riccardo
e23ab3b394
Merge pull request #123 from gnustep/master
...
keep up with master
2020-04-30 11:14:10 +02:00
Richard Frith-Macdonald
0aeaee68da
Fixup -stringByAddingPercentEncodingWithAllowedCharacters: to ignore membership
...
of the supplied set if the character is not in the ASCII range.
2020-04-27 20:25:24 +01:00
Richard Frith-Macdonald
9eb0fd4e1a
Fix typo spotted by 'alotrev'
2020-04-27 09:14:36 +01:00
fredkiefer
a48694941c
Add newer features for NSDateComponents and
...
started to clean up NSCalendar implementation.
2020-04-26 21:13:22 +02:00
fredkiefer
4fe6cb20a1
Started to rewrite NSCalendar to handle more components correctly.
2020-04-26 00:32:49 +02:00
fredkiefer
82e9ddc21f
Add missing NSDateComponents methods.
2020-04-25 22:19:20 +02:00
Gregory John Casamento
082f87fbc3
Start implementing some secure coding methods.
2020-04-24 03:59:17 -04:00
Richard Frith-Macdonald
a9767cdff7
Override -hash and -isEqual: so that notifications with the name name, object, and userInfo are considered equal. This is the OSX behavior.
2020-04-21 09:16:53 +01:00
Richard Frith-Macdonald
05f442de8b
Fix for NSURLResponse does not allow for multiple Set-Cookie headers in the same response #85 ... combine multiple header values as a comma separated list.
2020-04-16 23:04:37 +01:00
Richard Frith-Macdonald
6d714c8ee1
Fix for Deadlock in NSOperationQueue #49 : If an exception occurs when trying to detach thread, catch it and log it so that locking is not broken by the exception breaking out of the lock protected region.
2020-04-16 22:48:25 +01:00
Richard Frith-Macdonald
6ee0cfff00
Add testcase for multiple clookies in a header. Fix error parsing a literal
...
string (writing nul terminator to read only memory)
2020-04-16 20:19:53 +01:00
Richard Frith-Macdonald
3d1e84f6fe
rewrite code for separating individual cookies from a comma separated header so
...
it better matches what OSX does (and is hopefully a bit simpler)/
2020-04-16 19:39:32 +01:00
Richard Frith-Macdonald
132729e6e0
Add casts to avoid compiler warnings bout type of method
2020-04-15 10:40:41 +01:00
Richard Frith-Macdonald
09e9354f08
Fully type method implementatyion pointers.
2020-04-15 10:31:55 +01:00
Richard Frith-Macdonald
53f5957030
When building outside GNUstep (additions for apple), include the runtime
...
declarations and fix error in casting self.
2020-04-14 17:18:24 +01:00
Richard Frith-Macdonald
7829ab86b5
Fix line somehow missed from ast commit
2020-04-14 08:26:07 +01:00
Richard Frith-Macdonald
47ce8d3da7
Remove custom code for percent escaping and replace it with standard code using
...
custom charactersets.
2020-04-13 10:05:57 +01:00
Richard Frith-Macdonald
ccb8594bc0
Fix [NSURLProtocol -initWithRequest:cachedResponse:client:] to retain the client (up until the last message is sent to it) as OSX does.
2020-04-13 08:53:02 +01:00
Richard Frith-Macdonald
df1b6dd6d5
Characterset memory usage and code organisation consistency improvements.
2020-04-12 12:28:07 +01:00
Riccardo Mottola
ce313e1384
Implement read and set of File Creation Date attribute on Windows.
2020-04-09 23:43:41 +02:00
Frederik Seiffert
cc56c9cc97
Fixed NSOperation completion block memory mgmt.
2020-04-09 09:24:43 +02:00
Richard Frith-Macdonald
882b1419f5
remove redundant/repeated line
2020-04-05 10:27:02 +01:00
Richard Frith-Macdonald
ebaf23e295
Fix boundary error removing percent escapes
2020-04-05 10:26:28 +01:00
Fred Kiefer
adb67ee405
Merge pull request #118 from gnustep/fix-nsurlcomponents
...
fixups for setting/getting nil/empty query string values
2020-04-05 09:06:24 +02:00
Richard Frith-Macdonald
2a24e8d080
fixups for setting/getting nil/empty query string values
2020-04-04 22:37:40 +01:00
Gregory Casamento
a7867718b0
Merge pull request #115 from gnustep/fix-nsurlcomponents
...
Merging since all outstanding bugs appear to have been addressed.
2020-04-04 15:55:00 -04:00
fredkiefer
b0c763de36
Build the string instead of the URL.
...
Build the URL on the fly.
2020-04-04 20:33:55 +02:00
Richard Frith-Macdonald
ac45beb4c1
fix error in refactoring query (storing name twice rather than name/value)
2020-04-04 17:32:27 +01:00
Gregory John Casamento
cf13a7c21b
Merge branch 'fix-nsurlcomponents' of github.com:gnustep/libs-base into fix-nsurlcomponents
2020-04-04 12:15:24 -04:00
Gregory John Casamento
213344d862
Add tests and modifications to pass them
2020-04-04 12:15:17 -04:00
Richard Frith-Macdonald
8eff23e780
Rewrite query handling code to try to mimic OSX documentation with regards to
...
the differences between setting nil/empty query strings/items and also in the
handling of query items with nothing before the '=', nothing after the '=',
and the case where there is no '=' character (also the totally empty case
where the query string contains a double ampersand (&&) sequence).
2020-04-04 15:13:14 +01:00
Gregory John Casamento
86276f0c7f
Fix issue with scheme
2020-04-04 09:54:42 -04:00
Gregory John Casamento
564f61d572
Add tests for NSURLComponents
2020-04-04 09:44:22 -04:00
Richard Frith-Macdonald
4ffce48b04
I suggest when we regenerate we build the URL by appending to a mutable string
...
sas this would be hugely more efficient.
2020-04-04 14:22:25 +01:00
fredkiefer
d05b799740
Restore caching of URL.
...
Rewrite URL building to get the ranges correct.
Build URL with escaped components.
Build query from percentEncodedQueryItems.
2020-04-04 13:36:51 +02:00
Gregory John Casamento
ca6e48910a
Minor fix to remove/add percent encoding to name portion of query item
2020-04-04 07:04:06 -04:00
Gregory John Casamento
5f1541d154
Always regenerate when we call [NSURLComponents URL] otherwise subsequent calls will return nil
2020-04-04 06:48:02 -04:00
Gregory John Casamento
b71f65f478
Fixes for FIXME's
2020-04-04 06:38:19 -04:00
Gregory John Casamento
d5c163397f
Remove explicit reference to _url. Always regenerate when needed.
2020-04-03 17:39:35 -04:00
Gregory John Casamento
2d135069fb
Remove query
2020-04-03 15:48:27 -04:00
fredkiefer
0bc1052bd6
Fix typo in last commit.
2020-04-03 18:37:55 +02:00
fredkiefer
c170c8c1e7
Correct more issues and flag the remaining ones with "FIXME".
2020-04-03 18:15:07 +02:00
fredkiefer
181346c568
Get too compile with gcc.
...
Address some pull request comments.
2020-04-03 17:53:34 +02:00
Gregory John Casamento
14274bffd2
Fix issues pointed out by fred k.
2020-04-02 06:08:17 -04:00
Gregory John Casamento
fd354f4167
Changes to fix issues pointed out by Fred and RFM
2020-04-01 10:08:44 -04:00
Gregory John Casamento
bc614d4bd8
Regenerate in one place.
2020-04-01 08:48:51 -04:00
Gregory John Casamento
b594d047c1
Fix issues with regeneration.
2020-04-01 08:46:45 -04:00
Gregory John Casamento
4dff7a76a9
Refactor regeneration of URL.
2020-04-01 08:00:26 -04:00
Gregory John Casamento
f6940daac9
Add code to allow percent coded set/get methods to reflect the values set by the non-encoded versions
2020-03-31 05:07:38 -04:00
Gregory John Casamento
2fb63480be
Remove slash
2020-03-30 09:24:18 -04:00
Gregory John Casamento
7c52cd9f72
Added method to handle query encoding. Theoretically URLQueryAllowedCharacter set should cover this. I'm wondering why I had to do this to get the correct result.
2020-03-30 08:53:42 -04:00
Richard Frith-Macdonald
bf440e83fa
fixup indentation etc to conform to coding stype
2020-03-30 13:35:35 +01:00
Gregory John Casamento
31e7bbb7e6
Get rid of trailing whitespace.
2020-03-30 06:58:10 -04:00
Gregory John Casamento
a92491268b
URL percent escape query items.
2020-03-30 06:52:34 -04:00
Gregory John Casamento
7fc9033aa8
Fix for case where password is not specified. Conformation to RFC1738.
2020-03-30 04:58:51 -04:00
Gregory John Casamento
7e75310531
Build query items, fix rendering of URL when user/password are not specified together.
2020-03-30 04:37:36 -04:00
Gregory John Casamento
5db21d0a83
Merge branch 'master' into fix-nsurlcomponents
2020-03-29 11:35:59 -04:00
rfm
da6be9daac
Merge branch 'master' into fix-pthread-setname
2020-03-29 11:33:39 +01:00
rfm
73baca1056
Merge branch 'master' into fix-nsurlresponse
2020-03-29 11:30:18 +01:00
rfm
81d70b37c8
Merge branch 'master' into numerical_locale
2020-03-29 11:26:40 +01:00
Gregory John Casamento
a785456d5f
Copy URL
2020-03-28 03:13:36 -04:00
Gregory John Casamento
bda473e9bd
Remove set for percent escapes in setURL:
2020-03-27 07:06:20 -04:00
Gregory John Casamento
746d3ea8ae
Remove infinite recursion
2020-03-27 06:18:11 -04:00
Gregory John Casamento
5bf97288d0
remove variable
2020-03-27 05:58:10 -04:00
Gregory John Casamento
6fb90273fe
Update implementation
2020-03-27 05:51:07 -04:00
Gregory John Casamento
7019e849cc
Add method to update url when any set method is called
2020-03-27 04:30:13 -04:00
Fred Kiefer
77468b0b9e
Merge branch 'master' into fix-nsurlresponse
2020-03-26 18:46:33 +01:00
Gregory John Casamento
56f0d5aa8b
Merge branch 'fix-nsurlcomponents' of github.com:gnustep/libs-base into fix-nsurlcomponents
2020-03-26 09:28:53 -04:00
Frederik Seiffert
5f9982812e
Added NSErrorDomain typedef.
2020-03-26 14:16:44 +01:00
Frederik Seiffert
8774e5f55d
NSURLComponents fixes
...
- Moved NSURLComponents internal declaration to correct place.
- Added GS_DESTROY_INTERNAL() calls for NSURLComponents and NSURLQueryItem.
2020-03-23 14:46:45 +01:00
Frederik Seiffert
8e093a519e
Added misssing GSInternal declaration for NSURLQueryItem.
2020-03-23 13:40:09 +01:00
Frederik Seiffert
a0779f4e62
Fixed internal ivar usage for NSURLQueryItem.
2020-03-23 11:56:20 +01:00
Frederik Seiffert
a3b8ea0937
Use pthread_setname_np result instead of errno.
...
Fixes setting thread name on platforms where errno is not set.
2020-03-17 14:49:02 +01:00
Gregory John Casamento
fdb8c95a17
Merge branch 'master' of github.com:gnustep/libs-base into fix-nsurlcomponents
2020-03-13 05:22:17 -04:00
fredkiefer
95abcbd694
* Source/NSURL.m: Fix compiler warnigns.
...
* Headers/Foundation/NSLocale.h,
* Source/NSLocale.m: Add a few convenience methods from MacOS 10.12.
2020-03-12 14:58:46 +01:00
Frederik Seiffert
5150ab1d5a
Fixed parsing of NSURLResponse content type header.
2020-03-12 11:44:13 +01:00
Frederik Seiffert
3743e1d643
Added missing NSURLQueryItem implementation.
2020-03-11 10:55:10 +01:00
Richard Frith-Macdonald
4a7325b00e
Merge branch 'master' of ssh://github.com/gnustep/libs-base
...
Conflicts:
Source/GSAttributedString.m
2020-03-11 09:05:44 +00:00
Richard Frith-Macdonald
e4ea6672df
Add comments to note that initial values are unused.
2020-03-11 09:01:39 +00:00
rfm
9ff3af1ead
Merge pull request #111 from triplef/fix-attributed-string-ranges
...
Fixed attributed string range initialization.
2020-03-11 08:58:37 +00:00
Frederik Seiffert
15610acb62
Fixed attributed string range initialization.
2020-03-10 18:09:44 +01:00
Frederik Seiffert
1e51ef1b1e
Fixed NSURLComponents setURL: throwing exceptions.
...
This happened when setting an URL that didn't have all the different parts like fragment or query, as rangeOfString: throws for nil values.
2020-03-10 18:06:44 +01:00
fredkiefer
8794339073
* Source/NSString.m: Attempt to make calls to GSICUCollatorOpen()
...
more consistent and correct for ICU 65.
2020-03-07 23:36:30 +01:00
Mingye Wang
7df4ec1482
fixup! buf type (strtod commit)
2020-03-04 14:26:43 +08:00
Richard Frith-Macdonald
d1af1d0244
Fix for class lookup when using the 2.0 ABI
2020-02-24 10:23:22 +00:00
Mingye Wang
69b202274a
NSPropertyList: use strtod to handle inf and nan
...
Apple's implementation seems to understand these things. We should too.
2020-02-20 12:07:04 +08:00
Mingye Wang
a76677623a
plutil: use GS text for pretty print
2020-02-20 11:28:09 +08:00
Richard Frith-Macdonald
31f277d751
Fix to consider explicitly configured hosts to be probled for servers. Add -S
2020-02-17 15:30:21 +00:00
Richard Frith-Macdonald
2e07244f8e
Updates to move towards ARC
2020-02-08 16:42:17 +00:00
Richard Frith-Macdonald
b91fab7665
Fix method types. Fix indentation/line-wrapping. Fix stubs to raise exception
2020-01-27 14:43:59 +00:00
fredkiefer
d1d9cd65a1
Handle case where scheme is missing from the URL.
2020-01-24 23:27:30 +01:00
fredkiefer
4d7da7ee80
Allow simple predicates on NSDate.
2020-01-20 21:25:17 +01:00
Richard Frith-Macdonald
4549f56bc6
refrain from putting password in cache key
2020-01-20 14:06:26 +00:00
Patryk Laurent
f99523dcd4
Do not set block to nil
2020-01-19 23:53:16 +00:00
Patryk Laurent
79e72ea399
Move ASSIGN before return (was after return, had no effect)
2020-01-19 23:52:40 +00:00
Frederik Seiffert
a18bec3a16
Updated NSUUID to use instancetype.
2020-01-13 16:27:12 +01:00
fredkiefer
88f5cc2444
Add support for NSDate constants in NSPredicate.
2020-01-12 20:56:09 +01:00
fredkiefer
36d00c7f00
Implement two missing KVO methods on NSArray.
2020-01-12 10:37:27 +01:00
Frederik Seiffert
5036cb4734
Fixed incorrect while loops for noreturn functions
...
Silences warnings "function declared 'noreturn' should not return [-Winvalid-noreturn]".
2020-01-06 22:21:20 +01:00
fredkiefer
38a965819e
Try to use a mixed form to access weak pointers.
2019-12-15 14:18:00 +01:00
fredkiefer
d1cf30dd9f
* Headers/GNUstepBase/GSIMap.h: Use GSI_MAP_NODE_IS_EMPTY macros
...
when checking in enumerator.
* Source/NSConcreteHashTable.m,
* Source/NSConcreteMapTable.m: Revert part of the weak pointer change.
2019-12-15 13:40:51 +01:00
Gregory John Casamento
753c907938
Fix address for FSF and License name in all headers in base
2019-12-09 18:36:00 -05:00
Fred Kiefer
01e7ea8372
Merge pull request #84 from gnustep/weak-table
...
Rework some of the weak handling for NS{Map,Hash}Table.
@Richard, feel free to revert this and to provide a cleaner solution. I am no expert here, but part of this code looks correct and part just like a workaround for a deeper problem.
2019-12-07 10:55:52 +01:00
Niels Grewe
c77f40f73c
Merge pull request #87 from gnustep/swift-corelibs-libdispatch
...
Fix runloop integration for libdispatch from swift
2019-12-06 23:05:38 +01:00
rmottola
cbad92f8a8
minor fix to get Windos compiling again
2019-12-05 11:07:40 +01:00
Niels Grewe
ecd2d85cb9
Fix runloop integration for libdispatch from swift
2019-11-28 19:12:13 +01:00
David Chisnall
6513da4d8c
Reorder macros as per @fredkiefer's review comment.
2019-11-25 10:41:07 +00:00
David Chisnall
f957b21972
Rework some of the weak handling for NS{Map,Hash}Table.
...
The existing code was assuming that weak object pointers were safe to
read directly, without going via the read barrier, which is incorrect.
It was also attempting to retain the result in some places. The new
code is hopefully somewhat more correct.
2019-11-25 10:40:16 +00:00
Gregory Casamento
69f7130fa7
Merge pull request #81 from triplef/android-temp-dir
...
Added support for temp and caches dir on Android.
2019-11-25 04:09:56 -05:00
Frederik Seiffert
0eedef5080
Added NSException symbolication support using libunwind.
...
This is used when backtrace() is unavailable.
2019-11-18 10:47:47 +01:00
Frederik Seiffert
a9641e6818
Added support for temp and caches dir on Android.
2019-11-15 09:04:58 +01:00
fredkiefer
1915415b48
* Headers/Foundation/NSXPCConnection.h,
...
* Source/NSXPCConnection.m: Fix broken compilation on gcc.
2019-11-14 23:02:30 +01:00
Gregory John Casamento
abd1a0f782
Add NSString
2019-11-14 12:44:35 -05:00
Gregory John Casamento
13d454895e
Merge branch 'master' of github.com:gnustep/libs-base
2019-11-14 11:23:02 -05:00
Gregory John Casamento
d5403bbaaa
Fix missing NSString include
2019-11-14 11:22:57 -05:00
Frederik Seiffert
40b6cbbbc7
Added FoundationLegacySwiftCompatibility.h to Foundation headers
2019-11-14 15:11:38 +01:00
Gregory John Casamento
fe22c1f998
Add final files
2019-11-13 04:17:00 -05:00
Gregory John Casamento
2c1be24ac3
Add skeletons of NSXPCConnection.
2019-11-13 02:31:09 -05:00
Gregory John Casamento
d33e0f2605
NSItemProvider skeleton implementation.
2019-11-12 22:59:47 -05:00
Gregory John Casamento
3d9598e2a0
Make NSExtensionRequest conform to protocol
2019-11-10 23:02:59 -05:00
Gregory John Casamento
73bcd161cc
Add files
2019-11-10 18:43:12 -05:00
Gregory John Casamento
6b6a11aaa7
Skeleton of extension context
2019-11-10 16:48:48 -05:00
Gregory John Casamento
3d77109fb6
Skeleton implementation of coding
2019-11-09 06:39:15 -05:00
Gregory John Casamento
027cb381bb
Adding logic to handle options.
2019-11-09 06:34:10 -05:00
Gregory John Casamento
6965067c3c
implement spell out function
2019-11-08 07:01:59 -05:00
Gregory John Casamento
94719e87ca
Initial part of formatting
2019-11-08 04:30:17 -05:00
Gregory John Casamento
996b40ad34
Implement other formatting methods in terms of the main one
2019-11-07 03:55:31 -05:00
Gregory John Casamento
d23af67ea7
Skeletons
2019-11-06 19:16:23 -05:00
Gregory John Casamento
d7b854a0d2
Add NSDateComponentsFormatter
2019-11-06 19:04:41 -05:00
Gregory John Casamento
ba3d60c5ab
Update stringForObjectValue:
2019-11-06 00:19:23 -05:00
Gregory John Casamento
f230b901a0
Merge branch 'master' of github.com:gnustep/libs-base
2019-11-05 20:30:52 -05:00
Gregory John Casamento
245e3927df
Merge branch 'NSLinguisticTagger_branch'
2019-11-05 20:30:36 -05:00
Gregory John Casamento
4a3de6cb47
Implement simple methods
2019-11-05 19:59:03 -05:00
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