Commit graph

8978 commits

Author SHA1 Message Date
Fred Kiefer
24d2c077d6 Remove duplicate declaration of ivar _name to get base to compile again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34377 72102866-910b-0410-8b05-ffd578937521
2012-01-01 17:06:00 +00:00
Richard Frith-MacDonald
f7b8b22bae trivial formating tweaks ... add missing white space
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34374 72102866-910b-0410-8b05-ffd578937521
2012-01-01 07:38:53 +00:00
Doug Simons
44de775895 Set Elements to be NSXMLElementKind
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34372 72102866-910b-0410-8b05-ffd578937521
2011-12-31 02:13:19 +00:00
Gregory John Casamento
7b7b2a6f9d First cut at NSXMLDocument changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34371 72102866-910b-0410-8b05-ffd578937521
2011-12-30 21:40:12 +00:00
Doug Simons
0babe2697b Fix -addTimeInterval: to copy calendarFormat of original date
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34363 72102866-910b-0410-8b05-ffd578937521
2011-12-29 18:28:27 +00:00
Richard Frith-MacDonald
70bbf8ce82 fix for #35164
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34355 72102866-910b-0410-8b05-ffd578937521
2011-12-24 13:14:46 +00:00
Wolfgang Lux
3b65abba77 Implement NSTextCheckingResult -resultByAdjustingRangesWithOffset:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34350 72102866-910b-0410-8b05-ffd578937521
2011-12-23 16:49:23 +00:00
Wolfgang Lux
4e79a89139 Various fixes in NSTextCheckingResult class.
Add copyright notice to header and implementation files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34349 72102866-910b-0410-8b05-ffd578937521
2011-12-23 16:09:49 +00:00
Wolfgang Lux
9ed632dcdb Correct result of NSRegularExpression -rangeOfFirstMatchInString:...
When no match is found location must be set to NSNotFound.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34348 72102866-910b-0410-8b05-ffd578937521
2011-12-23 14:59:14 +00:00
Wolfgang Lux
b1cb675199 Introduce NSRegularExpression support for libicu versions prior to 4.4,
which don't provide the UText interface to regular expressions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34345 72102866-910b-0410-8b05-ffd578937521
2011-12-22 12:52:56 +00:00
Wolfgang Lux
eeae8f5780 Fix an uninitialized variable bug, which was introduced by a careless
change while adding IPv6 support and would have the +port method of
NSSocketPort randomly return invalid ports.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34343 72102866-910b-0410-8b05-ffd578937521
2011-12-22 08:30:39 +00:00
Riccardo Mottola
6e1bdad49f Fix blocking compiler warning (ggc 4.5.3)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34327 72102866-910b-0410-8b05-ffd578937521
2011-12-19 23:04:04 +00:00
Richard Frith-MacDonald
d3fa89c616 more verbose warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34310 72102866-910b-0410-8b05-ffd578937521
2011-12-17 15:11:03 +00:00
Richard Frith-MacDonald
0964749706 improve warning about poor/no locale/characterset support in compiler
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34309 72102866-910b-0410-8b05-ffd578937521
2011-12-17 15:05:38 +00:00
Fred Kiefer
ead2619299 * Source/NSPortCoder.m (-versionForClassName:): Use NSInteger for
version to avoid compiler warning on 64-bit system.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34308 72102866-910b-0410-8b05-ffd578937521
2011-12-17 14:05:25 +00:00
Richard Frith-MacDonald
29c4116520 Try to ensure new defaults files are created as needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34307 72102866-910b-0410-8b05-ffd578937521
2011-12-17 06:32:42 +00:00
Richard Frith-MacDonald
c879760fd5 fix formatting errors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34301 72102866-910b-0410-8b05-ffd578937521
2011-12-16 07:28:05 +00:00
Richard Frith-MacDonald
32fc733268 changes to support alternative header locations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34290 72102866-910b-0410-8b05-ffd578937521
2011-12-15 09:42:39 +00:00
Richard Frith-MacDonald
016c110ec8 OSX compatibility tweaks ... NSNotFound defined as NSIntegerMax
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34289 72102866-910b-0410-8b05-ffd578937521
2011-12-15 09:09:59 +00:00
Richard Frith-MacDonald
bbcbe38efb allow cipher list to be set
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34270 72102866-910b-0410-8b05-ffd578937521
2011-12-13 11:44:06 +00:00
Wolfgang Lux
4538670b25 Fix pkg-config configuration for libffi to make it really work on
systems where additional include options are needed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34259 72102866-910b-0410-8b05-ffd578937521
2011-12-08 12:33:06 +00:00
Richard Frith-MacDonald
932cb8a0e6 clarify warning message a little
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34256 72102866-910b-0410-8b05-ffd578937521
2011-12-07 13:19:29 +00:00
Richard Frith-MacDonald
66829f7814 fix suggested vy Daniel Santos
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34253 72102866-910b-0410-8b05-ffd578937521
2011-12-06 12:10:37 +00:00
Richard Frith-MacDonald
b9f3958132 use pkg-config for libffi when available
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34252 72102866-910b-0410-8b05-ffd578937521
2011-12-06 11:53:35 +00:00
Eric Wasylishen
a54d3f2bdd * Source/NSFileManager.m:
* Headers/Foundation/NSFileManager.h: Add removeItemAtPath:error:
method, as a simple wrapper around removeFileAtPath:handler: with
no handler.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34251 72102866-910b-0410-8b05-ffd578937521
2011-12-06 06:21:33 +00:00
Richard Frith-MacDonald
3ee9272558 fix typo in error message
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34240 72102866-910b-0410-8b05-ffd578937521
2011-12-02 12:29:33 +00:00
Richard Frith-MacDonald
3f437faaab Add checks for compiler support for unicode string literals
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34239 72102866-910b-0410-8b05-ffd578937521
2011-12-02 11:21:45 +00:00
David Chisnall
93dd8e8f57 Fix small int -> string conversion on 64-bit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34229 72102866-910b-0410-8b05-ffd578937521
2011-11-29 18:19:37 +00:00
Riccardo Mottola
20f4a7d773 Do not use UTF-8 option for literal strings. It is default on gcc4 but not supported on older compilers and clang
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34215 72102866-910b-0410-8b05-ffd578937521
2011-11-25 11:39:33 +00:00
Richard Frith-MacDonald
af959a3747 tweak an error message
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34213 72102866-910b-0410-8b05-ffd578937521
2011-11-24 14:46:06 +00:00
Richard Frith-MacDonald
430a7eea99 Rewrite to store defaults in multiple files (one per persistent domain).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34201 72102866-910b-0410-8b05-ffd578937521
2011-11-21 11:24:26 +00:00
Richard Frith-MacDonald
f0a4e940d1 fix errors in BOM handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34187 72102866-910b-0410-8b05-ffd578937521
2011-11-18 05:19:50 +00:00
Richard Frith-MacDonald
bc4151c775 get base to compile again, and improve readability/consistency
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34184 72102866-910b-0410-8b05-ffd578937521
2011-11-17 06:11:36 +00:00
David Chisnall
257cdd4a21 Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34182 72102866-910b-0410-8b05-ffd578937521
2011-11-16 20:49:27 +00:00
David Chisnall
d728c938b2 Store tiny strings (up to 8 ASCII characters) inside the pointer. Strings of
this length are fairly common, and this makes them very cheap to store / copy /
compare (pointer comparisons test for equality).  8 characters seems to be
enough for quite a lot of common uses, such as path components and tokens.
There are possibly still some things constructing tiny strings and not using
these.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34181 72102866-910b-0410-8b05-ffd578937521
2011-11-16 20:48:50 +00:00
David Chisnall
93528274f9 Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34180 72102866-910b-0410-8b05-ffd578937521
2011-11-16 17:29:30 +00:00
David Chisnall
b553578663 Implement the double boxing techniques used by Smalltalk/X and Cincom Smalltalk. Now we can conceal most doubles inside a pointer. This is most useful for LanguageKit, but should save some memory / malloc overhead / heap fragmentation in any code that uses a lot of NSNumbers (e.g. anything that deals with big plists). OS X 10.7 employs a similar trick.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34179 72102866-910b-0410-8b05-ffd578937521
2011-11-16 17:29:15 +00:00
Adam Fedor
8dfb160371 Fix include location
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34173 72102866-910b-0410-8b05-ffd578937521
2011-11-15 16:17:47 +00:00
Richard Frith-MacDonald
83b80b030e deal with old FIXME about creating library path
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34169 72102866-910b-0410-8b05-ffd578937521
2011-11-14 10:01:24 +00:00
Richard Frith-MacDonald
b9695fe9f5 add tests for removal of a default directly and via -setObject:forKey:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34138 72102866-910b-0410-8b05-ffd578937521
2011-11-09 13:51:55 +00:00
Richard Frith-MacDonald
b9d26f7a17 fix missing return
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34137 72102866-910b-0410-8b05-ffd578937521
2011-11-09 13:46:45 +00:00
Fred Kiefer
8bbb8d2ade Make the new protocol optional for clang by protecting the definition
the same way as in NSNetServices.h


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34134 72102866-910b-0410-8b05-ffd578937521
2011-11-07 19:01:27 +00:00
Fred Kiefer
b39cd43a32 Turn the NSXMLParserDelegateEventAdditions informal protocol into the
protocol NSXMLParserDelegate.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34133 72102866-910b-0410-8b05-ffd578937521
2011-11-07 15:54:43 +00:00
Fred Kiefer
f1040a95c8 * Source/NSValueTransformer.m
([NSUnarchiveFromDataTransformer-reverseTransformedValue],
[NSUnarchiveFromDataTransformer-transformedValue]): Use
archiver instead of keyed archiver.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34131 72102866-910b-0410-8b05-ffd578937521
2011-11-07 15:28:30 +00:00
Richard Frith-MacDonald
cd0d3a62e5 tweak length check in last change to ignore line breaks and bad characters
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34129 72102866-910b-0410-8b05-ffd578937521
2011-11-07 09:01:26 +00:00
Richard Frith-MacDonald
014c5ebc66 make base64 decoding more tolerant.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34128 72102866-910b-0410-8b05-ffd578937521
2011-11-07 08:15:00 +00:00
Richard Frith-MacDonald
43c06d6065 SX compatibility tweak ... allow nil arg for -timeIntervalSinceDate:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34117 72102866-910b-0410-8b05-ffd578937521
2011-11-04 10:38:16 +00:00
Richard Frith-MacDonald
d0807c3dec retry after interrupts
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34111 72102866-910b-0410-8b05-ffd578937521
2011-11-02 17:19:37 +00:00
Richard Frith-MacDonald
4152d0fe77 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34110 72102866-910b-0410-8b05-ffd578937521
2011-11-02 16:40:44 +00:00
Richard Frith-MacDonald
dd6590b767 tweaks for 64bit sparc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34109 72102866-910b-0410-8b05-ffd578937521
2011-11-02 16:39:39 +00:00