Richard Frith-MacDonald
effa0292d8
tolerate missing/incorrect character encoding declarations
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33012 72102866-910b-0410-8b05-ffd578937521
2011-05-09 11:35:00 +00:00
David Chisnall
16fc1c503c
Remove spurious &s
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32985 72102866-910b-0410-8b05-ffd578937521
2011-05-05 11:25:12 +00:00
Eric Wasylishen
5bc5e9a64b
* Source/Additions/GSObjCRuntime.m (GSSelectorFromNameAndTypes):
...
With gcc 4.6 libobjc, GSSelectorFromNameAndTypes was calling some
functions like sel_get_any_typed_uid that were not declared (they're
declared in objc/objc-api.h which cannot be imported). I had to copy
over these function declarations, otherwise incorrect function calls
are generated which corrupt selectors (at least on x86-64).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32968 72102866-910b-0410-8b05-ffd578937521
2011-05-02 20:10:54 +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
David Chisnall
a95b18e430
Added missing ivar access functions.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32939 72102866-910b-0410-8b05-ffd578937521
2011-04-28 18:41:01 +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
David Chisnall
d190709e05
After going to all of the effort of recomputing the frame size, actually store the one that we compute instead of accidentally discarding it.
...
It would probably be a good idea if we skipped the entire disassemble / reassemble code path if we've got sensible method encoding strings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32908 72102866-910b-0410-8b05-ffd578937521
2011-04-19 16:26:09 +00:00
David Chisnall
7c427b04d6
__objc_responds_to() -> class_respondsToSelector().
...
No functionality change, just a switch to using the portable public functions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32863 72102866-910b-0410-8b05-ffd578937521
2011-04-14 18:04:50 +00:00
Richard Frith-MacDonald
88cd94d250
gc fixup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32860 72102866-910b-0410-8b05-ffd578937521
2011-04-14 12:31:51 +00:00
Richard Frith-MacDonald
7d8419ec42
tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32841 72102866-910b-0410-8b05-ffd578937521
2011-04-13 14:34:39 +00:00
Richard Frith-MacDonald
310d405479
improve documentation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32840 72102866-910b-0410-8b05-ffd578937521
2011-04-13 14:30:20 +00:00
Richard Frith-MacDonald
b1745e7d9d
Minor fixups for release ... mostly avoid failed testcases.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32837 72102866-910b-0410-8b05-ffd578937521
2011-04-12 05:41:53 +00:00
Nicola Pero
1074edb811
Improved checks for native ObjC exceptions. We now check the runtime support here, and disable them from here regardless of what gnustep-make did (this makes it easier to change the runtime without reconfiguring gnustep-make). Small update to ObjC runtime code for GCC 4.6
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32820 72102866-910b-0410-8b05-ffd578937521
2011-04-09 13:47:37 +00:00
Richard Frith-MacDonald
9d31f2d08d
fix bug opening connection to mail server
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32797 72102866-910b-0410-8b05-ffd578937521
2011-04-07 10:58:07 +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
Richard Frith-MacDonald
9f32aeb525
remove unused directory and obsolete comments
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32795 72102866-910b-0410-8b05-ffd578937521
2011-04-07 07:32:00 +00:00
Richard Frith-MacDonald
d3c38af54b
Apply patch for bug #32899
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32794 72102866-910b-0410-8b05-ffd578937521
2011-04-07 05:09:08 +00:00
Richard Frith-MacDonald
4d646deb2e
try to get C++ constructur/destructor calling working for all.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32781 72102866-910b-0410-8b05-ffd578937521
2011-04-05 12:13:12 +00:00
Richard Frith-MacDonald
ed0d634335
indentation fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32780 72102866-910b-0410-8b05-ffd578937521
2011-04-05 12:12:34 +00:00
Richard Frith-MacDonald
b1b5714169
fix timezone bug on mingw spotted by Fred
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32778 72102866-910b-0410-8b05-ffd578937521
2011-04-04 20:54:26 +00:00
Richard Frith-MacDonald
ee798647d7
fixup for signedness ... charValue always returns a signed char
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32777 72102866-910b-0410-8b05-ffd578937521
2011-04-04 16:35:20 +00:00
Richard Frith-MacDonald
d9d0d1b6fd
portability bugfixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32769 72102866-910b-0410-8b05-ffd578937521
2011-04-04 10:57:49 +00:00
Richard Frith-MacDonald
c56633fb1b
fix leak and weak docs a little
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32767 72102866-910b-0410-8b05-ffd578937521
2011-04-03 19:14:29 +00:00
Richard Frith-MacDonald
899590c40c
tweaks for OpenBSD
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32766 72102866-910b-0410-8b05-ffd578937521
2011-04-03 09:54:57 +00:00
Richard Frith-MacDonald
267fc9c251
GC fixup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32765 72102866-910b-0410-8b05-ffd578937521
2011-04-03 08:20:57 +00:00
Richard Frith-MacDonald
7eaee133a3
GC fix for proxy finalisation error.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32764 72102866-910b-0410-8b05-ffd578937521
2011-04-03 04:25:52 +00:00
Riccardo Mottola
06de8db62b
add directory of the local headers
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32761 72102866-910b-0410-8b05-ffd578937521
2011-04-01 12:40:52 +00:00
Richard Frith-MacDonald
f39930a712
fix character mapping error
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32748 72102866-910b-0410-8b05-ffd578937521
2011-03-31 20:16:53 +00:00
Richard Frith-MacDonald
7aee0158bc
Cleanup and fix to build additipns library on apple systems.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32737 72102866-910b-0410-8b05-ffd578937521
2011-03-29 11:18:10 +00:00
Richard Frith-MacDonald
afb3405c5d
fixup for apple
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32736 72102866-910b-0410-8b05-ffd578937521
2011-03-29 11:07:14 +00:00
Richard Frith-MacDonald
4918e76599
casts to keep compiler happy
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32733 72102866-910b-0410-8b05-ffd578937521
2011-03-29 09:40:14 +00:00
Richard Frith-MacDonald
c0979f8d17
64bit safety fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32731 72102866-910b-0410-8b05-ffd578937521
2011-03-29 08:16:02 +00:00
David Chisnall
2e1b6bafcb
Added a really ugly hack that makes NSConnection work on 64-bit platforms, without depending on undefined behaviour. This is not the correct fix - that needs to be done by someone who understands the code a bit better than me. See mailing list post for details.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32727 72102866-910b-0410-8b05-ffd578937521
2011-03-28 23:56:31 +00:00
Riccardo Mottola
9c59b7aeb8
safer and more portable pointer access
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32717 72102866-910b-0410-8b05-ffd578937521
2011-03-28 08:50:45 +00:00
Richard Frith-MacDonald
683386b6c6
add comments for clarification
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32697 72102866-910b-0410-8b05-ffd578937521
2011-03-24 06:24:05 +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
Wolfgang Lux
2a50497248
Get -methodSignatureForSelector: right again in case the method is
...
called on a class object and the old runtime is used.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32689 72102866-910b-0410-8b05-ffd578937521
2011-03-22 20:59:06 +00:00
Riccardo Mottola
053138cbce
use cocoa values for the coding keys
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32644 72102866-910b-0410-8b05-ffd578937521
2011-03-18 10:34:40 +00:00
Richard Frith-MacDonald
1baa775684
improve typed selector handling
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32642 72102866-910b-0410-8b05-ffd578937521
2011-03-18 06:32:47 +00:00
Richard Frith-MacDonald
ac23609a4c
fix bug registering typed selectors
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32641 72102866-910b-0410-8b05-ffd578937521
2011-03-18 06:18:24 +00:00
Wolfgang Lux
a4bda067a6
Disable use of a fake main function by default on Darwin/Mac OS X.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32638 72102866-910b-0410-8b05-ffd578937521
2011-03-17 22:33:31 +00:00
David Chisnall
4ca1911f13
Correctly call C++ constructors / destructors for C++ 'objects' in ObjC++ ivars.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32632 72102866-910b-0410-8b05-ffd578937521
2011-03-17 15:02:52 +00:00
Richard Frith-MacDonald
4d92576edd
trivial tidyups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32630 72102866-910b-0410-8b05-ffd578937521
2011-03-17 12:53:48 +00:00
David Chisnall
397d15d8a1
Register C++ exception handler correctly for little endian platforms as well as big endian ones.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32608 72102866-910b-0410-8b05-ffd578937521
2011-03-16 14:38:42 +00:00
Richard Frith-MacDonald
8bea71efa9
fix am/pm issues and incorrect test
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32605 72102866-910b-0410-8b05-ffd578937521
2011-03-16 13:17:48 +00:00
Richard Frith-MacDonald
21371b2c5e
improve thread safety warning
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32604 72102866-910b-0410-8b05-ffd578937521
2011-03-16 12:17:02 +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
Richard Frith-MacDonald
8b20a6b4fd
make header dir
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32549 72102866-910b-0410-8b05-ffd578937521
2011-03-13 14:33:42 +00:00
Richard Frith-MacDonald
09bd40334c
simplify header layout
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32545 72102866-910b-0410-8b05-ffd578937521
2011-03-13 12:52:37 +00:00
Richard Frith-MacDonald
fae2b696cd
improve testing
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32544 72102866-910b-0410-8b05-ffd578937521
2011-03-13 12:14:40 +00:00
Richard Frith-MacDonald
53882ca6d3
fix dereferencing null pointer
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32543 72102866-910b-0410-8b05-ffd578937521
2011-03-13 10:14:11 +00:00
Richard Frith-MacDonald
9ea5861683
separate building of blocks support from rest of compat code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32542 72102866-910b-0410-8b05-ffd578937521
2011-03-13 09:57:00 +00:00
Richard Frith-MacDonald
84b2f8d5bf
mingw fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32541 72102866-910b-0410-8b05-ffd578937521
2011-03-13 09:41:20 +00:00
Richard Frith-MacDonald
ee7872e6fd
mingw block fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32540 72102866-910b-0410-8b05-ffd578937521
2011-03-13 09:38:37 +00:00
Richard Frith-MacDonald
46cf25ebed
add config check for blocks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32539 72102866-910b-0410-8b05-ffd578937521
2011-03-13 08:20:17 +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
98c6309213
Update ChangeLog. reverse accidental addition of GSBlocks.m to makefile ...
...
we mustn't thave it there until it can be added without causing link error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32533 72102866-910b-0410-8b05-ffd578937521
2011-03-11 09:17:34 +00:00
Richard Frith-MacDonald
4f9574fc5d
add missing headers etc
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32531 72102866-910b-0410-8b05-ffd578937521
2011-03-11 08:14:04 +00:00
Richard Frith-MacDonald
2539d75717
add warning
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32526 72102866-910b-0410-8b05-ffd578937521
2011-03-10 08:18:52 +00:00
Richard Frith-MacDonald
9810a1ec9c
a few more static analyser tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32517 72102866-910b-0410-8b05-ffd578937521
2011-03-09 12:40:50 +00:00
Richard Frith-MacDonald
4b367a26d2
tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32516 72102866-910b-0410-8b05-ffd578937521
2011-03-09 12:01:04 +00:00
Richard Frith-MacDonald
99d5283104
fix bug resetting defaults
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32515 72102866-910b-0410-8b05-ffd578937521
2011-03-09 11:12:30 +00:00
Richard Frith-MacDonald
b918c226f7
minor cleanup for static analyser
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32514 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:53:25 +00:00
Richard Frith-MacDonald
0d5c7cb77c
simplify
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32512 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:42:16 +00:00
Richard Frith-MacDonald
41a929293c
remove redundant code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32510 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:32:48 +00:00
Richard Frith-MacDonald
01e220f067
fixup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32508 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:25:55 +00:00
Richard Frith-MacDonald
74eac99280
add last night's changes based on static analyser results.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32507 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:24:18 +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
278bed4da1
avoid signedness warning
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32494 72102866-910b-0410-8b05-ffd578937521
2011-03-08 09:52:34 +00:00
Richard Frith-MacDonald
6bdce1cf05
mingw tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32488 72102866-910b-0410-8b05-ffd578937521
2011-03-07 15:47:07 +00:00
Richard Frith-MacDonald
218582e63c
more bsd tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32485 72102866-910b-0410-8b05-ffd578937521
2011-03-07 15:34:06 +00:00
Richard Frith-MacDonald
96e48988fc
avoid compiler/linker warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32483 72102866-910b-0410-8b05-ffd578937521
2011-03-07 11:34:17 +00:00
Richard Frith-MacDonald
542df716ec
get return address better on sparc etc.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32476 72102866-910b-0410-8b05-ffd578937521
2011-03-06 14:23:57 +00:00
Richard Frith-MacDonald
98c91159d9
return address tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32471 72102866-910b-0410-8b05-ffd578937521
2011-03-06 10:09:37 +00:00
Richard Frith-MacDonald
f3fca57168
tweaks for osx compatiblity
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32470 72102866-910b-0410-8b05-ffd578937521
2011-03-06 05:58:50 +00:00
Richard Frith-MacDonald
632f053008
remove obsolete code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32467 72102866-910b-0410-8b05-ffd578937521
2011-03-06 05:18:01 +00:00
Richard Frith-MacDonald
9be686a44a
remove unused variables
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32466 72102866-910b-0410-8b05-ffd578937521
2011-03-05 18:20:37 +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
76e7141e1b
rudimentary implementation fo two new methods
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32463 72102866-910b-0410-8b05-ffd578937521
2011-03-05 17:17:57 +00:00
Richard Frith-MacDonald
62a00dd0a8
fix for bug #32564 ?
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32462 72102866-910b-0410-8b05-ffd578937521
2011-03-05 16:33:24 +00:00
Richard Frith-MacDonald
f8989f9ba3
add block enumeration
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32459 72102866-910b-0410-8b05-ffd578937521
2011-03-05 15:01:35 +00:00
Richard Frith-MacDonald
03233198f7
Warn about using an unsafe +initialize
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32455 72102866-910b-0410-8b05-ffd578937521
2011-03-05 13:11:47 +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
05beb8f194
fix premature release
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32453 72102866-910b-0410-8b05-ffd578937521
2011-03-05 06:11:50 +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
6afda2b67a
KVO tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32443 72102866-910b-0410-8b05-ffd578937521
2011-03-03 17:33:57 +00:00
Richard Frith-MacDonald
e0a2640d15
re-introduce thread pool
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32442 72102866-910b-0410-8b05-ffd578937521
2011-03-03 15:14:29 +00:00
Richard Frith-MacDonald
db78d4cd8e
Add support for 'concurrent' NSOperations, but remove the pools of theads and
...
and run normal operations each in their own until we re-instate pools.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32440 72102866-910b-0410-8b05-ffd578937521
2011-03-03 10:56:47 +00:00
Richard Frith-MacDonald
6e6720d36f
typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32438 72102866-910b-0410-8b05-ffd578937521
2011-03-03 09:43:04 +00:00
Richard Frith-MacDonald
2d95b79785
fix line missed in last change
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32437 72102866-910b-0410-8b05-ffd578937521
2011-03-03 09:42:29 +00:00
Richard Frith-MacDonald
0448c6e620
fix possible free of non heasp memory
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32435 72102866-910b-0410-8b05-ffd578937521
2011-03-03 08:14:02 +00:00
Richard Frith-MacDonald
542fb72c06
minor KVO fix
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32432 72102866-910b-0410-8b05-ffd578937521
2011-03-02 10:52:27 +00:00
Richard Frith-MacDonald
f6293dd808
make notification more robust
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32430 72102866-910b-0410-8b05-ffd578937521
2011-03-01 20:39:14 +00:00
Richard Frith-MacDonald
bf05e6fe8b
fix to compile on systems withut avahi
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32429 72102866-910b-0410-8b05-ffd578937521
2011-03-01 18:14:21 +00:00
Niels Grewe
821962705e
Declare a protocol for GNUstep specific delegate methods in NSNetServices.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32426 72102866-910b-0410-8b05-ffd578937521
2011-03-01 10:52:21 +00:00
Richard Frith-MacDonald
7cf4d2bb21
garbage collection tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32425 72102866-910b-0410-8b05-ffd578937521
2011-03-01 10:51:42 +00:00
Richard Frith-MacDonald
b80266e49b
simple implementation for gc
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32419 72102866-910b-0410-8b05-ffd578937521
2011-02-28 21:59:42 +00:00
Richard Frith-MacDonald
d18e29dde8
avoid compiler warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32417 72102866-910b-0410-8b05-ffd578937521
2011-02-28 19:49:57 +00:00
Richard Frith-MacDonald
5a0f5c16ff
fixup error in runtime specific calls
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32415 72102866-910b-0410-8b05-ffd578937521
2011-02-28 18:16:49 +00:00
Richard Frith-MacDonald
074bf7a853
add code for other runtimes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32413 72102866-910b-0410-8b05-ffd578937521
2011-02-28 16:00:21 +00:00
Richard Frith-MacDonald
1cfe74bbc6
fix typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32398 72102866-910b-0410-8b05-ffd578937521
2011-02-27 23:34:57 +00:00
Richard Frith-MacDonald
0b7c8ba8cf
fix typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32397 72102866-910b-0410-8b05-ffd578937521
2011-02-27 23:33:53 +00:00
Richard Frith-MacDonald
5168bd5e2e
simplify typed selector usage.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32396 72102866-910b-0410-8b05-ffd578937521
2011-02-27 23:29:25 +00:00
Richard Frith-MacDonald
93f1f36168
fix typo in comment
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32393 72102866-910b-0410-8b05-ffd578937521
2011-02-27 22:44:16 +00:00
Richard Frith-MacDonald
f03e839d7c
tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32392 72102866-910b-0410-8b05-ffd578937521
2011-02-27 22:37:52 +00:00
Richard Frith-MacDonald
2222fdeb16
Banlu Kemiyatorn <object@gmail.com> ... fix error checking condition for dependencies
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32391 72102866-910b-0410-8b05-ffd578937521
2011-02-27 22:36:22 +00:00
Richard Frith-MacDonald
05e186ac65
fix gc heade rlocation.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32388 72102866-910b-0410-8b05-ffd578937521
2011-02-27 17:53:14 +00:00
Richard Frith-MacDonald
5fbd5d08a7
fix typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32387 72102866-910b-0410-8b05-ffd578937521
2011-02-27 16:14:26 +00:00
Richard Frith-MacDonald
7a55300d6b
cleanup for next reelease
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32385 72102866-910b-0410-8b05-ffd578937521
2011-02-27 09:08:59 +00:00
Richard Frith-MacDonald
ed9082d7b0
fixup ugly coding stype to improve maintainability
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32384 72102866-910b-0410-8b05-ffd578937521
2011-02-26 21:42:20 +00:00
David Chisnall
3193a75cb9
Actually fix C99isms.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32382 72102866-910b-0410-8b05-ffd578937521
2011-02-26 19:25:15 +00:00
David Chisnall
1b5248b98a
Fixed C99ism.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32381 72102866-910b-0410-8b05-ffd578937521
2011-02-26 19:23:26 +00:00
David Chisnall
767211d106
Make blocks conform to NSCopying.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32377 72102866-910b-0410-8b05-ffd578937521
2011-02-26 13:40:06 +00:00
David Chisnall
a139de7bcb
Move method declarations on blocks from EtoileFoundation into GNUstep.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32376 72102866-910b-0410-8b05-ffd578937521
2011-02-26 13:10:49 +00:00
Richard Frith-MacDonald
0241a4347b
double comparison fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32375 72102866-910b-0410-8b05-ffd578937521
2011-02-26 06:29:57 +00:00
Richard Frith-MacDonald
b463bba090
fix error in float comparison
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32361 72102866-910b-0410-8b05-ffd578937521
2011-02-25 00:25:43 +00:00
David Chisnall
7027375a67
Add inline specifier to __objc_dynamic_get_symbol_path() to silence unused function warning.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32345 72102866-910b-0410-8b05-ffd578937521
2011-02-24 13:11:47 +00:00
Niels Grewe
6737a2904d
Fix typos.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32344 72102866-910b-0410-8b05-ffd578937521
2011-02-24 12:34:21 +00:00
Richard Frith-MacDonald
9550a5415b
Path standardisation tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32328 72102866-910b-0410-8b05-ffd578937521
2011-02-23 14:59:06 +00:00
Richard Frith-MacDonald
59d4be1265
OSX compat tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32323 72102866-910b-0410-8b05-ffd578937521
2011-02-23 11:52:17 +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
2aed57d95a
Improve reliability
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32316 72102866-910b-0410-8b05-ffd578937521
2011-02-23 08:56:25 +00:00
Richard Frith-MacDonald
6f9ef887aa
fix for constant string case changes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32309 72102866-910b-0410-8b05-ffd578937521
2011-02-23 07:25:12 +00:00
Nicola Pero
e4cad664d8
Implemented lookup of selector with a type for __GNU_LIBOBJC__. We can simply use sel_copyTypedSelectorList() to access the full list of selectors with a certain name.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32296 72102866-910b-0410-8b05-ffd578937521
2011-02-22 13:34:49 +00:00
Richard Frith-MacDonald
c7c3b61563
Try to make sure we have an absolute path for executables
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32291 72102866-910b-0410-8b05-ffd578937521
2011-02-22 12:22:49 +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
38670c0a08
OSX compatibility changes and other minor tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32279 72102866-910b-0410-8b05-ffd578937521
2011-02-22 07:05:36 +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
David Chisnall
18ccb48ece
Some changes to method type lookup when forwarding. Alway use the compiler-supplied type information if it exists - this is guaranteed to by the correct type encoding for the call frame and lets us deconstruct it correctly. We can then fail gracefully later on when trying to invoke the selector if the types in the callee don't match, rather than by reading nonsense from the stack now.
...
When using the GNUstep runtime, use the safe mechanism for checking whether there is more than one typed selector, and only use that as a guess if it is safe to do so. With the GCC runtime, we are still stuck using the API that it is impossible to use safely (we might be better off just giving up at this point), but now we call this after -methodSignatureForSelector:, so the app developer gets a chance to do the right thing before we do the wrong thing.
Also changed the assert to throw an exception if no type signature can be found. This behaviour is consistent with Mac OS X.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32257 72102866-910b-0410-8b05-ffd578937521
2011-02-21 11:05:33 +00:00
Richard Frith-MacDonald
61bc059d4a
Cleanup ... avoid accessing the 'isa' variable directly.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32247 72102866-910b-0410-8b05-ffd578937521
2011-02-20 16:21:43 +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
Richard Frith-MacDonald
4ed081d410
Replace old code directly referencing class_pointer ivar with calls to the new runtime API treating objects as opaque pointers.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32243 72102866-910b-0410-8b05-ffd578937521
2011-02-20 12:28:12 +00:00
Richard Frith-MacDonald
0cb48d516b
Update for new runtime api
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32241 72102866-910b-0410-8b05-ffd578937521
2011-02-20 08:32:54 +00:00
Richard Frith-MacDonald
c7eeb1bb08
Use GSObjCRuntime functions for selector types until/unless we can get
...
a standard runtime API that handles them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32240 72102866-910b-0410-8b05-ffd578937521
2011-02-20 07:58:11 +00:00
Richard Frith-MacDonald
474a12b708
minor cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32234 72102866-910b-0410-8b05-ffd578937521
2011-02-19 19:42:42 +00:00
Richard Frith-MacDonald
b9b50a9fef
simplify a little
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32229 72102866-910b-0410-8b05-ffd578937521
2011-02-19 17:46:45 +00:00
David Chisnall
71905252e5
Simplify the macros from the last commit. We don't actually need them with the old GCC runtime, because we already implement wrappers in the ObjectiveC2 framework, which let us easily migrate from GCC 4.5 libobjc + Objective2 to libobjc2 without a recompile (although not to GCC 4.6 libobjc, due to the function renaming).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32222 72102866-910b-0410-8b05-ffd578937521
2011-02-19 16:07:07 +00:00
David Chisnall
495f92e10a
Add some macros that map some libobjc functions to their runtime-specific variants.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32220 72102866-910b-0410-8b05-ffd578937521
2011-02-19 16:02:55 +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
2f6264e1cb
quick hack for NaN comparison
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32200 72102866-910b-0410-8b05-ffd578937521
2011-02-17 18:04:17 +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
e262860ab4
documentation tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32196 72102866-910b-0410-8b05-ffd578937521
2011-02-16 16:51:42 +00:00
Richard Frith-MacDonald
e06991ba39
Added patch by Jens Ayton to support parsing 64bit integers in XML plists.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32191 72102866-910b-0410-8b05-ffd578937521
2011-02-16 08:44:04 +00:00
Wolfgang Lux
ce4afe2874
Add missing calls to super/self initialization in NSDateFormatter.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32185 72102866-910b-0410-8b05-ffd578937521
2011-02-16 07:39:06 +00:00
Richard Frith-MacDonald
b96b154e5e
Add David's generalisation of _()
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32184 72102866-910b-0410-8b05-ffd578937521
2011-02-16 06:26:14 +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
Richard Frith-MacDonald
27550994ee
use the _() macro for localisation within base
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32173 72102866-910b-0410-8b05-ffd578937521
2011-02-15 06:25:54 +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
Germán Arias
c5720109a0
Added GSBaseLocalizedString() in NSUndoManager
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32160 72102866-910b-0410-8b05-ffd578937521
2011-02-14 18:55:57 +00:00
Richard Frith-MacDonald
7fa110e2c5
documentation fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32157 72102866-910b-0410-8b05-ffd578937521
2011-02-14 10:57:57 +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
140902a00b
add comment.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32154 72102866-910b-0410-8b05-ffd578937521
2011-02-13 20:01:46 +00:00
Richard Frith-MacDonald
a9a3fa7d3f
tweak full user name
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32151 72102866-910b-0410-8b05-ffd578937521
2011-02-13 18:54:53 +00:00
Richard Frith-MacDonald
8d89880ace
Use memmove rather than memcpy
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32145 72102866-910b-0410-8b05-ffd578937521
2011-02-13 12:56:46 +00:00
Richard Frith-MacDonald
314980c995
fix exception names used in last change.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32131 72102866-910b-0410-8b05-ffd578937521
2011-02-13 08:02:02 +00:00
Richard Frith-MacDonald
4a099cd60a
Partially revert poorly thoght out code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32127 72102866-910b-0410-8b05-ffd578937521
2011-02-13 06:43:22 +00:00
Richard Frith-MacDonald
60c38bae4e
Partial revert
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32126 72102866-910b-0410-8b05-ffd578937521
2011-02-13 06:40:20 +00:00
Richard Frith-MacDonald
0592b48e55
Raise when attempting to use unimplemented classes. Check for null pointers
...
in more runtime functions (probably still many cases where we crash if null
pointers are passed to the API and Apple behave more tolrantly).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32124 72102866-910b-0410-8b05-ffd578937521
2011-02-13 06:31:05 +00:00
David Chisnall
730ecc942f
Don't expand symlinks when standardizing paths (OS X doesn't).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32109 72102866-910b-0410-8b05-ffd578937521
2011-02-12 18:02: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
56fe3ad777
Try to make code more robust and comment copiously.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32107 72102866-910b-0410-8b05-ffd578937521
2011-02-12 16:33:40 +00:00
Richard Frith-MacDonald
f7e7ef50c3
Don't call [NSZombie+class] as the method doesn't exist.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32105 72102866-910b-0410-8b05-ffd578937521
2011-02-12 15:44:00 +00:00
Richard Frith-MacDonald
7047f9e6d4
more changes to avoid leak warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32093 72102866-910b-0410-8b05-ffd578937521
2011-02-12 09:00:18 +00:00
Richard Frith-MacDonald
8d5395f884
tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32091 72102866-910b-0410-8b05-ffd578937521
2011-02-12 06:57:06 +00:00
Richard Frith-MacDonald
705e1a32ca
Attempts to prevent leak warnings from static analyser
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32090 72102866-910b-0410-8b05-ffd578937521
2011-02-12 06:51:42 +00:00
Richard Frith-MacDonald
11e6f51bf4
remove unused code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32089 72102866-910b-0410-8b05-ffd578937521
2011-02-12 06:12:39 +00:00
Richard Frith-MacDonald
b36fbab52f
Avoid some locking
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32086 72102866-910b-0410-8b05-ffd578937521
2011-02-11 19:08:32 +00:00
Richard Frith-MacDonald
992b57e83b
Fix major mamory corruption problem.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32085 72102866-910b-0410-8b05-ffd578937521
2011-02-11 18:53:24 +00:00
Richard Frith-MacDonald
6f4f708a6f
Reduce internal class interdependency for improved maintainability.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32083 72102866-910b-0410-8b05-ffd578937521
2011-02-11 16:04:05 +00:00
Richard Frith-MacDonald
7dcf69abbb
Recommit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32082 72102866-910b-0410-8b05-ffd578937521
2011-02-11 15:49:41 +00:00
Richard Frith-MacDonald
d3f23b5057
Recommit NSUnarchiver.m (now tested), revert recently broken NSPropertyList.m to working version again.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32081 72102866-910b-0410-8b05-ffd578937521
2011-02-11 15:43:43 +00:00
David Chisnall
cd09e6bf87
Remove redundant copy + leak in NSArray.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32080 72102866-910b-0410-8b05-ffd578937521
2011-02-11 15:13:48 +00:00
David Chisnall
511ac3219d
Ensure that an IMP in NSPropertyList is always initialised before it's called.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32079 72102866-910b-0410-8b05-ffd578937521
2011-02-11 15:12:13 +00:00
David Chisnall
4d47a08f1d
Another case of the bug fixed in r32066.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32078 72102866-910b-0410-8b05-ffd578937521
2011-02-11 15:09:14 +00:00
David Chisnall
104c14bbf1
Silence some warnings caused by returning the result of a method that doesn't return.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32077 72102866-910b-0410-8b05-ffd578937521
2011-02-11 14:51:47 +00:00
Richard Frith-MacDonald
60885954c6
Recommit tested changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32075 72102866-910b-0410-8b05-ffd578937521
2011-02-11 14:31:25 +00:00
Richard Frith-MacDonald
51cf9b9cf9
Reapply some changes with modifications
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32074 72102866-910b-0410-8b05-ffd578937521
2011-02-11 14:07:49 +00:00
Richard Frith-MacDonald
336c7bf021
Revert back to working code!
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32072 72102866-910b-0410-8b05-ffd578937521
2011-02-11 13:53:54 +00:00
Richard Frith-MacDonald
f3f69cccc2
get things to compile again
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32071 72102866-910b-0410-8b05-ffd578937521
2011-02-11 13:05:48 +00:00
David Chisnall
a67ed22c01
Remove a lock that is protecting thread-local storage. Stop leaking NSThread objects that are stored in thread-local storage.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32070 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:54:59 +00:00
Richard Frith-MacDonald
2a1389023f
revert last
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32069 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:43:47 +00:00
David Chisnall
20d95085f5
Fix release of the wrong object in NSCache.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32068 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:42:59 +00:00
David Chisnall
8b241428d7
Fix memory leak in NSCache.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32067 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:40:46 +00:00
David Chisnall
dd88a65f4a
Fix nonsense use of libicu, spotted by the analyser, with a not-so-helpful warning (he status pointer passed in to icu functions MUST be initialised to 0, because the ICU functions test it as well as setting it so you can call a load of ICU functions with the same status flag and not wrap them all in tests).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32066 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:39:01 +00:00
David Chisnall
940adacf2d
Add some asserts to NSMethodSignature to make the analyser happy.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32065 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:36:40 +00:00
Richard Frith-MacDonald
7a7efb3484
temporarily revert to get code to compile again.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32064 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:29:50 +00:00
Richard Frith-MacDonald
0870dec426
leak fix
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32063 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:25:20 +00:00
David Chisnall
ef600d4917
Make NSPropertyList.m use the temporary buffer macros, instead of reimplementing them.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32062 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:21:09 +00:00
David Chisnall
45c20425df
Added assert in NSKeyValueObserving to suppress analyser warning.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32061 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:16:39 +00:00
David Chisnall
fa8afdc28a
Added exception-safe version of the GS_BEGINITEMBUF() macro. As a side effect, this should silence the zero-sized VLA warnings in the static analyser.
...
Note: This macro is currently only used on GCC 4+ and clang. It depends on __attribute__((cleanup)), which was introduced some time in the 3.x series, but I'm not sure exactly when (3.2 / 3.3 I think), so someone who cares about gcc 3.x can tweak this if they want (not sure if anyone does - I think most people use 2.95, 4.x, or clang).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32059 72102866-910b-0410-8b05-ffd578937521
2011-02-11 12:06:25 +00:00
Richard Frith-MacDonald
d81ac8a945
further tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32058 72102866-910b-0410-8b05-ffd578937521
2011-02-11 11:45:07 +00:00
David Chisnall
acf11e142d
Fix NSEnumerationReverse in the other place where this bug was pasted. I must have been asleep or drunk when I wrote this method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32055 72102866-910b-0410-8b05-ffd578937521
2011-02-11 11:31:41 +00:00
David Chisnall
8c06de29c6
Fix [NSArray -indexesOfObjectsWithOptions:passingTest:] with NSEnumerationReverse option. Was doing forward iteration in all cases.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32054 72102866-910b-0410-8b05-ffd578937521
2011-02-11 11:29:34 +00:00
David Chisnall
887f25cb5b
Remove some redundant arithmetic (l - 0).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32053 72102866-910b-0410-8b05-ffd578937521
2011-02-11 11:09:55 +00:00
David Chisnall
1e886a2b5a
Removed redundant code line spotted by analyser - looks like copy-and-paste bug from line 1192 (line 1200 was always replacing the value stored by 1199).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32052 72102866-910b-0410-8b05-ffd578937521
2011-02-11 11:06:25 +00:00
Richard Frith-MacDonald
594a654252
NSZombie fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32051 72102866-910b-0410-8b05-ffd578937521
2011-02-11 10:00:00 +00:00
Richard Frith-MacDonald
37f65fb873
fix bad commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32050 72102866-910b-0410-8b05-ffd578937521
2011-02-11 09:36:38 +00:00
Richard Frith-MacDonald
9eb046056c
tweaks for clang static analyser warningS
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32048 72102866-910b-0410-8b05-ffd578937521
2011-02-11 09:02:33 +00:00
Richard Frith-MacDonald
7deeb174a4
revert
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32047 72102866-910b-0410-8b05-ffd578937521
2011-02-11 07:22:23 +00:00
Stefan Bidigaray
360d24cda1
Avoid unnecessary memory copying.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32046 72102866-910b-0410-8b05-ffd578937521
2011-02-11 04:06:00 +00:00
David Chisnall
0239c9b9a5
Use NSClassFromString() to look up NSZombie class. This has two advantages:
...
1) Doesn't rely on Apple-incompatible behaviour in the GCC runtime that introduces fun heisenbugs.
2) Doesn't require constructing the dtable for NSZombie if we're not actually using it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32039 72102866-910b-0410-8b05-ffd578937521
2011-02-10 18:53:48 +00:00
David Chisnall
0d28d838fd
Revert last commit. The actual Apple behaviour is what libobjc2 used to do, not what it does now. It's incredibly ugly, and should not have been allowed: It makes NSObject the superclass of NSObject's metaclass, but does NOT do the same transform for any other classes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32038 72102866-910b-0410-8b05-ffd578937521
2011-02-10 18:40:18 +00:00
David Chisnall
a8cd2e588c
Make [NSObject -class] return self if self is a class. This is needed for a weird bit of the ObjC spec relating to metaclasses of root classes. The GNUstep runtime behaviour mimics the Apple behaviour, while the GCC runtime mimics the StepStone behaviour, so we get some somewhat irritating differences.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32037 72102866-910b-0410-8b05-ffd578937521
2011-02-10 18:33:26 +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
David Chisnall
2edfea16be
Fix bug reported by static analyser - NSData was testing ivars instead of arguments in -initWithBytesNoCopy:length:freeWhenDone:. The correct behaviour was to throw an exception if passed a NULL pointer and a length. The actual behaviour was to test whether the data object was invalid. This could lead to accidental NULL-pointer dereferencing later.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32030 72102866-910b-0410-8b05-ffd578937521
2011-02-10 10:13:50 +00:00
Stefan Bidigaray
021d3680d7
Implemented [NSTimeZone-daylightSavingTimeOffsetForDate:].
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32027 72102866-910b-0410-8b05-ffd578937521
2011-02-10 03:58:02 +00:00
Stefan Bidigaray
88e468e8bf
Implemented [NSTimeZone-localizedName:locale:].
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32025 72102866-910b-0410-8b05-ffd578937521
2011-02-10 02:20:57 +00:00
Stefan Bidigaray
ac4a764b44
Fix broken method in NSDateFormatter class.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32023 72102866-910b-0410-8b05-ffd578937521
2011-02-10 01:52:16 +00:00
Richard Frith-MacDonald
bfd062d985
minor performance tweak when handling lots of performs on other threads.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32020 72102866-910b-0410-8b05-ffd578937521
2011-02-09 10:10:04 +00:00
Richard Frith-MacDonald
a28cbe7271
clarify comment
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32012 72102866-910b-0410-8b05-ffd578937521
2011-02-07 22:53:35 +00:00
Richard Frith-MacDonald
525371f50b
locale tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32006 72102866-910b-0410-8b05-ffd578937521
2011-02-07 17:21:00 +00:00
Richard Frith-MacDonald
fe3f6c7d60
minor osx compatibility tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31999 72102866-910b-0410-8b05-ffd578937521
2011-02-04 22:46:08 +00:00
Richard Frith-MacDonald
8574a1d8de
apply patch to fix leaks.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31997 72102866-910b-0410-8b05-ffd578937521
2011-02-03 21:21:45 +00:00
Richard Frith-MacDonald
85139364d2
get mdns code to compile
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31995 72102866-910b-0410-8b05-ffd578937521
2011-02-03 08:17:07 +00:00
Stefan Bidigaray
a234bad5f3
Implemented doesRelativeDateFormatting methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31994 72102866-910b-0410-8b05-ffd578937521
2011-02-03 02:15:16 +00:00
Richard Frith-MacDonald
1c3cad8be8
implement missing method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31984 72102866-910b-0410-8b05-ffd578937521
2011-02-01 13:51:32 +00:00
Stefan Bidigaray
d136fc4986
Update autoupdatingCurrentCalendar whenever Locale, Time Zone and/or Calendar defaults change.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31977 72102866-910b-0410-8b05-ffd578937521
2011-01-29 18:49:21 +00:00
Richard Frith-MacDonald
883fd6211b
Fix bug positing notifications
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31976 72102866-910b-0410-8b05-ffd578937521
2011-01-29 16:15:46 +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
b06267a94f
Update autoupdatingCurrentLocale whenever the Locale default changes. The -currentLocale method now also checks Locale default.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31972 72102866-910b-0410-8b05-ffd578937521
2011-01-29 15:33:27 +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
Stefan Bidigaray
ab8a264326
Added -isEqual: to NSCalendar.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31965 72102866-910b-0410-8b05-ffd578937521
2011-01-28 00:49:16 +00:00
Stefan Bidigaray
351e9eb29a
Make sure UCalendar is open before trying to use it.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31962 72102866-910b-0410-8b05-ffd578937521
2011-01-28 00:23:57 +00:00
Stefan Bidigaray
d80a4a55f2
Set some sensible defaults to NSNumberFormatter.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31960 72102866-910b-0410-8b05-ffd578937521
2011-01-27 23:29:41 +00:00
Stefan Bidigaray
3029c5982c
Add currency code when creating locale identifiers. And fix a crash in NSDateFormatter due to double release.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31956 72102866-910b-0410-8b05-ffd578937521
2011-01-27 00:37:52 +00:00
Stefan Bidigaray
807395c0a1
Minor memory management fixed to NSLocale.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31955 72102866-910b-0410-8b05-ffd578937521
2011-01-26 23:59:23 +00:00
Stefan Bidigaray
eb7fdf6c6d
Change behavior of -numberFromString: and -stringFromNumber: to match Apple documentation. These are 10.4 and above methods and should not work with 10.0 ones.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31949 72102866-910b-0410-8b05-ffd578937521
2011-01-25 02:25:32 +00:00
Stefan Bidigaray
c88f90f049
Check ICU presence in private function.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31946 72102866-910b-0410-8b05-ffd578937521
2011-01-24 23:49:46 +00:00
Stefan Bidigaray
a33c9a2da0
Finished calendar code.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31937 72102866-910b-0410-8b05-ffd578937521
2011-01-23 23:22:10 +00:00
Stefan Bidigaray
243296f6b4
Compile fix.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31935 72102866-910b-0410-8b05-ffd578937521
2011-01-23 18:25:56 +00:00
Stefan Bidigaray
ffa1863308
Stop using OS_API_VERSION() in .m files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31934 72102866-910b-0410-8b05-ffd578937521
2011-01-23 18:03:09 +00:00
Stefan Bidigaray
93bdb7cca2
Fixed initialization bug in NSDateFormatter and implement NSCalendar-components:fromDate:
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31933 72102866-910b-0410-8b05-ffd578937521
2011-01-23 17:10:21 +00:00
Stefan Bidigaray
e0418b2822
Minor memory management fix.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31932 72102866-910b-0410-8b05-ffd578937521
2011-01-23 15:53:02 +00:00
David Chisnall
f72329aa06
Some small fixes in NSNumberFormatter. Mostly stop using == to compare C strings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31930 72102866-910b-0410-8b05-ffd578937521
2011-01-23 15:42:20 +00:00
Stefan Bidigaray
c38f0427f7
Added more code to NSDateFormatter.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31929 72102866-910b-0410-8b05-ffd578937521
2011-01-23 15:03:31 +00:00
Stefan Bidigaray
cf6824ca66
Started implementing new NSDateFormatter methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31926 72102866-910b-0410-8b05-ffd578937521
2011-01-23 04:46:14 +00:00
Stefan Bidigaray
47547a0261
Fixed messed up NSDateFormatter definitions. Not sure how I managed to mess it up.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31925 72102866-910b-0410-8b05-ffd578937521
2011-01-22 23:26:17 +00:00
Stefan Bidigaray
55ac350d39
Stub for 10.4 and above methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31924 72102866-910b-0410-8b05-ffd578937521
2011-01-22 20:36:44 +00:00
Richard Frith-MacDonald
4604c1f98c
Add GlobalDefaults directory support.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31922 72102866-910b-0410-8b05-ffd578937521
2011-01-21 15:19:40 +00:00
Richard Frith-MacDonald
882abe8e74
Fix error handling whitespace in xml
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31910 72102866-910b-0410-8b05-ffd578937521
2011-01-19 09:21:23 +00:00
Richard Frith-MacDonald
73f29ccde0
OSX compatibility improvements
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31909 72102866-910b-0410-8b05-ffd578937521
2011-01-18 12:07:21 +00:00
Richard Frith-MacDonald
7e79628495
Implement partial support for declarations.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31907 72102866-910b-0410-8b05-ffd578937521
2011-01-17 19:37:27 +00:00
Stefan Bidigaray
984fb84dd7
Add FIXME tag to -setMinimum: and -setMaximum:.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31886 72102866-910b-0410-8b05-ffd578937521
2011-01-13 00:34:14 +00:00
Stefan Bidigaray
c03d1096a6
Implmented a few more methods requiring ICU. Added code in -stringForObjectValue: to handle NSNumberFormatterBehavior10_4... need to test this code against OS X, I'm not sure I caught every case.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31885 72102866-910b-0410-8b05-ffd578937521
2011-01-13 00:29:30 +00:00
Stefan Bidigaray
316bd160d7
Fix copy-and-paste error.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31880 72102866-910b-0410-8b05-ffd578937521
2011-01-12 00:14:11 +00:00
Stefan Bidigaray
8111e270df
Fixed decimal separator behavior in NSNumberFormatter... NSLocale tests requiring NSNumberFormatter should all work as expected, now.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31879 72102866-910b-0410-8b05-ffd578937521
2011-01-12 00:04:04 +00:00
Richard Frith-MacDonald
cc405b9ed6
condense separators at start of path.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31875 72102866-910b-0410-8b05-ffd578937521
2011-01-11 13:46:04 +00:00
Stefan Bidigaray
27bf149e78
Added a few more methods to NSNumberFormatter and implemented NSLocale code that required changes to NSNumberFormatter. NSLocale now passes all tests in the testsuite.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31863 72102866-910b-0410-8b05-ffd578937521
2011-01-09 21:16:20 +00:00
Stefan Bidigaray
d3857cd49f
Implemented a few NSNumberFormatter methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31862 72102866-910b-0410-8b05-ffd578937521
2011-01-09 20:18:51 +00:00
Stefan Bidigaray
85149f6b35
Fixed bugs found by testsuite.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31861 72102866-910b-0410-8b05-ffd578937521
2011-01-09 15:54:49 +00:00
Stefan Bidigaray
8af60212d5
Added stub for 10.4+ NSNumberFormatter methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31858 72102866-910b-0410-8b05-ffd578937521
2011-01-08 18:05:42 +00:00
Richard Frith-MacDonald
8bf4eacfa7
xml parsing fixes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31852 72102866-910b-0410-8b05-ffd578937521
2011-01-07 14:41:44 +00:00
Richard Frith-MacDonald
807206c35c
Fix to get NSURL -resourceSpecifier regression tests to pass again.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31849 72102866-910b-0410-8b05-ffd578937521
2011-01-07 10:19:51 +00:00
Richard Frith-MacDonald
e1dbeb420e
minor OSX compatibility tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31847 72102866-910b-0410-8b05-ffd578937521
2011-01-07 09:52:20 +00:00
Fred Kiefer
a4a57e144f
* Source/NSObject.m (GSAtomicIncrement, GSAtomicDecrement):
...
MIPS64 specific adjustment of atomic functions for mips.
Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31841 72102866-910b-0410-8b05-ffd578937521
2011-01-06 12:48:29 +00:00
Stefan Bidigaray
03c2eaaedb
Added copying and coding to NSCalendar. Fixed a few things in NSLocale.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31822 72102866-910b-0410-8b05-ffd578937521
2011-01-02 03:47:29 +00:00
Stefan Bidigaray
797780c433
Minor fixes to NSCalendar and NSLocale. Also implemented NSCalendar's +currentCalendar.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31819 72102866-910b-0410-8b05-ffd578937521
2011-01-01 22:20:16 +00:00
Stefan Bidigaray
798336be99
Fixed some typos.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31818 72102866-910b-0410-8b05-ffd578937521
2011-01-01 21:41:59 +00:00
Stefan Bidigaray
d18e4eb8ed
Implemented -dateByAddingComponents:toDate:options: and -dateFromComponents:.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31812 72102866-910b-0410-8b05-ffd578937521
2010-12-31 22:22:10 +00:00
Stefan Bidigaray
fe41357041
Added iOS 4.0 and later methods to NSDateComponents. These methods will probably show up in OS X 10.7 and are easy enough to add now.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31810 72102866-910b-0410-8b05-ffd578937521
2010-12-31 18:13:39 +00:00
Stefan Bidigaray
e970eb14d6
Added mappings to canonical locale identifers. The NSLocale class can now, for example, map from AmericanEnglish to en_US. The -preferredLanguages method now works, as well.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31809 72102866-910b-0410-8b05-ffd578937521
2010-12-31 17:46:46 +00:00
Nicola Pero
171884ce1c
Explicitly use 'int' to read/write NSStringEncoding so that
...
it works for all versions of GCC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31784 72102866-910b-0410-8b05-ffd578937521
2010-12-27 11:28:01 +00:00
Richard Frith-MacDonald
b6f476a7eb
Cleanups plus minor OSX compatibility tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31781 72102866-910b-0410-8b05-ffd578937521
2010-12-27 07:03:50 +00:00
Richard Frith-MacDonald
3f3fa66078
Fix another leak spotted by Quentin
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31779 72102866-910b-0410-8b05-ffd578937521
2010-12-26 20:37:35 +00:00
Richard Frith-MacDonald
5842007417
fix leak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31778 72102866-910b-0410-8b05-ffd578937521
2010-12-26 08:05:52 +00:00
Quentin Mathe
dfa04d7fb9
Added -stringByReplacingCharactersInRange:withString: (Mac OS 10.5 method)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31776 72102866-910b-0410-8b05-ffd578937521
2010-12-25 19:31:05 +00:00
Nicola Pero
0a0a147ae9
Updated for GCC 4.6
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31771 72102866-910b-0410-8b05-ffd578937521
2010-12-24 17:19:40 +00:00
Nicola Pero
ba3fac5d5b
Fixed [NSObject +conformsToProtocol:] and [NSObject -conformsToProtocol:]
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31769 72102866-910b-0410-8b05-ffd578937521
2010-12-24 15:37:06 +00:00
Nicola Pero
30f098f9f8
Updated code to compile with GCC 4.6 and the new GNU Objective-C runtime
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31765 72102866-910b-0410-8b05-ffd578937521
2010-12-23 02:23:05 +00:00
Nicola Pero
90bc2ff63a
Removed unused check (and definition of) objc_thread_add
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31761 72102866-910b-0410-8b05-ffd578937521
2010-12-22 23:36:11 +00:00
Adam Fedor
4f7b8c2089
* Headers/Foundation/NSCalendar.h: Add NSCopying protocol
...
* Source/NSCalendar.m: Retain ivar. Add copyWithZone:
* Source/NSURL.m (-resourceSpecifier): Separate behavior for
file scheme vs other schemes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31757 72102866-910b-0410-8b05-ffd578937521
2010-12-22 18:10:33 +00:00
Richard Frith-MacDonald
8d225f1583
fix to build with older ICU
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31746 72102866-910b-0410-8b05-ffd578937521
2010-12-17 11:45:17 +00:00
Stefan Bidigaray
365393d065
Added code for -maximumRangeOfUnit: and -minimumRangeofUnit:.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31744 72102866-910b-0410-8b05-ffd578937521
2010-12-17 02:15:55 +00:00
Richard Frith-MacDonald
47fdf3d48d
get closer to coding standards
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31743 72102866-910b-0410-8b05-ffd578937521
2010-12-16 10:59:50 +00:00
Richard Frith-MacDonald
62de5b485f
mostly fixups for ICU
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31742 72102866-910b-0410-8b05-ffd578937521
2010-12-16 10:09:43 +00:00
Stefan Bidigaray
c4fdcb6d93
Started working on NSCalendar. I have done very limited testing and would really appreciate if people could start testing the code here.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31741 72102866-910b-0410-8b05-ffd578937521
2010-12-16 02:57:31 +00:00
Stefan Bidigaray
1b50ad217a
Added locale keyword handling in -componentsFromLocaleIdentifier: and made a few minor modifications to NSLocale. Also included changelog entry for last commit.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31740 72102866-910b-0410-8b05-ffd578937521
2010-12-16 02:15:27 +00:00
Stefan Bidigaray
b16f679be6
Added NSCalendar dependent code even though NSCalendar doesn't currently do anything.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31736 72102866-910b-0410-8b05-ffd578937521
2010-12-15 01:41:34 +00:00
Stefan Bidigaray
5db47c44eb
Add new, completely empty and useless NSCalendar class.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31735 72102866-910b-0410-8b05-ffd578937521
2010-12-15 00:04:51 +00:00
Stefan Bidigaray
b364b9fa33
Actually initialize _components dictionary before adding things to it.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31734 72102866-910b-0410-8b05-ffd578937521
2010-12-14 23:42:22 +00:00
Stefan Bidigaray
174ab7cde4
Implemented more NSLocale functionality.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31728 72102866-910b-0410-8b05-ffd578937521
2010-12-13 03:37:35 +00:00
Riccardo Mottola
e49b9c0ac7
Make the Desktop directory relative to the user home
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31712 72102866-910b-0410-8b05-ffd578937521
2010-12-06 00:44:28 +00:00
Richard Frith-MacDonald
34457079a7
fix possible memory corruption
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31703 72102866-910b-0410-8b05-ffd578937521
2010-12-03 23:28:43 +00:00
Eric Wasylishen
5dd47a135e
Don't compile NSRegularExpression with ICU older than 4.4
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31702 72102866-910b-0410-8b05-ffd578937521
2010-12-02 19:12:24 +00:00
Fred Kiefer
850c2fb314
Add a few OSX 10.6 methods for NSPropertyList.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31692 72102866-910b-0410-8b05-ffd578937521
2010-11-29 22:54:28 +00:00
Richard Frith-MacDonald
a9face8dc8
Chgange missed from last commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31683 72102866-910b-0410-8b05-ffd578937521
2010-11-28 09:33:21 +00:00
Richard Frith-MacDonald
76b2adf16f
cleanup foundation includes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31682 72102866-910b-0410-8b05-ffd578937521
2010-11-28 09:30:05 +00:00
David Chisnall
00095bc74c
Undid accidental commit.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31645 72102866-910b-0410-8b05-ffd578937521
2010-11-23 13:20:34 +00:00
David Chisnall
e933a5dfee
Added ChangeLog entry from last commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31644 72102866-910b-0410-8b05-ffd578937521
2010-11-23 13:16:53 +00:00
Niels Grewe
b69a2cfb91
Small rearrangements to make non-C99 compilers happy.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31637 72102866-910b-0410-8b05-ffd578937521
2010-11-19 22:29:04 +00:00
David Chisnall
2ff5e9434b
Fixed missing newline at end of GSICUString.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31636 72102866-910b-0410-8b05-ffd578937521
2010-11-19 22:15:13 +00:00
David Chisnall
a5335c34fb
Added implementation of NSRegularExpression, from iOS 4 Foundation.
...
This class is a thin wrapper around libicu regular expressions, so if we don't
have libicu we simply don't compile it at all. This will give people a linker
failure, rather than a nonfunctional class if they try to use GNUstep without
ICU with code that requires it.
The Apple documentation says that this class has a primitive method that takes
a block as an argument and that this method is called by others, so subclasses
can replace that block method without touching the convenience methods. We
mimic this behaviour when compiling with block, but when compiling without them
it's a problem. The current code contains some ugly hacks that will work in
normal usage but break with subclassing when not compiling with blocks.
This commit also includes a partial implementation of NSTextCheckingResult,
implementing the subset of its functionality required for NSRegularExpression
to work.
It also includes numerous fixes to GSICUString. This is heavily used by
NSRegularExpression, to avoid copying strings when mapping between UText for
libicu and NSString for GNUstep.
Note: I don't have a copy of iOS anywhere to test this against, so it's
entirely possible that there are significant discrepancies between this
implementation of NSRegularExpression and the iOS version. This version should
function exactly as the iOS one is described as functioning, but I think we've
all seen that Apple documentation refers more to hopes than facts. Any testing
that someone who does have an ip{hone,od,ad} can do is very welcome.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31635 72102866-910b-0410-8b05-ffd578937521
2010-11-19 22:06:18 +00:00
David Chisnall
f8b8dc5e59
Added libicu UText <-> NSString wrappers. These allow NSString objects to be used as the underlying storage for UText structures, and vice versa. Not yet used for anything, and therefore not connected to the build. These will be used by NSRegularExpression and by some stuff in CoreText.
...
This avoids the round-trip though C strings that CFLite seems to like using whenever using any libicu functions. Converting between NSString and UText is now trivial to do and the implementation is O(1).
Documentation in the headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31631 72102866-910b-0410-8b05-ffd578937521
2010-11-18 22:52:36 +00:00
Richard Frith-MacDonald
5537c0239c
fix use of preprocessor constants.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31621 72102866-910b-0410-8b05-ffd578937521
2010-11-18 09:46:51 +00:00
Eric Wasylishen
a0f083736c
NSPredicate MATCHES and LIKE implementation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31616 72102866-910b-0410-8b05-ffd578937521
2010-11-17 21:46:31 +00:00
Riccardo Mottola
7e15bd86df
Make NSDownloadDirectory and NSDocumentDIrectory relative to the user home and for the user domain only. Behaviour checked on the Mac.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31608 72102866-910b-0410-8b05-ffd578937521
2010-11-13 09:46:01 +00:00
David Chisnall
e523978a5d
Make NSNetServices use formal protocol, as in 10.6. When compiling with clang, use @optional, otherwise fall back to defining an empty protocol and defining an informal protocol with the methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31594 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:43:46 +00:00
David Chisnall
a3d6bd2eab
Expose 10.6-compatible interface for per-thread assertion handlers.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31593 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:37:19 +00:00
Richard Frith-MacDonald
e4ef659b97
serialisation bugfix and correction to nil handling when making localisation.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31581 72102866-910b-0410-8b05-ffd578937521
2010-11-02 11:01:50 +00:00
Richard Frith-MacDonald
895a0f38ff
add delivery notification requests and fix memory leak.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31571 72102866-910b-0410-8b05-ffd578937521
2010-10-28 22:50:38 +00:00
Richard Frith-MacDonald
79eac15152
fix crash due to dereferencin a null pointer.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31570 72102866-910b-0410-8b05-ffd578937521
2010-10-27 22:19:18 +00:00
Richard Frith-MacDonald
b7f4faa90b
Fix setup of HAVE_ICU
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31567 72102866-910b-0410-8b05-ffd578937521
2010-10-27 11:24:44 +00:00
Niels Grewe
057dd3f2f1
Fix -displayNameForKey:value: to interact properly with libicu for some
...
common cases. More arcane locale components still need proper treatment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31566 72102866-910b-0410-8b05-ffd578937521
2010-10-26 19:31:37 +00:00
David Chisnall
704532b50c
Don't access isa directly.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31560 72102866-910b-0410-8b05-ffd578937521
2010-10-25 14:40:09 +00:00
Richard Frith-MacDonald
ef81066edc
Fix to get compile working again on slightly older systems.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31548 72102866-910b-0410-8b05-ffd578937521
2010-10-22 07:25:57 +00:00
Jonathan Gillaspie
9ef94a8e95
Prevent SegFault when FormatMessageW doesn't return a string on Windows.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31537 72102866-910b-0410-8b05-ffd578937521
2010-10-19 21:21:32 +00:00
Wolfgang Lux
b01361f433
Fix test for an absolute URL in NSURL -absoluteURL, which got things
...
backward.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31532 72102866-910b-0410-8b05-ffd578937521
2010-10-19 12:56:30 +00:00
Richard Frith-MacDonald
6a946ccbb2
tiny osx compatibility tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31531 72102866-910b-0410-8b05-ffd578937521
2010-10-19 09:29:23 +00:00
Gregory John Casamento
7795322965
Correct license text in sync.m and also correct the test to see if the ObjC compiler is working.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31519 72102866-910b-0410-8b05-ffd578937521
2010-10-16 20:43:33 +00:00
Richard Frith-MacDonald
ad94f052f8
file URL compatibility
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31508 72102866-910b-0410-8b05-ffd578937521
2010-10-13 17:41:22 +00:00
Richard Frith-MacDonald
51287760d4
attempted fix for bug #31266
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31505 72102866-910b-0410-8b05-ffd578937521
2010-10-12 19:19:02 +00:00
Richard Frith-MacDonald
9c8d4406d5
add arbitrary struct set/get
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31504 72102866-910b-0410-8b05-ffd578937521
2010-10-12 13:34:01 +00:00
Richard Frith-MacDonald
7960aa3ec6
Re-instate change from svn revision 31412 (just trusting it's OK).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31502 72102866-910b-0410-8b05-ffd578937521
2010-10-12 11:55:04 +00:00
Richard Frith-MacDonald
69322fcaca
Exactly match the percent escapes used by OSX
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31501 72102866-910b-0410-8b05-ffd578937521
2010-10-12 10:59:05 +00:00
Eric Wasylishen
bdaf339b92
Avahi bugfixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31492 72102866-910b-0410-8b05-ffd578937521
2010-10-08 22:24:21 +00:00
Richard Frith-MacDonald
092e9227b5
tweka fix for evaluated object
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31469 72102866-910b-0410-8b05-ffd578937521
2010-10-04 14:44:54 +00:00
Richard Frith-MacDonald
1b0e3dbcda
Add simple implementation of evaluatedObjectExpression
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31468 72102866-910b-0410-8b05-ffd578937521
2010-10-04 08:21:34 +00:00
Richard Frith-MacDonald
0222fe1e6d
Fix broken KVC
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31460 72102866-910b-0410-8b05-ffd578937521
2010-10-01 12:01:02 +00:00
Richard Frith-MacDonald
a30baac0de
avoid a couple of makefile warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31459 72102866-910b-0410-8b05-ffd578937521
2010-10-01 11:39:06 +00:00
Richard Frith-MacDonald
be39561811
fix type cast
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31458 72102866-910b-0410-8b05-ffd578937521
2010-10-01 11:24:19 +00:00
Richard Frith-MacDonald
8c7b1d496a
standardise listen backlog
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31455 72102866-910b-0410-8b05-ffd578937521
2010-10-01 09:22:52 +00:00
Richard Frith-MacDonald
8af7e6bf3a
fix #31153
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31454 72102866-910b-0410-8b05-ffd578937521
2010-10-01 07:13:31 +00:00
Richard Frith-MacDonald
40a72c52a9
networking scalability tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31449 72102866-910b-0410-8b05-ffd578937521
2010-09-30 14:16:11 +00:00
Richard Frith-MacDonald
566d84d19f
fix for bug 31168
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31446 72102866-910b-0410-8b05-ffd578937521
2010-09-30 08:34:25 +00:00
Richard Frith-MacDonald
cc451397a4
bugfix
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31445 72102866-910b-0410-8b05-ffd578937521
2010-09-30 06:51:34 +00:00
Eric Wasylishen
d431109112
* Source/objc-load.m: Don't include objc-list.h with libobjc2
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31438 72102866-910b-0410-8b05-ffd578937521
2010-09-29 06:47:16 +00:00
Eric Wasylishen
4eba67f87b
Remove dead code
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31434 72102866-910b-0410-8b05-ffd578937521
2010-09-28 23:27:46 +00:00
Richard Frith-MacDonald
42828af0cc
minor optimisations
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31433 72102866-910b-0410-8b05-ffd578937521
2010-09-28 13:23:53 +00:00
Richard Frith-MacDonald
52d7256b41
Make firing of timers more robust
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31420 72102866-910b-0410-8b05-ffd578937521
2010-09-25 21:28:07 +00:00
David Chisnall
7563e320b5
Add special case to KVC accessors for libobjc2: If there is a method with the
...
wrong types, try calling the method with the correct types. This enables the
TDD-fixup code to run and generate a KVC-compliant version of an existing
method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31412 72102866-910b-0410-8b05-ffd578937521
2010-09-24 19:31:46 +00:00
David Chisnall
ec239ebfaf
Simplify the KVC getter code and make it return structs boxed in NSValues
...
(Apple-compatible). This is currently slow, because we go via NSInvocation.
We could probably make it faster, but I am not inclined to optimise for
something that I sincerely hope is a very unusual use case.
Richard: Please check I haven't done something silly here...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31411 72102866-910b-0410-8b05-ffd578937521
2010-09-24 19:20:16 +00:00
Richard Frith-MacDonald
0364f2e365
performance tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31404 72102866-910b-0410-8b05-ffd578937521
2010-09-24 11:05:11 +00:00
Wolfgang Lux
2a5d060cfa
Fix two unchecked pointer dereferences in the libobjc2 compatibility
...
code, which could cause crashes when attempting to invoke a selector
which is not implemented by the target.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31384 72102866-910b-0410-8b05-ffd578937521
2010-09-20 18:13:48 +00:00
David Chisnall
e9b0540890
Fix -methodSignatureForSelector: fast path with libobjc2.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31371 72102866-910b-0410-8b05-ffd578937521
2010-09-18 15:09:58 +00:00
Wolfgang Lux
4fad29abb5
Tweaks for running on Darwin aka OS X.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31366 72102866-910b-0410-8b05-ffd578937521
2010-09-17 20:23:48 +00:00
Wolfgang Lux
fb76b96247
Fix bug were NSObject -methodSignatureForSelector: would return an
...
incorrect result or even crash when asking a class object for the
signature of one of its class methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31365 72102866-910b-0410-8b05-ffd578937521
2010-09-17 20:07:50 +00:00
Eric Wasylishen
8f88383e61
Fix more unsigned int / int cases that should be NS[U]Integer
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31355 72102866-910b-0410-8b05-ffd578937521
2010-09-16 02:55:24 +00:00
Eric Wasylishen
0b8e723ec3
disable unneeded code on libobjc2
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31353 72102866-910b-0410-8b05-ffd578937521
2010-09-16 00:07:39 +00:00
Eric Wasylishen
d713579ade
* Source/NSMessagePort.m:
...
* Source/NSFileManager.m:
* Source/NSCharacterSet.m: Fix some method type mismatches. Generally when
a private subclass overrides a public method taking a NSUInteger with
a method taking an "unsigned" parameter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31351 72102866-910b-0410-8b05-ffd578937521
2010-09-15 22:16:18 +00:00
Riccardo Mottola
6ce1c05965
removed useless len recalculation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31341 72102866-910b-0410-8b05-ffd578937521
2010-09-12 23:30:37 +00:00
Riccardo Mottola
97402e3ddb
Removed dead assignments and unused variable attrs.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31340 72102866-910b-0410-8b05-ffd578937521
2010-09-12 23:25:59 +00:00
Richard Frith-MacDonald
a4f869f7e5
fix some return type errors
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31338 72102866-910b-0410-8b05-ffd578937521
2010-09-12 17:05:30 +00:00
Richard Frith-MacDonald
faa2feed90
avoid documentation warning
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31296 72102866-910b-0410-8b05-ffd578937521
2010-09-10 13:20:06 +00:00
Richard Frith-MacDonald
8177a34a8f
tweaks to avoid clang warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31293 72102866-910b-0410-8b05-ffd578937521
2010-09-10 12:47:04 +00:00
Richard Frith-MacDonald
d317aab108
fix occasional crash with proxies
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31291 72102866-910b-0410-8b05-ffd578937521
2010-09-10 10:40:07 +00:00
Richard Frith-MacDonald
8ee8fb58b3
cleanup getting descriptors/handles for ports.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31288 72102866-910b-0410-8b05-ffd578937521
2010-09-10 08:56:55 +00:00
Richard Frith-MacDonald
8f19d8df47
tidied
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31286 72102866-910b-0410-8b05-ffd578937521
2010-09-10 07:11:49 +00:00
Eric Wasylishen
af8fc16268
Replace a call to -[Protocol name] with protocol_getName
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31282 72102866-910b-0410-8b05-ffd578937521
2010-09-09 22:42:47 +00:00
Eric Wasylishen
7282e58e08
* Source/NSDistantObject.m: #ifdef to disable category
...
on Object was forgotten around the interface
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31280 72102866-910b-0410-8b05-ffd578937521
2010-09-09 22:18:01 +00:00
Riccardo Mottola
1bbef96f6a
use init return value
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31278 72102866-910b-0410-8b05-ffd578937521
2010-09-09 21:41:40 +00:00
Riccardo Mottola
1d57899ad8
use init return value
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31277 72102866-910b-0410-8b05-ffd578937521
2010-09-09 21:33:59 +00:00
Riccardo Mottola
703219c464
only access array if port responds to selector, or it is not initialized
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31276 72102866-910b-0410-8b05-ffd578937521
2010-09-09 21:22:31 +00:00
Richard Frith-MacDonald
46076fe15b
fixup to get proxies working again
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31275 72102866-910b-0410-8b05-ffd578937521
2010-09-09 21:10:47 +00:00
Richard Frith-MacDonald
c342978801
memorymanagement fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31273 72102866-910b-0410-8b05-ffd578937521
2010-09-09 19:58:21 +00:00
Eric Wasylishen
d7a7393a0b
Minor build fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31271 72102866-910b-0410-8b05-ffd578937521
2010-09-09 17:02:19 +00:00
Eric Wasylishen
59ba8facf0
Change sel_getUid to call sel_registerName, in line with OS X behaviour since 10.0
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31270 72102866-910b-0410-8b05-ffd578937521
2010-09-09 16:43:29 +00:00
David Chisnall
4488708e84
Fix a load of warnings from implicit function declarations. A lot were caused by ctype.h and string.h stuff being used everywhere in GNUstep but not included anywhere - they're now included in common.h (at least string.h should also be in Foundation.h - on OS X it is implicitly included via some chain of things from Foundation.h).
...
All of the sel_* stuff is now replaced with the newer APIs. As a side-effect, a blob of code that was copied-and-pasted all over GNUstep has now been moved into ObjectiveC2 and just called.
Class posing with libobjc2 will now throw an exception, rather than just aborting.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31268 72102866-910b-0410-8b05-ffd578937521
2010-09-09 16:30:10 +00:00
David Chisnall
db04df357a
Add implementation of sel_registerTypedName_np() to ObjectiveC2 (libobjc2 nonportable function for registering / getting typed selectors).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31266 72102866-910b-0410-8b05-ffd578937521
2010-09-09 15:17:40 +00:00
David Chisnall
7a80adeb9b
A huge blob of changes to make -base build with libobjc2, without using the old libobjc2 headers.
...
Most of these changes involve simply removing direct manipulation of any runtime structures and replacing them with runtime function calls. For example class->name becomes class_getName(class) and so on.
libobjc2, like the Apple runtime, the NeXT runtime, and every version of the Objective-C spec, calls the class pointer in id isa. A few files now have #define class_pointer isa at the top. This line replaces class_pointer in the old GNU libobjc headers with isa so either class_pointer or isa can be used for accessing the class of an object. Note: object_getClass() should be used in most cases because, in some future version of the runtime, this will skip things like lock classes and other hidden classes (e.g. KVO classes).
All of the old forwarding stuff has been removed. Most of this stuff followed convoluted code paths that ended with an exception. A few simply broke in exciting ways. Hopefully no one has used them for the last ten years or so, but we can bring them back with some #ifndef stuff if they're really needed by anyone.
There is currently a bug in configure, which prevents dladdr() from being detected, so you need to manually tweak config.h to build - I have not fixed the fall-back code in objc-load.m to work with libobjc2, I just added a new version that uses the loader's functionality directly.
Although -base now builds, it builds with a lot of warnings. <string.h> is missing from a lot of files, so memcpy() and strlen() generate implicit function declaration warnings.
Additionally, libobjc2 does still provide the sel_{get,register}_*() functions, but they're wrappers around the newer API ones. These are deprecated and are not exposed in the headers. Although they work, we should be replacing them with the libobjc2 versions as soon as possible.
This incorporates a patch by Eric.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31265 72102866-910b-0410-8b05-ffd578937521
2010-09-09 15:06:09 +00:00
David Chisnall
0ed572ef2d
Resolve symbols using dladdr() if it exists.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31263 72102866-910b-0410-8b05-ffd578937521
2010-09-09 14:22:45 +00:00
Eric Wasylishen
345563c947
* Source/ObjectiveC2/runtime.h:
...
* Source/ObjectiveC2/runtime.m:
Implement protocol_copyMethodDescriptionList, protocol_copyProtocolList,
protocol_getMethodDescription, as well as a dummy version of
objc_copyProtocolList.
* Headers/Additions/GNUstepBase/GSObjCRuntime.h:
* Source/Additions/GSObjCRuntime.m:
Implement a convenience method, GSProtocolGetMethodDescriptionRecursive
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31254 72102866-910b-0410-8b05-ffd578937521
2010-09-08 20:30:19 +00:00
David Chisnall
daecca9270
Import feature test function from libobjc2 into ObjectiveC2 framework. Returns 0 for all of the new features. May return the wrong value for exception support, if the runtime is really ancient and does not support exceptions. Returns 1 for features that the framework adds.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31252 72102866-910b-0410-8b05-ffd578937521
2010-09-08 14:10:01 +00:00
Richard Frith-MacDonald
3564932935
remove obsolete typed stream inclusion
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31248 72102866-910b-0410-8b05-ffd578937521
2010-09-08 09:00:15 +00:00
David Chisnall
e58ea125de
Improve the efficiency of NSObject's methodSignatureForSelector by:
...
- Moving the linear search over all of the method lists in the class hierarchy to the end. If we found the type info in the protocol list, we were throwing this info away. Doing something expensive and then discarding the result is generally not a good idea.
- Replacing the linear search of the method lists with a dtable lookup on libobjc2. The type info for methods is part of the slot, so we only need to do the expensive search at all on the old runtime. With libobjc2, type info lookup costs as little as IMP lookup, so doing things the slow way is not required.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31231 72102866-910b-0410-8b05-ffd578937521
2010-09-02 15:17:46 +00:00
David Chisnall
1b43c3a615
Don't call __objc_resolve_class_links() if using the GNUstep runtime.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31229 72102866-910b-0410-8b05-ffd578937521
2010-09-01 16:13:44 +00:00
David Chisnall
0898a4c4b2
Fix the return type of NSDistantObject +autorelease to return id, not void. Type-dependent dispatch in libobjc2 discovered that some things are picking up this method signature by accident and calling NSObject's -autorelease with the wrong types.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31224 72102866-910b-0410-8b05-ffd578937521
2010-08-31 22:02:38 +00:00
Richard Frith-MacDonald
ea423f1f64
fix to allow reading from stdin
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31221 72102866-910b-0410-8b05-ffd578937521
2010-08-31 14:32:40 +00:00
Richard Frith-MacDonald
c5e77a9367
fix typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31216 72102866-910b-0410-8b05-ffd578937521
2010-08-31 10:34:23 +00:00
Richard Frith-MacDonald
6b4cc03ada
avid using windows threading api directly
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31215 72102866-910b-0410-8b05-ffd578937521
2010-08-31 10:32:14 +00:00
Richard Frith-MacDonald
9adf826758
fixup missing include
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31211 72102866-910b-0410-8b05-ffd578937521
2010-08-30 19:25:38 +00:00
Richard Frith-MacDonald
e8ed721622
locking tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31210 72102866-910b-0410-8b05-ffd578937521
2010-08-30 19:16:30 +00:00
Richard Frith-MacDonald
3b4e148c19
thread fixes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31209 72102866-910b-0410-8b05-ffd578937521
2010-08-30 17:27:11 +00:00
Jonathan Gillaspie
300d429113
* ObjectiveC2/sync.m -- Removed WEAK declaration
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31201 72102866-910b-0410-8b05-ffd578937521
2010-08-25 17:38:13 +00:00
Wolfgang Lux
4e53fdb192
Restore lost assignments which ensure that only one NSFileHandle
...
exists for each of the standard channels. This fixes a bug where a run
loop might unexpectedly stop watching the standard channels.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31196 72102866-910b-0410-8b05-ffd578937521
2010-08-24 11:59:30 +00:00
Richard Frith-MacDonald
20220c48f5
fixes for bug #29338
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31188 72102866-910b-0410-8b05-ffd578937521
2010-08-20 11:07:33 +00:00
Richard Frith-MacDonald
683414ae8b
Fix for NOB generation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31183 72102866-910b-0410-8b05-ffd578937521
2010-08-18 12:34:56 +00:00
Richard Frith-MacDonald
802800537a
use new runtime api directly to lookup selectors
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31182 72102866-910b-0410-8b05-ffd578937521
2010-08-18 10:45:27 +00:00
Richard Frith-MacDonald
e7310bea03
register new selector as needed.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31179 72102866-910b-0410-8b05-ffd578937521
2010-08-17 18:38:00 +00:00
Richard Frith-MacDonald
821a21b54d
better cope with null selectors.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31178 72102866-910b-0410-8b05-ffd578937521
2010-08-17 18:36:46 +00:00
Richard Frith-MacDonald
0b6e29fe21
improve comments
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31173 72102866-910b-0410-8b05-ffd578937521
2010-08-17 07:35:20 +00:00
Richard Frith-MacDonald
cba4f3d4a5
Simplify buffering and re-use single buffer for registrations and notifications
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31172 72102866-910b-0410-8b05-ffd578937521
2010-08-17 07:28:44 +00:00
Richard Frith-MacDonald
fd9e60c1af
Fixes for bug #28104 by Wolfgang Lux and Richard Frith-Macdonald
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31171 72102866-910b-0410-8b05-ffd578937521
2010-08-17 07:13:05 +00:00
Richard Frith-MacDonald
2e49dafc75
improve comment
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31118 72102866-910b-0410-8b05-ffd578937521
2010-08-11 11:20:52 +00:00
Richard Frith-MacDonald
a11aedbca8
obscure thread-safety fix
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31108 72102866-910b-0410-8b05-ffd578937521
2010-08-10 18:51:53 +00:00
Richard Frith-MacDonald
50662ad093
avoid some compiler warnings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31107 72102866-910b-0410-8b05-ffd578937521
2010-08-10 10:38:50 +00:00
Richard Frith-MacDonald
916036fa6d
tweak twelve hour clock support.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31087 72102866-910b-0410-8b05-ffd578937521
2010-08-07 05:02:28 +00:00
Doug Simons
00b4589f91
Fix AM/PM parsing to recognize 12 AM as midnight not noon; require time zone if specified in format
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31084 72102866-910b-0410-8b05-ffd578937521
2010-08-06 16:20:19 +00:00
Nicola Pero
ca9c384b3d
Added hack that should allow to load class lists of frameworks with a relative path (eg, if you have ../../MyFrameworks/ in your LD_LIBRARY_PATH you may be to load a framework with a relative path)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31037 72102866-910b-0410-8b05-ffd578937521
2010-07-26 14:08:22 +00:00
Richard Frith-MacDonald
37ae0eb8f1
Revert/fix handling of -isEqualToString: for proxies and subclasses.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31018 72102866-910b-0410-8b05-ffd578937521
2010-07-22 06:06:39 +00:00
Richard Frith-MacDonald
6f7bc142f2
fixups for windows api bugs
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31010 72102866-910b-0410-8b05-ffd578937521
2010-07-21 08:24:32 +00:00
David Chisnall
495aa33a99
Added a hack to allow the stuff GSString caches to be re-cached. Ideally we wouldn't be caching any of this stuff (or, with libobjc2, we'd be using the slot mechanism to invalidate the cache when required).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31005 72102866-910b-0410-8b05-ffd578937521
2010-07-19 17:10:46 +00:00
David Chisnall
3f1a92959d
Do the same stupid thing Apple does (return NO), rather than the stupid thing we were doing (segfault), when passing a proxy as the argument to [NSString isEqualToString:] (which is called by [NSConstantString isEqualToString:] when the argument is a proxy).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31003 72102866-910b-0410-8b05-ffd578937521
2010-07-19 14:59:15 +00:00
Niels Grewe
c86696f8f7
Add sel_getType_np() function to the ObjectiveC2 compatibility framework.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31001 72102866-910b-0410-8b05-ffd578937521
2010-07-19 09:11:07 +00:00
Richard Frith-MacDonald
2789b9eb70
mingw fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30999 72102866-910b-0410-8b05-ffd578937521
2010-07-19 08:54:38 +00:00