rfm
5aa5692768
Fix memory leaks
2024-12-19 19:18:18 +00:00
rfm
6a723e5a87
Fixes for dealloc when init has not been called.
2024-11-17 16:41:59 +00:00
rfm
6667842dd5
Update FSF address as requested by Gregory
2024-11-07 13:37:59 +00:00
Frederik Seiffert
668d6c4977
Change NSNumberFormatter minimum/maximum properties from NSDecimalNumber to NSNumber to match Apple platforms
2023-08-10 12:20:06 +02:00
Richard Frith-Macdonald
c76ebf2962
Replaced IF_NO_GC() macro calls with the more descriptive IF_NO_ARC()
...
and deprecate it. Searched for and removed obsolete references to
garbage collection in comments and documentation.
2022-02-17 10:08:18 +00:00
Frederik Seiffert
40f88bc622
Enable _C_BOOL on non GNU C compilers
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
Gregory John Casamento
753c907938
Fix address for FSF and License name in all headers in base
2019-12-09 18:36:00 -05:00
Richard Frith-Macdonald
0d61b42215
remove dead code
2018-02-07 10:45:08 +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
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
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
53a553fb47
fix minor error in last NSData edit, some other minor issues,
...
and avoid more false positives.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36536 72102866-910b-0410-8b05-ffd578937521
2013-04-15 07:00:42 +00:00
Richard Frith-MacDonald
afbd546131
shorten logn line
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35729 72102866-910b-0410-8b05-ffd578937521
2012-10-21 05:25:31 +00:00
Stefan Bidigaray
598c5de32a
Do not call unum_format* more than once.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34634 72102866-910b-0410-8b05-ffd578937521
2012-01-26 01:40:12 +00:00
Richard Frith-MacDonald
d8432fad48
Minor fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33916 72102866-910b-0410-8b05-ffd578937521
2011-09-30 20:31:15 +00:00
David Chisnall
4cdea64975
Make -base compile almost without warnings again. Fixes:
...
- Using the correct format specifier
- Remove substringFromRange: (GNUstep extension) from NSString.h and use the non-deprecated version in -base.
- Delete definitions of methods that are the same in both a class and a category on that class (NSArray and NSObject).
Two files still have warnings:
- The GNUTLS stuff is using a load of deprecated APIs.
- xmlparse.m replaces a method using a category. This method seems to always return nil. Not sure what it's meant to do, or why it isn't a delegate of some kind.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33756 72102866-910b-0410-8b05-ffd578937521
2011-08-16 16:04:43 +00:00
David Chisnall
bfd034b5b6
#ifdef -> #if
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33732 72102866-910b-0410-8b05-ffd578937521
2011-08-14 08:49:33 +00:00
David Chisnall
433554830d
Fix the build with the pure non-fragile ABI by declaring macros before using them.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33724 72102866-910b-0410-8b05-ffd578937521
2011-08-13 15:28:22 +00:00
Eric Wasylishen
5c802d5d57
* Source/NSNumberFormatter.m
...
(-attributedStringForObjectValue:withDefaultAttributes:):
Guard against initializing an NSAttributedString with a nil string.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33596 72102866-910b-0410-8b05-ffd578937521
2011-07-21 01:43:07 +00:00
Richard Frith-MacDonald
7858806cfa
Cleanup/simplify for readability and fix bug copying new ivars
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32966 72102866-910b-0410-8b05-ffd578937521
2011-05-02 09:02:02 +00:00
Eric Wasylishen
ff0b5abd62
* Source/NSNumberFormatter.m: Move the body of -init to a method called
...
-_NSNumberFormatterInit, and call this in -initWithCoder: so that
instances created with -initWithCoder: are initialized correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32931 72102866-910b-0410-8b05-ffd578937521
2011-04-27 02:43:03 +00:00
Richard Frith-MacDonald
e2fbdcd0fd
avoid compiler warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32796 72102866-910b-0410-8b05-ffd578937521
2011-04-07 07:56:56 +00:00
Fred Kiefer
37d3a7c31a
* Source/NSNumberFormatter.m (-stringForObjectValue:): Swapped a
...
few lines of fraction handling code to get the test suite to pass.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32693 72102866-910b-0410-8b05-ffd578937521
2011-03-23 19:33:03 +00:00
Richard Frith-MacDonald
315e1bd793
fix error with zero padding of fractional part
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32594 72102866-910b-0410-8b05-ffd578937521
2011-03-15 10:01:44 +00:00
Stefan Bidigaray
fd82f4f6a9
Don't use unum_parseDecimal since it was only introduced on libicu-4.4. Implement -getObjectValue:forString:errorDescription:. Riccardo's example (bug 32434) compiles and runs perfectly... I get 0 and -1.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32587 72102866-910b-0410-8b05-ffd578937521
2011-03-14 22:58:50 +00:00
Stefan Bidigaray
c84d67c662
Added untest implementation of -getObjectValue:forString:range:error:. This method should will be used to implement -getObjectValue:forString:errorDescription:.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32586 72102866-910b-0410-8b05-ffd578937521
2011-03-14 22:41:53 +00:00
Stefan Bidigaray
ff94cec600
Fix another small memory allocation issue.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32537 72102866-910b-0410-8b05-ffd578937521
2011-03-12 14:42:21 +00:00
Stefan Bidigaray
ba8d2a150d
Fix small mistake when allocating memory for attributes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32536 72102866-910b-0410-8b05-ffd578937521
2011-03-12 14:39:29 +00:00
Stefan Bidigaray
0b402994bb
Add a hack to reset formatter properties along with the formatter itself. This can't be the best way to go about this so feel free to provide input for a better solution. Also added 2 missing unlocks in NSLocale.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32535 72102866-910b-0410-8b05-ffd578937521
2011-03-12 14:22:21 +00:00
Richard Frith-MacDonald
385f9b83fc
fix for non-fragile abi
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32501 72102866-910b-0410-8b05-ffd578937521
2011-03-08 12:49:34 +00:00
Richard Frith-MacDonald
d084034e84
tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32465 72102866-910b-0410-8b05-ffd578937521
2011-03-05 18:12:55 +00:00
Richard Frith-MacDonald
360e28f269
User defaults language/setup restructuring
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32454 72102866-910b-0410-8b05-ffd578937521
2011-03-05 07:54:05 +00:00
Richard Frith-MacDonald
946dc8d864
Fix allowing floats on input
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32450 72102866-910b-0410-8b05-ffd578937521
2011-03-04 09:25:59 +00:00
Richard Frith-MacDonald
4388c7a05b
osx compat tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32321 72102866-910b-0410-8b05-ffd578937521
2011-02-23 09:40:57 +00:00
Richard Frith-MacDonald
e6fca186b1
portability tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32290 72102866-910b-0410-8b05-ffd578937521
2011-02-22 11:55:37 +00:00
Richard Frith-MacDonald
f756c612ca
use 10.0 behavior if we have no ICU
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32260 72102866-910b-0410-8b05-ffd578937521
2011-02-21 12:36:18 +00:00
Fred Kiefer
ccdc185f97
* Source/NSNumberFormatter.m (-init): Only check the formatter in
...
the ICU case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32244 72102866-910b-0410-8b05-ffd578937521
2011-02-20 14:58:23 +00:00
David Chisnall
ddad542fb1
Add some explicit casts-through-void* to silence warnings about casts that increase the alignment requirements of the pointee (mostly caused by using char* for arithmetic).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32219 72102866-910b-0410-8b05-ffd578937521
2011-02-19 15:34:21 +00:00
Richard Frith-MacDonald
3142f8f42c
fixup memory allocation problem
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32197 72102866-910b-0410-8b05-ffd578937521
2011-02-17 06:55:50 +00:00
Richard Frith-MacDonald
d07f49a9b6
more work on reserved/private pointer use
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32182 72102866-910b-0410-8b05-ffd578937521
2011-02-16 05:49:45 +00:00
Stefan Bidigaray
8acf2cf573
Moved new NSDateFormatter ivars to a struct in _reserved. Use unum_clone() to copy formatter in NSDateFormatter.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32172 72102866-910b-0410-8b05-ffd578937521
2011-02-15 00:49:48 +00:00
Richard Frith-MacDonald
08dc11a192
Decrease chance of ABI breakage.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32156 72102866-910b-0410-8b05-ffd578937521
2011-02-14 06:37:45 +00:00
Stefan Bidigaray
51b232577e
Moved 10.4+ implementation to a subclass of NSNumberFormatter.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32155 72102866-910b-0410-8b05-ffd578937521
2011-02-13 22:13:04 +00:00
Richard Frith-MacDonald
d11a6d8c27
remove redundant code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32108 72102866-910b-0410-8b05-ffd578937521
2011-02-12 17:26:10 +00:00
Richard Frith-MacDonald
be3a8ecc45
leak fixing
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32035 72102866-910b-0410-8b05-ffd578937521
2011-02-10 12:11:03 +00:00
Richard Frith-MacDonald
bc34d0505f
Minor cleanups.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32031 72102866-910b-0410-8b05-ffd578937521
2011-02-10 10:52:54 +00:00
Quentin Mathe
33cea653e0
Fixed wrongly placed closing bracket. Should be outside of #if GS_USE_ICU == 1,
...
otherwise compilation fails without libicu installed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31973 72102866-910b-0410-8b05-ffd578937521
2011-01-29 15:35:22 +00:00
Stefan Bidigaray
e652a5db92
Fixed errors found by test suite.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31967 72102866-910b-0410-8b05-ffd578937521
2011-01-29 02:01:42 +00:00