22 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
bf3150fa5b Fix HP bustage.
git-svn-id: svn://10.0.0.236/trunk@112301 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:48:24 +00:00
dbaron%fas.harvard.edu
865e4ed64a Create a mechanism for allowing a |Destroy| method to be called on buffer handles whose refcount hits 0 instead of |delete|. Use that mechanism to fix threadsafety problems with shared empty buffer handles, restoring sharable strings to their previous state of threadsafety. b=117153 sr=jag r=alecf
git-svn-id: svn://10.0.0.236/trunk@112277 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:08:22 +00:00
dbaron%fas.harvard.edu
3855c146ac Fix nsSharableString::SetLength to correctly handle having a shared buffer. Override GetWritableFragment on nsSharableString (perhaps temporarily) to allow use of writing iterators on nsSharableString. b=114438 r=jag sr=jst
git-svn-id: svn://10.0.0.236/trunk@110214 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-11 03:33:09 +00:00
dbaron%fas.harvard.edu
c0b306795b Make nsSharable[C]String writable by overriding appropriate methods. Ensure that it doesn't store null buffer handle pointer internally, and override get() on nsXPIDL[C]String for backwards-compatibility. Collapse nsSharedBufferHandle and nsFlexBufferHandle into nsSharedBufferHandle which knows its length but can't have a storage start distinct from its data start. Convert string users who were working around broken nsSharableString::Assign back to using it. b=104663, 100751, 74726 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@109114 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 05:22:57 +00:00
scc%mozilla.org
09a45773e9 bug #74726: sr=waterson, r=beard. Make |nsXPIDLC?String| inherit from |nsSharableC?String|, the new implementation is now in the string hierarchy (and out of string/obsolete).
git-svn-id: svn://10.0.0.236/trunk@98275 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 12:47:43 +00:00
scc%mozilla.org
b226abdbef bug #69872, sr=jst, r=jag. Make |nsDependentC?String|s rebindable.
git-svn-id: svn://10.0.0.236/trunk@95637 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 23:45:03 +00:00
scc%mozilla.org
46ad0c0eff bug #74726, partial fix, r=vidur, sr=jst: make |nsCommon[C]String| re-bindable; make constructors |explicit|; fix clients. bug #75169, r=jst, sr=waterson: fix string warnings on Windows; fix some typos
git-svn-id: svn://10.0.0.236/trunk@94617 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 08:41:21 +00:00
scc%mozilla.org
7b06841b03 landing string branch; see bug #73786
git-svn-id: svn://10.0.0.236/trunk@91049 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-02 19:40:52 +00:00
scc%mozilla.org
414ed7319d fix HPUX bustage, and additionally added some comments
git-svn-id: svn://10.0.0.236/trunk@90376 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 18:06:27 +00:00
disttsc%bart.nl
8874b002ef Fix Win32 bustage by adding NS_COM to declaration of StringAllocator_[char|wchar_t](), r/sr=scc
git-svn-id: svn://10.0.0.236/trunk@90353 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 02:26:33 +00:00
scc%mozilla.org
3b6f8d16d6 bug #73297, r=shaver, sr=darin. Give string buffers an allocator hook to tie into js et al
git-svn-id: svn://10.0.0.236/trunk@90352 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-25 01:14:26 +00:00
vidur%netscape.com
3e62b3f9f3 Changes to parser to allow less copying. Use of the new nsSliding[Sub]String classes so that tokens can hold substrings that keep references into the scanner buffer. Cleaned up token interface and general string usage. r=harishd,heikki sr=jst
git-svn-id: svn://10.0.0.236/trunk@83553 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 21:58:14 +00:00
scc%mozilla.org
9b701c3845 fixed ugly name |nsXXXBufferHandle| --> |nsFlexBufferHandle|; hey, it may not be perfect, but it's better than 'XXX'
git-svn-id: svn://10.0.0.236/trunk@78952 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:27:11 +00:00
scc%mozilla.org
49b4e02370 more HPUX fixes
git-svn-id: svn://10.0.0.236/trunk@78625 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 13:26:07 +00:00
scc%mozilla.org
506f2ce6ae HPUX is smarter than me
git-svn-id: svn://10.0.0.236/trunk@78624 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 12:53:38 +00:00
scc%mozilla.org
3807f9b6c2 fixing linux bustage
git-svn-id: svn://10.0.0.236/trunk@78619 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 10:24:45 +00:00
scc%mozilla.org
bf44e1bf27 fixes for VC++
git-svn-id: svn://10.0.0.236/trunk@78614 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 09:44:45 +00:00
scc%mozilla.org
a62ca7b8b0 fix |const| errors, this file is not yet part of the build
git-svn-id: svn://10.0.0.236/trunk@78599 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 06:32:46 +00:00
scc%mozilla.org
f40045b221 more work towards a working |nsSlidingString|, |nsSlidingSubstring| for the parser, these files are not yet part of the build
git-svn-id: svn://10.0.0.236/trunk@78583 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 04:42:19 +00:00
scc%mozilla.org
14b6bfe7a9 not part of the build, getting closer to turning on the new parser strings
git-svn-id: svn://10.0.0.236/trunk@78556 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 00:25:00 +00:00
scc%mozilla.org
31b28b9902 adding license and include guards
git-svn-id: svn://10.0.0.236/trunk@78555 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 00:02:48 +00:00
scc%mozilla.org
adcba910bf not yet part of the build, this is the bulk of the work for the special parser strings
git-svn-id: svn://10.0.0.236/trunk@78553 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 23:54:23 +00:00