Commit graph

1259 commits

Author SHA1 Message Date
Andrew McCallum
40400d83b3 Include gnustep/base/preface.h first.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1909 72102866-910b-0410-8b05-ffd578937521
1996-10-31 19:59:15 +00:00
Andrew McCallum
9acf2430d3 (HEADERS_INSTALL): Added include/config.h.
(install): Don't install include/config.h specially, it's now done
with the rest of the HEADERS_INSTALL files.
(ALL_CPPFLAGS): Don't pass `-include include/config.h' since
include/preface.h now does that.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1907 72102866-910b-0410-8b05-ffd578937521
1996-10-31 19:13:20 +00:00
Andrew McCallum
c26ef3e3d0 (NSUserName): Make is work for SOLARIS.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1905 72102866-910b-0410-8b05-ffd578937521
1996-10-31 19:05:14 +00:00
Andrew McCallum
e09ac871dd ([NSUserDefaults -initWithUser:]): Don't try to append to a immutable
string!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1904 72102866-910b-0410-8b05-ffd578937521
1996-10-31 19:04:41 +00:00
Andrew McCallum
efc429408f ([NSUserDefautls +standardUserDefaults]): When creating a new
defaults, return it, not nil!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1903 72102866-910b-0410-8b05-ffd578937521
1996-10-31 18:54:23 +00:00
Andrew McCallum
fca7d27283 ([BinaryCStream -encodeValueOfCType:at:withName:name]): Use memcpy()
instead of assignment to get the floats and doubles from the `at:'
argument.
([BinaryCStream -decodeValueOfCType:at:withName:]): Likewise, for
setting the values.  (Reported by M. Decugis
<mds@sepgifbr.sep.de.edf.fr>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1902 72102866-910b-0410-8b05-ffd578937521
1996-10-31 18:46:02 +00:00
Andrew McCallum
1381709a43 (getpagesize) [__SOLARIS__]: Define as macro making proper sysconf
call.
(NSPageSize): Remove the dependancy on __mach__ to a #define above.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1901 72102866-910b-0410-8b05-ffd578937521
1996-10-31 18:34:51 +00:00
Andrew McCallum
801adeb5c6 ([MemoryStream -writeFormat:arguments:]): Use VSPRINTF_LENGTH.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1900 72102866-910b-0410-8b05-ffd578937521
1996-10-31 18:27:22 +00:00
Andrew McCallum
e7669db788 ([NSString -initWithFormat:arguments:]): Use VSPRINTF_LENGTH.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1899 72102866-910b-0410-8b05-ffd578937521
1996-10-31 18:27:04 +00:00
Andrew McCallum
85405ba574 ([String -initWithFormat:arguments:]): Use VSPRINTF_LENGTH.
([String -initWithCFormat:arguments:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1898 72102866-910b-0410-8b05-ffd578937521
1996-10-31 18:26:39 +00:00
Andrew McCallum
aa3bfab08e Changes from Richard Frith-Macdonald. See Oct 31 ChangeLog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1894 72102866-910b-0410-8b05-ffd578937521
1996-10-31 18:02:23 +00:00
Andrew McCallum
51a5e44fd2 ([RunLoop -limitDateForMode:]): Bracket timer firing with a
retain/release of the MIN_TIMER.  (Reported by Richard Frith-Macdonald
<richard@brainstorm.co.uk>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1892 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:59:25 +00:00
Andrew McCallum
b97d78de17 Added implementation of new methods for notification of readiness of
file descriptors for reading and writing.  Done by Richard
Frith-Macdonald <richard@brainstorm.co.uk>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1890 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:54:57 +00:00
Andrew McCallum
fab2728036 Changes from Scott Christley. See Oct 23 ChangeLog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1888 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:28:15 +00:00
Andrew McCallum
07466dd9e9 Changes from Scott Christley. See Oct 18 ChangeLog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1887 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:22:04 +00:00
Andrew McCallum
db69ec3c59 Changes from Adam Fedor. See Oct 15 ChangeLog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1886 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:17:59 +00:00
Andrew McCallum
ed1a7d0ae2 Changes from Scott Christley. See Oct 16 ChangeLog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1885 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:14:00 +00:00
Andrew McCallum
aead21cd6d New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1884 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:13:12 +00:00
Andrew McCallum
b2d55b6c2c (method_types_get_next_argument): Do weird argframe workaround not
just on m68k, but on all NeXT systems.  (Reported by
Richard Frith-Macdonald <richard@brainstorm.co.uk>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1883 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:09:27 +00:00
Andrew McCallum
9150d93f9c New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1882 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:05:21 +00:00
Andrew McCallum
05f694ad66 Change from Nick Christopher. See Oct 1 ChangeLog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1881 72102866-910b-0410-8b05-ffd578937521
1996-10-31 17:03:44 +00:00
Andrew McCallum
f9e6a93d45 ([RunLoop -acceptInputForMode:beforeDate:]): Fix assignment of
TIMEOUT.TV_USEC.  (Reported by Richard Frith-Macdonald
<richard@brainstorm.co.uk>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1880 72102866-910b-0410-8b05-ffd578937521
1996-10-31 16:54:41 +00:00
Andrew McCallum
c2166652ea (strerror) [!HAS_STRERROR]: New function from Richard Frith-Macdonald
<richard@brainstorm.co.uk>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1877 72102866-910b-0410-8b05-ffd578937521
1996-10-26 00:22:35 +00:00
Andrew McCallum
d513766f03 Change from Fedor. See Sep 26 ChangeLog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1875 72102866-910b-0410-8b05-ffd578937521
1996-10-26 00:10:22 +00:00
Andrew McCallum
a28e7f43f5 Changes from Christley. See Sep 25 ChangeLog entry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1873 72102866-910b-0410-8b05-ffd578937521
1996-10-25 23:54:08 +00:00
Andrew McCallum
d3f7feddf5 ([NSSet -anyObject]): Implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1872 72102866-910b-0410-8b05-ffd578937521
1996-10-25 23:50:37 +00:00
Andrew McCallum
e1f53b0bc0 ([NSDictionary +dictionaryWithObjectsAndKeys:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1871 72102866-910b-0410-8b05-ffd578937521
1996-10-25 23:43:00 +00:00
Andrew McCallum
b7e0e37cae ([NSString -initWithFormat:arguments:]): Fix bug whereby multiple %@'s
in the same format string created incorrect output.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1836 72102866-910b-0410-8b05-ffd578937521
1996-09-25 13:45:31 +00:00
Andrew McCallum
00e79130d5 ([NSString -copy]): New method. Now -copy sent to strings should
work.  (Added temporarily until this problem is fixed by me overhaul
of the string classes to separate Core and NonCore methods.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1827 72102866-910b-0410-8b05-ffd578937521
1996-09-24 17:41:03 +00:00
Andrew McCallum
6b01fdd6d0 (ostream_open_memory): Cast (const char*) to (char*) when passing to
MemoryStream -init... method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1826 72102866-910b-0410-8b05-ffd578937521
1996-09-24 17:31:29 +00:00
Andrew McCallum
fc2f74c95c Check HAVE_VALUES_H before trying to include <values.h>; use
<sys/types.h> if we don't.  (Reported by Gregor Hoffleit
<flight@mathi.uni-heidelberg.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1819 72102866-910b-0410-8b05-ffd578937521
1996-09-24 15:46:11 +00:00
Andrew McCallum
e75a166f8e Don't try to include NeXT's headers; just include GNUstep headers.
(Reported by Gregor Hoffleit <flight@mathi.uni-heidelberg.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1817 72102866-910b-0410-8b05-ffd578937521
1996-09-24 15:42:08 +00:00
Andrew McCallum
e07509f0b2 ([MemoryStream -setFreeWhenDone:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1815 72102866-910b-0410-8b05-ffd578937521
1996-09-24 15:37:25 +00:00
Andrew McCallum
55beb207b3 (ostream_close_memory): Send -setFreeWhenDone: to the MemoryStream,
not -release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1814 72102866-910b-0410-8b05-ffd578937521
1996-09-24 15:36:45 +00:00
Andrew McCallum
fcbf7e33be ([NSMutableSet -addObjectsFromArray:]): Implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1811 72102866-910b-0410-8b05-ffd578937521
1996-09-24 15:20:05 +00:00
Andrew McCallum
c8e5160bff Use new ivar name eof_position, not old eofPosition.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1803 72102866-910b-0410-8b05-ffd578937521
1996-09-18 13:31:17 +00:00
Andrew McCallum
0189373ef4 (HAVE_REGISTER_PRINTF_FUNCTION): Temporarily set this to 0 until I
figure out when register_printf_function's output handler function
takes `va_list' and when it takes `void**'.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1802 72102866-910b-0410-8b05-ffd578937521
1996-09-18 13:15:33 +00:00
Andrew McCallum
856a547dff Fix typo in last change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1800 72102866-910b-0410-8b05-ffd578937521
1996-09-17 21:09:41 +00:00
Andrew McCallum
d9bce0510c (ostream_open_memory): Use new MemoryStream method to specify that
buffer should not be deallocated when MemoryStream is deallocated.
Don't do the extra retain that was the previous workaround.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1798 72102866-910b-0410-8b05-ffd578937521
1996-09-17 21:07:17 +00:00
Andrew McCallum
797e1bdec9 Rename all uses of ivar eof_position.
([MemoryStream -_initOnMallocBuffer:freeWhenDone:size:
eofPosition:prefix:position:]): Method name changed to include
freeWhenDone:.  Set new ivar.
([MemoryStream -_initOnMallocBuffer:size:
eofPosition:prefix:position:]): New method (with old name) that calls
above method with `YES' for freeWhenDone:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1797 72102866-910b-0410-8b05-ffd578937521
1996-09-17 21:06:08 +00:00
Andrew McCallum
9d3e519b38 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1794 72102866-910b-0410-8b05-ffd578937521
1996-09-17 20:54:52 +00:00
Andrew McCallum
636881b169 (GNU_MFILES): Rename objc_streams.m to ostream.h.
(GNU_HEADERS): Rename objc_streams.h to ostream.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1793 72102866-910b-0410-8b05-ffd578937521
1996-09-17 20:52:51 +00:00
Andrew McCallum
ff2a4f92d5 Fix copyright date, and make minor formatting changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1792 72102866-910b-0410-8b05-ffd578937521
1996-09-17 20:51:44 +00:00
Andrew McCallum
03519ddaa8 New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1791 72102866-910b-0410-8b05-ffd578937521
1996-09-17 20:47:55 +00:00
Andrew McCallum
f212e7a151 (MEMORY_CHECK): Macro deleted. objc_malloc() and friends take care of
raising the correct exception.  All calls removed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1790 72102866-910b-0410-8b05-ffd578937521
1996-09-17 20:44:13 +00:00
Andrew McCallum
8e3ef39a5a Patch from Adam Fedor. See ChangeLog.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1789 72102866-910b-0410-8b05-ffd578937521
1996-09-17 20:41:37 +00:00
Andrew McCallum
4bc5a13dfd (DIST_FILES): Add space before backslash.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1787 72102866-910b-0410-8b05-ffd578937521
1996-09-17 20:39:22 +00:00
Andrew McCallum
7779783079 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1786 72102866-910b-0410-8b05-ffd578937521
1996-09-17 20:17:40 +00:00
Andrew McCallum
bb5d46cf3f Don't include config.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1785 72102866-910b-0410-8b05-ffd578937521
1996-09-17 16:05:04 +00:00
Andrew McCallum
b3c153c3d6 ([NSScanner -scanRadixUnsignedInt:]): New method.
([NSScanner -_scanInt:]): Deal with overflow better.  (?)
([NSScanner -scanLongLong:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1777 72102866-910b-0410-8b05-ffd578937521
1996-09-17 15:02:31 +00:00
Andrew McCallum
54b4126b08 ([NSObject -doesNotRecognizeSelector:]): Raise
NSInvalidArgumentException, not NSGenericException.  (Reported by
Jeremy Bettis <jeremy@tddi.inetnebr.com>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1776 72102866-910b-0410-8b05-ffd578937521
1996-09-17 14:33:30 +00:00
Andrew McCallum
202df44f7c ([HashTable -isKey]): Updated isKey to use the new hash_value_for_key
function in the runtime, and thereby allow for nulls in HashTables.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1775 72102866-910b-0410-8b05-ffd578937521
1996-09-17 14:20:23 +00:00
Andrew McCallum
a1be686466 Include <objc/objc-api.h>. (Reported by Richard Frith-Macdonald
<richard@brainstorm.co.uk>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1772 72102866-910b-0410-8b05-ffd578937521
1996-09-16 20:55:02 +00:00
Andrew McCallum
92147ba673 Don't include no-longer-existant gnustep/base/objc-malloc.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1771 72102866-910b-0410-8b05-ffd578937521
1996-09-16 20:46:03 +00:00
Andrew McCallum
9ba503d1b5 (include/config.h.in): New dependancy.
(include/config.h): New dependancy.
(ALL_CPPFLAGS): Added -include argument to have gcc look at
include/config.h.  It is no longer included in include/preface.h
because other packages that use the installed Base Library may have
their own ideas about these macro values.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1768 72102866-910b-0410-8b05-ffd578937521
1996-09-16 20:41:04 +00:00
Andrew McCallum
d790d6175f *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1740 72102866-910b-0410-8b05-ffd578937521
1996-09-07 21:09:35 +00:00
Andrew McCallum
4adb83aab0 Remove underscores from front of objc_mutex types.
([NSObject -error:]): Use objc_verror(), not _objc_error.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1736 72102866-910b-0410-8b05-ffd578937521
1996-09-07 21:07:27 +00:00
Andrew McCallum
90c034dee3 Don't include objc-malloc.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1729 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:17:46 +00:00
Andrew McCallum
6b3013ca7a (GNU_MFILES): Remove objc-malloc.m.
(GNU_HEADERS): Remove include/objc-malloc.h.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1728 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:13:55 +00:00
Andrew McCallum
3cc0c23f3b In accordance with Objective C runtime change, use objc_realloc as a
function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1727 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:08:43 +00:00
Andrew McCallum
55e7a29194 ([MemoryStream -writeBytes:length:]): In accordance with Objective C
runtime change, use objc_realloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1726 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:07:01 +00:00
Andrew McCallum
a7b7e508dc (STRING_ARG): In accordance with Objective C runtime
change, use objc_malloc as a function, not a function pointer.
STRING_ADD_CHAR): Likewise, with objc_realloc.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1725 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:05:25 +00:00
Andrew McCallum
60b44c4a07 (mframe_build_return): In accordance with Objective C runtime
change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1724 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:04:13 +00:00
Andrew McCallum
6c3c3d44ee (behavior_class_add_methods): In accordance with Objective C runtime
change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1723 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:03:33 +00:00
Andrew McCallum
88946fee14 ([Storage -initCount:elementSize:description:]): In accordance with
Objective C runtime change, use objc_malloc as a function, not a
function pointer.
([Storage -shallowCopy]): Likewise.
([Storage -read:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1722 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:02:14 +00:00
Andrew McCallum
94f814fbcb ([Storage -initCount:elementSize:description:]): In accordance with
Objective C runtime change, use objc_malloc as a function, not a
function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1721 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:01:38 +00:00
Andrew McCallum
3013df2528 ([NSMutableData -initWithCapacity:]): In accordance with Objective C
runtime change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1720 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:00:37 +00:00
Andrew McCallum
4e9fd4a563 ([NSGMutableData -initWithCapacity:]): In accordance with Objective C
runtime change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1719 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:00:12 +00:00
Andrew McCallum
f3c5d64159 ([NSAutoreleasePool -init]): In accordance with Objective C runtime
change, use objc_malloc as a function, not a function pointer.
([NSAutoreleasePool -addObject:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1718 72102866-910b-0410-8b05-ffd578937521
1996-09-07 19:57:33 +00:00
Andrew McCallum
88c17ac136 ([MemoryStream -readLine]): In accordance with Objective C runtime
change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1717 72102866-910b-0410-8b05-ffd578937521
1996-09-07 19:56:42 +00:00
Andrew McCallum
a14adce278 ([Invocation -initWithCoder:]): In accordance with Objective C runtime
change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1716 72102866-910b-0410-8b05-ffd578937521
1996-09-07 19:56:16 +00:00
Andrew McCallum
64caae8e20 ([NSCharacterSet +_bitmapForSet:number:]): Retain cached set.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1708 72102866-910b-0410-8b05-ffd578937521
1996-09-07 17:56:16 +00:00
Andrew McCallum
64a08d0771 ([NSGCString -substringFromRange:]): Don't always return a mutable
string class; return the same mutable/immutable string class as self.
This also simplies the code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1707 72102866-910b-0410-8b05-ffd578937521
1996-09-07 17:54:08 +00:00
Andrew McCallum
6482c6835a ([NSGCString -substringFromRange:]): New method, overrides superclass
method with more efficient implementation.  (From Eric Norum.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1706 72102866-910b-0410-8b05-ffd578937521
1996-09-07 17:47:24 +00:00
Andrew McCallum
b922ca0a1e Now that NSCharacterSet's does its own caching, simplify this code.
(Changes from Eric Norum <Eric.Norum@usask.ca>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1705 72102866-910b-0410-8b05-ffd578937521
1996-09-07 17:46:10 +00:00
Andrew McCallum
fecb3e568c (NSCharacterSet_PATH): New macro, replacing BITMAP_PATH. Value
partially determined by GNUSTEP_INSTALL_PREFIX.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1704 72102866-910b-0410-8b05-ffd578937521
1996-09-07 17:45:08 +00:00
Andrew McCallum
e82b2241e7 (DEFS): Add definition of GNUSTEP_INSTALL_PREFIX, equal to $(prefix).
This is needed by NSCharacterSet, so it knows where to find the char
set data files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1702 72102866-910b-0410-8b05-ffd578937521
1996-09-07 17:37:30 +00:00
Andrew McCallum
a0c92b588e ([NSString -substringFromRange:]): Implement it using CString's for
now so we can get it working; (we'll fix everything for Unichar's in
the next release).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1690 72102866-910b-0410-8b05-ffd578937521
1996-09-02 19:31:44 +00:00
Andrew McCallum
fd3b4b308e ([NSString -substringFromRange:]): Fix bug in references to string
length.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1677 72102866-910b-0410-8b05-ffd578937521
1996-09-02 15:53:47 +00:00
Andrew McCallum
370a3ac19f ([NSGArray +initialize]): Declare NonCore classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1676 72102866-910b-0410-8b05-ffd578937521
1996-09-02 15:53:07 +00:00
Andrew McCallum
2fa94dd929 ([NSCharacterSet +_bitmapForSet:number:]): Add an abort() after
raising the exception, to avoid gcc warning.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1675 72102866-910b-0410-8b05-ffd578937521
1996-09-02 15:52:46 +00:00
Andrew McCallum
95bfc6889b ([NSCharacterSet +_bitmapForSet:number:]): Use new exception variable
name.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1670 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:58:02 +00:00
Andrew McCallum
1185dbdd91 ([Connection -_service_forwardForProxy:]): Use new exception variable
name.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1669 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:57:39 +00:00
Andrew McCallum
008356cf76 Cache standard character sets.
([NSCharacterSet +initialize]): New method.
([NSCharacterSet _bitmapForSet:number:]): Return set from cache if
available, otherwise find bitmap file and add to cache.  All callers
changed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1667 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:53:26 +00:00
Andrew McCallum
0412ab7dce ([NSString -substringFromRange:]): Raise correct exceptions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1666 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:43:45 +00:00
Andrew McCallum
f7d7053b71 (install): Make a soft link from `$(includedir)/gnustep/base' to
`$(includedir)/objc' the same way we do for `$(includedir)/Foundation'.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1665 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:40:50 +00:00
Andrew McCallum
b18987af6c ([NSString -getCharacters:range:]): Fix bug in buffer index.
(Reported by Eric Norum <Eric.Norum@usask.ca>.)
([NSString -rangeOfString:aStringoptions:maskrange:aRange]):
Implemented.  (By Eric Norum.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1664 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:38:19 +00:00
Andrew McCallum
a25ebe26bf Include <Foundation/NSPathUtilities.h>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1663 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:23:43 +00:00
Andrew McCallum
c8a1cf2fef Changes from home. See ChangeLog Aug 5 through Aug 25
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1662 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:20:20 +00:00
Andrew McCallum
2cbf6b7806 New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1660 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:16:35 +00:00
Andrew McCallum
35bfc07b1a Use gcc's __builtin_return smarts to find location of `char' and
`short' return values; don't use my (possibly wrong) guesses.
(retframe_char): New nested function.
(retframe_short): New nested function.
(mframe_do_call) [_C_CHR, _C_UCHR]: Use retframe_char.
[_C_SHT, _C_USHT]: Use retframe_short.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1659 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:14:50 +00:00
Andrew McCallum
7e224a0309 ([NSObject -isKindOfClass:]): Fix formatting.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1658 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:11:32 +00:00
Andrew McCallum
a4dbc0b1bb ([Dictionary -removeObject:]): Add comment about efficiency.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1657 72102866-910b-0410-8b05-ffd578937521
1996-08-30 21:11:15 +00:00
Andrew McCallum
5264a6bc9a ([Dictionary -removeObject:]): Implemented method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1656 72102866-910b-0410-8b05-ffd578937521
1996-08-30 21:00:25 +00:00
Andrew McCallum
a601e7efea New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1651 72102866-910b-0410-8b05-ffd578937521
1996-07-15 18:42:52 +00:00
Andrew McCallum
52441fecef Changes made in Rochester. See ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1650 72102866-910b-0410-8b05-ffd578937521
1996-07-15 18:41:44 +00:00
Andrew McCallum
965e893842 (install): Create a soft link for objc' in addition to Foundation'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1641 72102866-910b-0410-8b05-ffd578937521
1996-06-27 00:45:23 +00:00
Andrew McCallum
aa8ebd3327 Rename callbacks to o_cbs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1636 72102866-910b-0410-8b05-ffd578937521
1996-06-18 00:48:54 +00:00
Andrew McCallum
12099e0c15 (gnustep/base): Fix typos.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1628 72102866-910b-0410-8b05-ffd578937521
1996-05-31 18:56:16 +00:00
Andrew McCallum
feb295f9fc (gnustep/base): Make a link for `Foundation' when building in a
separate directory.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1627 72102866-910b-0410-8b05-ffd578937521
1996-05-31 18:16:40 +00:00
Andrew McCallum
445444b81f ([StdioStream -readBytes:length:]): Don't assert that we get as many
bytes as we asked for.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1620 72102866-910b-0410-8b05-ffd578937521
1996-05-31 17:34:17 +00:00
Andrew McCallum
7c53cc2561 Include <Foundation/NSException.h>. Fix typo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1618 72102866-910b-0410-8b05-ffd578937521
1996-05-31 17:27:45 +00:00
Andrew McCallum
b30817e458 Insert header with description and c-mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1617 72102866-910b-0410-8b05-ffd578937521
1996-05-31 17:19:09 +00:00
Andrew McCallum
b335b87dd2 (CFLAGS_SHAREDLIB_GNU): New variable.
(CFLAGS_SHAREDLIB_SOLARIS): New variable.
(CFLAGS_SHAREDLIB): New variable set from configure.
(lib$(LIBRARY_NAME).so.$(VERSION)): Use it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1615 72102866-910b-0410-8b05-ffd578937521
1996-05-31 16:52:10 +00:00
Andrew McCallum
7f3c9b5be7 Rename all o- files to o_.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1613 72102866-910b-0410-8b05-ffd578937521
1996-05-31 16:12:24 +00:00
Andrew McCallum
f72deb165b (unescstr): Bug fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1612 72102866-910b-0410-8b05-ffd578937521
1996-05-31 16:10:45 +00:00
Andrew McCallum
57d133074e (maintainer-clean): Remove *_bas and *_cbs files.
(GNU_MFILES): Fix typo.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1611 72102866-910b-0410-8b05-ffd578937521
1996-05-31 15:49:10 +00:00
Andrew McCallum
dffee4588d (__gnustep_base_subinit_args__): No longer declared static.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1610 72102866-910b-0410-8b05-ffd578937521
1996-05-31 15:46:57 +00:00
Andrew McCallum
29729f4102 Rename all o-*' files to o_*'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1609 72102866-910b-0410-8b05-ffd578937521
1996-05-31 15:27:09 +00:00
Andrew McCallum
e1d2073668 Rename all o- files to o_.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1608 72102866-910b-0410-8b05-ffd578937521
1996-05-31 15:13:58 +00:00
Andrew McCallum
ea2d0648f4 Rename all o-*' files to o_*', and prepend `o_' to some related files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1607 72102866-910b-0410-8b05-ffd578937521
1996-05-31 15:12:22 +00:00
Andrew McCallum
e73a7fe9bc ([NSString -initWithFormat:arguments:]): Increase bsprintf buffer
size, and assert that we haven't overrun the buffer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1606 72102866-910b-0410-8b05-ffd578937521
1996-05-31 15:10:53 +00:00
Andrew McCallum
7dc236f936 File deleted.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1605 72102866-910b-0410-8b05-ffd578937521
1996-05-31 15:05:51 +00:00
Andrew McCallum
429ac1baaf (GNU_OTHER_SRCFILES): Added win32-entry.c and win32-def.top.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1600 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:27:33 +00:00
Andrew McCallum
bda0dd9814 New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1599 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:25:27 +00:00
Andrew McCallum
274b0940cd Comment change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1598 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:23:46 +00:00
Andrew McCallum
07a9fa0752 Don't declare ERRNO.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1597 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:23:23 +00:00
Andrew McCallum
6531e2ead0 Don't include <gnustep/base/Array.h>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1596 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:23:02 +00:00
Andrew McCallum
feccda75ec (WRITE_SIGNED_TYPE): Avoid alignment errors by using memcpy() instead
of trying to assign to (_TYPE*)(BUFFER+1).
(WRITE_UNSIGNED_TYPE): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1595 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:22:25 +00:00
Andrew McCallum
606e7dbd04 (main): Pass ENV variable to gnustep_base_user_main.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1594 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:06:03 +00:00
Andrew McCallum
c50f476e1b New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1578 72102866-910b-0410-8b05-ffd578937521
1996-05-28 21:25:46 +00:00
Andrew McCallum
344f350d9b (GNUSTEP_HEADERS): Added include/NSPathUtilities.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1576 72102866-910b-0410-8b05-ffd578937521
1996-05-28 21:21:15 +00:00
Andrew McCallum
30e0953778 File deleted.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1575 72102866-910b-0410-8b05-ffd578937521
1996-05-28 21:18:31 +00:00
Andrew McCallum
fa29c3cd8f (GNUSTEP_MFILES): Added NSUser.m.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1574 72102866-910b-0410-8b05-ffd578937521
1996-05-28 21:17:29 +00:00
Andrew McCallum
b84f4e6bfa New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1573 72102866-910b-0410-8b05-ffd578937521
1996-05-28 20:53:06 +00:00
Andrew McCallum
ee86b8a746 (ALL_INCLUDE_FLAGS): Undo last change, except use name
`srcdir-include' instead of `include'.  This should allow building is
a separate directory than the source, yet still avoid confusion
between <string.h> and <String.h> on win32 systems.
(gnustep/base:): Use `srcdir-include' instead of `include' for extra
links needed when building in a separate directory than the source.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1570 72102866-910b-0410-8b05-ffd578937521
1996-05-28 18:45:37 +00:00
Andrew McCallum
584559b8bf (_NSAddHandler): When creating E_QUEUE, don't autorelease and then
retain; instead just allocate it un-autoreleased.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1568 72102866-910b-0410-8b05-ffd578937521
1996-05-28 18:27:40 +00:00
Andrew McCallum
8468250930 Include <gnustep/base/preface.h> first! Fix indentation.
([NSLock +initialize]): Method removed.
([NSLock -init]): Assert return value from objc_mutex_allocate(),
don't just return nil.
([NSConditionLock -initWithCondition:]): Likewise.
([NSRecursiveLock -init]): Likewise.
([NSConditionLock +initialize]): Method removed.
([NSRecursiveLock +initialize]): Method removed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1566 72102866-910b-0410-8b05-ffd578937521
1996-05-28 13:37:17 +00:00
Andrew McCallum
a0861df80f ([ConstantKeyedCollection -description]): Instead of @%, use %s and [s
cStringNoCopy].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1559 72102866-910b-0410-8b05-ffd578937521
1996-05-27 15:04:04 +00:00
Andrew McCallum
f7fae0cbd9 ([NSDictionary -descriptionWithIndent:]): Use -cStringNoCopy instead
of -cString.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1558 72102866-910b-0410-8b05-ffd578937521
1996-05-27 15:03:26 +00:00
Andrew McCallum
e481a533b9 (NSStringFromHashTable): Instead of @%, use %s and [s cStringNoCopy].
(NSHashInsertKnownAbsent): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1557 72102866-910b-0410-8b05-ffd578937521
1996-05-27 15:02:48 +00:00
Andrew McCallum
7c3556c054 (NSStringFromMapTable): Instead of @%, use %s and [s cStringNoCopy].
(NSMapInsertKnownAbsent): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1556 72102866-910b-0410-8b05-ffd578937521
1996-05-27 15:02:32 +00:00
Andrew McCallum
8c30b02f94 Change comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1555 72102866-910b-0410-8b05-ffd578937521
1996-05-27 15:01:58 +00:00
Andrew McCallum
73e18dc6ce ([TextCStream -encodeValueOfCType:at:withName:]): Instead of @%, use
%s and [s cStringNoCopy].
([TextCStream -encodeName:n]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1554 72102866-910b-0410-8b05-ffd578937521
1996-05-27 15:01:44 +00:00
Andrew McCallum
ad0df9ad1d (o_hash_description): Instead of @%, use %s and [s cStringNoCopy].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1553 72102866-910b-0410-8b05-ffd578937521
1996-05-27 15:00:54 +00:00
Andrew McCallum
2c22c1f4fc (_o_@XX@_description): Instead of "@%", use %s and [s cStringNoCopy].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1552 72102866-910b-0410-8b05-ffd578937521
1996-05-27 15:00:24 +00:00
Andrew McCallum
56f57a6657 Patch from Scott Christley.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1551 72102866-910b-0410-8b05-ffd578937521
1996-05-27 14:26:41 +00:00
Andrew McCallum
8aeaa8b2a6 Prepend missing `o-' in #include.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1550 72102866-910b-0410-8b05-ffd578937521
1996-05-27 13:57:48 +00:00
Andrew McCallum
8fe65da06a (FILE_AUTHORS): Added "Scott Christley".
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1542 72102866-910b-0410-8b05-ffd578937521
1996-05-13 17:43:45 +00:00
Andrew McCallum
724564f31f Add proplist and lex.pl files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1541 72102866-910b-0410-8b05-ffd578937521
1996-05-13 17:33:14 +00:00
Andrew McCallum
af7851fccd New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1540 72102866-910b-0410-8b05-ffd578937521
1996-05-13 17:32:56 +00:00
Andrew McCallum
1afb572971 ([NSString -description]): Fix warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1539 72102866-910b-0410-8b05-ffd578937521
1996-05-13 17:30:01 +00:00
Andrew McCallum
2518e9a4fd ([NSDictionary -description]): Fix warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1538 72102866-910b-0410-8b05-ffd578937521
1996-05-13 17:29:49 +00:00
Andrew McCallum
f8444df542 ([NSDictionary -description]): Fix warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1537 72102866-910b-0410-8b05-ffd578937521
1996-05-13 17:28:00 +00:00
Andrew McCallum
4545689260 (GNU_OTHER_SRCFILES): Added proplist.l and proplist.y.
(GNU_MFILES): Added lex.pl.m and proplist.tab.m.
(YACC): New variable.
(GNU_OTHER_SRCFILES): Added proplist., proplist.tab.h and proplist.y.
(proplist.tab.m proplist.tab.h): New target.
(lex.pl.m): New target.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1536 72102866-910b-0410-8b05-ffd578937521
1996-05-13 17:27:34 +00:00
Andrew McCallum
ea3a8e3720 ([NSData -description]): Implemented by Nathan Urban.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1535 72102866-910b-0410-8b05-ffd578937521
1996-05-13 16:43:29 +00:00
Andrew McCallum
2c5ef843f2 ([NSArrayNonCore -description]): Implemented by Nathan Urban.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1534 72102866-910b-0410-8b05-ffd578937521
1996-05-13 16:42:08 +00:00
Andrew McCallum
690cb3735b ([NSDictionary -description]): Implemented by Nathan Urban.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1533 72102866-910b-0410-8b05-ffd578937521
1996-05-13 16:39:21 +00:00
Andrew McCallum
b26c2df1c2 ([NSString -description]): Implemented by Nathan Urban.
([NSString -propertyList]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1532 72102866-910b-0410-8b05-ffd578937521
1996-05-13 16:37:10 +00:00
Andrew McCallum
80414d5ff3 (NSBecomingMultiThreaded, NSThreadExiting): Initialize the
notification strings as static strings, not in +initialize.
(thread_id_2_nsthread): Renamed from THREAD_LIST.  Keep the collection
of NSThread's as a maptable, not a NSArray that takes linear time to
search!
(thread_lock): Renamed from THREAD_LIST_LOCK.
(entered_multi_threaded_state): Renamed from ENTERED_MULTI-THREADED_STATE.
([NSThread +initialize]): Don't initialize notification strings here.
Don't autorelease the lock!
([NSThread -init]): Initialize _thread_autorelease_pool.  Set our
thread data to self, for easy, efficient access to this NSThread
object later.  Put ourselves in the thread collection here, not in
+detach...
([NSThread +currentThread]): This will be called often and needs to be
fast.  Reimplemented so we don't have to acquire a lock and step
through an NSArray of threads; instead, just look ourselves up with
the objc_thread_get_data(), and furthermore, no lock required.
([NSThread +detachNewThreadSelector:toTarget:withObject:]): Avoid race
condition, don't create new NSThread object here.
([NSThread +sleepUntilDate:]): Call -notImplemented:.
([NSThread +exit]): Properly post NSThreadExiting notification, making
sure not to hold the lock while we do so.  Get the NSThread object
efficiently.
([NSThread -threadId]): Removed unnecessary private method.
([NSThread -setThreadId]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1530 72102866-910b-0410-8b05-ffd578937521
1996-05-13 15:53:36 +00:00
Andrew McCallum
94235c99ce (gnustep/base): Use -r test for file existance, not -e.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1527 72102866-910b-0410-8b05-ffd578937521
1996-05-13 15:40:57 +00:00
Andrew McCallum
2eca55f16b Include <netinet/in.h> for byte-conversion; needed on Solaris.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1526 72102866-910b-0410-8b05-ffd578937521
1996-05-13 15:39:21 +00:00
Andrew McCallum
a78eb13bc0 (AUTHORS): Also search for "Rewritten by" string.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1524 72102866-910b-0410-8b05-ffd578937521
1996-05-13 13:03:40 +00:00
Andrew McCallum
ffb11e3c7b ([Coder -encodeConditionalObject:]): Comment additions.
([Coder -decodeObject]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1523 72102866-910b-0410-8b05-ffd578937521
1996-05-13 00:14:51 +00:00
Andrew McCallum
c9ae05dadd Remove many methods from (Coder NSCoderCompatibility), they are now
included by adding the behavior from NSCoderNonCore.
([Coder +initialize]): Add behavior from NSCoderNonCore.
([Coder -encodeArrayOfObjCType:count:at:]): Method removed.
([Coder -decodeArrayOfObjCType:count:at:]): Method removed.
([Coder -encodeProperyList:]): Method removed.
([Coder -decodeProperyList:]): Method removed.
([Coder -encodePoint:]): Method removed.
([Coder -decodePoint:]): Method removed.
([Coder -encodeSize:]): Method removed.
([Coder -decodeSize:]): Method removed.
([Coder -encodeRect:]): Method removed.
([Coder -decodeRect:]): Method removed.
([Coder -encodeValuesOfObjCTypes:]): Method removed.
([Coder -decodeValuesOfObjCTypes:]): Method removed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1522 72102866-910b-0410-8b05-ffd578937521
1996-05-12 23:57:50 +00:00
Andrew McCallum
168f431ba9 Change "Gnustep" to "GNUstep"
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1521 72102866-910b-0410-8b05-ffd578937521
1996-05-12 00:56:10 +00:00
Andrew McCallum
889c412539 Preparation for thread-safety.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1517 72102866-910b-0410-8b05-ffd578937521
1996-05-12 00:38:45 +00:00
Andrew McCallum
63e596e70c Comment changes, and preparation for thread-safety.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1516 72102866-910b-0410-8b05-ffd578937521
1996-05-12 00:38:07 +00:00
Andrew McCallum
ee7c173599 #include <values.h> to get BITSPERBYTE on Solaris. (Reported by
M. Decugis <mds@sepgifbr.sep.de.edf.fr>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1515 72102866-910b-0410-8b05-ffd578937521
1996-05-10 13:55:35 +00:00
Andrew McCallum
37d8cc7765 (objc_load_module): Uncomment local vars when needed. (Provided by
Bill Bumgarner <bbum@friday.com>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1514 72102866-910b-0410-8b05-ffd578937521
1996-05-08 14:56:44 +00:00
Andrew McCallum
4300f0e9a2 (BITSPERBYTE): Define if not defined and on NeXT.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1513 72102866-910b-0410-8b05-ffd578937521
1996-05-08 14:53:02 +00:00
Andrew McCallum
f32db3d692 Separate implemented, non-core methods into separate class, in
preparation for avoiding the duplication of these methods in Coder.m.
([NSCoder +initialize]): New method.
(NSCoderNonCore): New class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1510 72102866-910b-0410-8b05-ffd578937521
1996-05-07 18:08:01 +00:00
Andrew McCallum
3b51fcdff1 ([NSGArchiver -encodeObjectReference:]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1503 72102866-910b-0410-8b05-ffd578937521
1996-05-07 01:20:22 +00:00
Andrew McCallum
3f10d36cbc ([Decoder -decodeObjectAt:anObjPtr:name]): Move CREATE_REF_BEFORE_INIT
assertion to inside conditional for FREF being true.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1502 72102866-910b-0410-8b05-ffd578937521
1996-05-07 01:16:34 +00:00
Andrew McCallum
404b2c5d12 (PRINTF_ATSIGN_VA_LIST): New macro, when 1, undoes previous changes.
Previous changes cause crashes with my libc.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1501 72102866-910b-0410-8b05-ffd578937521
1996-05-07 01:14:54 +00:00
Andrew McCallum
b4695b292a It should now work again to build in a separate directory.
Use ${OEXT}, not $(OEXT).
(ALL_INCLUDE_FLAGS): Look in ./include, not $(srcdir).
(GNU_HEADERS): Remove duplicate NS*.h files.
(gnustep/base): Make soft links to the $(srcdir) include files inside
./include.
(include/preface.h): Get preface.h.in from the $(srcdir)!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1499 72102866-910b-0410-8b05-ffd578937521
1996-05-06 21:24:04 +00:00
Andrew McCallum
d43d347684 ([NSMutableArray +initialize]): Add the NSArrayNonCore methods also.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1496 72102866-910b-0410-8b05-ffd578937521
1996-05-06 19:57:29 +00:00
Andrew McCallum
42b38028bd Add o- prefix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1495 72102866-910b-0410-8b05-ffd578937521
1996-05-06 19:40:26 +00:00
Andrew McCallum
1daf82a5fe Add `o-' prefix to object collection function files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1494 72102866-910b-0410-8b05-ffd578937521
1996-05-06 19:22:54 +00:00
Andrew McCallum
d39b518212 File deleted.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1493 72102866-910b-0410-8b05-ffd578937521
1996-05-06 19:10:52 +00:00
Andrew McCallum
b00a575e5e All uses of @"" were crashing in Linux libc-5.3.9.
(arginfo_func): New function.
(handle_printf_atsign): Get the string object without va_arg().
([NSString +initialize]): Use new function.
(Reported and fixed by Kai-Uwe Sattler
<sattler@volker.cs.Uni-Magdeburg.DE>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1492 72102866-910b-0410-8b05-ffd578937521
1996-05-06 18:59:01 +00:00
Andrew McCallum
e74c56158b ([NSMutableArrayNonCore -removeObject:]): Replace with version that
removes all objects equal to argument.
([NSMutableArrayNonCore -removeObjectIdenticalTo:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1491 72102866-910b-0410-8b05-ffd578937521
1996-04-30 14:25:22 +00:00
Andrew McCallum
f55677d2e5 ([TextCStream -encodeValueOfCType:at:withName:]): If name is nil or
zero-length, make it "Anonymous".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1485 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:16:59 +00:00
Andrew McCallum
7e261d59d5 Add todo comments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1484 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:16:24 +00:00
Andrew McCallum
66356eb508 (USE_OPENSTEP_STYLE_FORWARD_REFERENCES): New macro.
(NSGArchiverNullCStream): New class, interface and implementation.
([NSGArchiverNullCStream -decodeValueOfCType:at:withName:]): New method.
([NSGArchiverNullCStream -decodeValueOfCType:at:withName:]): New method.
([NSGArchiver -encodeRootObject:withName:]): New method.
([NSGArchiver -encodeConditionalObject:]): New method.
([NSGArchiver -_coderCreateReferenceForObject:]): New method.
([NSGArchiver -_coderCreateForwardReferenceForObject:]): New method.
([NSGArchiver -_coderForwardReferenceForObject:]): New method.
([NSGArchiver -_objectWillBeInProgress:]): New method.
([NSGArchiver -_objectNoLongerInProgress:]): New method.
([NSGArchiver -defaultDecoderClassname]): New method.
([NSGUnarchiver -_createReferenceBeforeInit]): New method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1483 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:15:30 +00:00
Andrew McCallum
69b93a3648 ([NSUnarchiver +initialize]): Test self against NSUnarchiver class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1482 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:13:51 +00:00
Andrew McCallum
ffbdc162d3 (debug_coder): Make it a static var instead of a #define.
([Encoder -_objectWillBeInProgress:]): New method.
([Encoder -_objectNoLongerInProgress:]): New method.  Depending on
whether we are doing GNU or OpenStep style forward references one of
these two methods will create a backward reference to the object by
calling -_coderInternalCreateReferenceForObject:.  This will effect
whether encoding make forward or backward references to objects in
progress.  GNU uses forward references, which is robust even when the
object's -initWithCoder substitutes another object for self.
([Encoder -_encodeObject:withName:isBycopy:isForwardReference:]): Use
new methods.  Don't call -_coderInternalCreateReferenceForObject here,
let one of the ...InProgress methods do it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1481 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:12:59 +00:00
Andrew McCallum
b5526b907d (debug_coder): Make it a static var instead of a #define.
([Decoder -_coderCreateReferenceForObject:]): Add a debugging message.
([Decoder -_coderCreateReferenceForInterconnectedObject:]):
Autorelease the placeholder object.
([Decoder -_createReferenceBeforeInit]): New method.  By default
return NO, for the GNU-style forward references.
([Decoder -decodeObjectAt:anObjPtr:name]): [CODER_OBJECT]: Use new
method; if it returns true, then we are using non-GNU, OpenStep-style
forward references.  In this case: (1) don't try to decode the object by
sending +newWithCoder:, in fact, raise an error if the object wanted
to be decoded that way; (2) call _coderInternalCreateReferenceForObject
before sending -initWithCoder, not after; unfortunately this means
that -initWithCoder methods cannot substitute another object for self.
If it returns false, use the more robust GNU style forward references.
The NSGUnarchiver overrides this method to use the OpenStep style.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1480 72102866-910b-0410-8b05-ffd578937521
1996-04-19 23:05:57 +00:00
Andrew McCallum
e20d99bcd6 Include gnustep/base/Archiver.h.
([Coder +archivedDataWithRootObject:]): Use Archiver class, not
NSArchiver, it matters because now the two classes handle forward
references differently.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1479 72102866-910b-0410-8b05-ffd578937521
1996-04-19 22:59:11 +00:00
Andrew McCallum
39d7d5a0b3 (Foundation): Fix dependancy to force proper handling after a cvs
checkout.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1476 72102866-910b-0410-8b05-ffd578937521
1996-04-18 12:31:52 +00:00
Andrew McCallum
e3b1d2f905 ([Decoder -decodeObjectAt:anObjPtr:name]): Decode the Unindent
*before* decoding the fref; as does Encoder!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1466 72102866-910b-0410-8b05-ffd578937521
1996-04-18 01:47:52 +00:00
Andrew McCallum
1b2c5c89ff Change R. Andrew McCallum to post-marriage name: Andrew Kachites McCallum
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1456 72102866-910b-0410-8b05-ffd578937521
1996-04-17 20:17:45 +00:00
Andrew McCallum
8a87d785db Rename in comments from GNU Objective C Class Library to Gnustep Base Library.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1454 72102866-910b-0410-8b05-ffd578937521
1996-04-17 20:01:09 +00:00
Andrew McCallum
05817bc168 Rename in comments from GNU Objective C Class Library to Gnustep Base Library.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1451 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:55:26 +00:00
Andrew McCallum
a131f7d913 Rename all objects_* to o_*.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1445 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:26:04 +00:00
Andrew McCallum
3a50890494 ([NSGSet -isEqual:]): Call isEqualToSet: (in superclass).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1444 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:21:57 +00:00
Andrew McCallum
71a4589ca7 Use preface.h instead of stdobjects.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1439 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:04:15 +00:00
Andrew McCallum
a6b8bb8c62 Change all include objects/*.h to include gnustep/base/*.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1438 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:02:37 +00:00
Andrew McCallum
210128dc5d File deleted.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1437 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:01:47 +00:00
Andrew McCallum
afb83bf2f0 Change all include objects/*.h to include gnustep/base/*.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1436 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:01:22 +00:00
Andrew McCallum
6c9c554683 ([CStream -writeSignature]): Use new version macro names.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1435 72102866-910b-0410-8b05-ffd578937521
1996-04-17 18:59:34 +00:00
Andrew McCallum
320fc36233 (__gnustep_base_subinit_args__): Renamed from libobjects...
(main): Use gnustep_base_user_main, not LibobjectsMain.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1431 72102866-910b-0410-8b05-ffd578937521
1996-04-17 17:37:22 +00:00
Andrew McCallum
dcca50d0f4 Include objc-malloc.h from gnustep/base.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1429 72102866-910b-0410-8b05-ffd578937521
1996-04-17 17:31:02 +00:00
Andrew McCallum
9825d73ba4 (Foundation): Add step to get rid of old Foundation directory that
would come from a CVS checkout.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1428 72102866-910b-0410-8b05-ffd578937521
1996-04-17 17:10:43 +00:00
Andrew McCallum
9f38de1da8 Adjust comment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1427 72102866-910b-0410-8b05-ffd578937521
1996-04-17 16:58:44 +00:00
Andrew McCallum
287f653518 (include/preface.h): Make substitutions for macro name, as well as value.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1421 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:40:18 +00:00
Andrew McCallum
a8ae3dddbb Fix typo; it is preface.h, not prefix.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1420 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:34:35 +00:00
Andrew McCallum
838ac3681f Change all include objects/*.h to include gnustep/base/*.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1419 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:23:00 +00:00
Andrew McCallum
6b6588b249 (all): Add dependancy on `Foundation'.
(Foundation): New target.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1418 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:17:52 +00:00
Andrew McCallum
47816bf1e0 Update names of global const char's.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1417 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:08:10 +00:00