58 Commits

Author SHA1 Message Date
gerv%gerv.net
210853d71e Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@155067 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-18 14:21:17 +00:00
darin%meer.net
55688e6410 landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt
git-svn-id: svn://10.0.0.236/trunk@152905 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 02:44:03 +00:00
bryner%brianryner.com
5db66292cf Backing out nsHashtable dtor change (bug 229875) - this needs to be virtual. Thanks to bienvenu for pointing out the problem.
git-svn-id: svn://10.0.0.236/trunk@152762 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-13 19:04:38 +00:00
bryner%brianryner.com
1bd144eac3 Continuing removal of unneeded virtual destructors (bug 229875). r=dougt, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@151669 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 01:01:19 +00:00
dbaron%dbaron.org
c4bdc17ba3 Include nscore.h instead of nsCom.h. b=226555 r=dougt sr=darin a=asa
git-svn-id: svn://10.0.0.236/trunk@149839 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-29 18:56:10 +00:00
jkeiser%netscape.com
3358821b5e Templatized hashtable class by bsmedberg@covad.net (bug 180264), r=jkeiser@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@140570 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 06:53:57 +00:00
dougt%netscape.com
fed2927b2c Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a “only include” cid list that can mask CID’s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
alecf%netscape.com
a1422857af fix warning - extra comma after enumerator
no reviewers, its a one-character change, pointed out by blizzard


git-svn-id: svn://10.0.0.236/trunk@133955 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 05:10:27 +00:00
alecf%netscape.com
843a3d32f2 fix for bug 177318 - use pldhash for inner hashtable entries to dramatically reduce allocations
r=dougt/sr=brendan
I am watching to see how the performance number change and will back out if the results are nasty


git-svn-id: svn://10.0.0.236/trunk@133938 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 02:33:49 +00:00
ccarlen%netscape.com
8854b4295f Bug 149785 - nsHashTable hides important functionality of PLHashTable. r=brendan@mozilla.org/sr=alecf/a=brendan
git-svn-id: svn://10.0.0.236/trunk@126022 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-29 22:48:15 +00:00
badami%netscape.com
4de1fca0c2 Leaking nsCStringKey objects
bug 73308 r=valeski sr=shaver a=brendan patch=tmutreja@netscape.com


git-svn-id: svn://10.0.0.236/trunk@115565 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-01 09:28:55 +00:00
alecf%netscape.com
0daeecc032 augh, didn't mean to check these in
git-svn-id: svn://10.0.0.236/trunk@109502 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 23:17:11 +00:00
alecf%netscape.com
bfb7e06d84 ok, back out my ToLowerCase() change, it didn't make any difference
git-svn-id: svn://10.0.0.236/trunk@109501 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 23:15:31 +00:00
alecf%netscape.com
e529936b5b oops, one more try to back out
git-svn-id: svn://10.0.0.236/trunk@109063 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:55:03 +00:00
alecf%netscape.com
9e40851eab ack! back these out, weren't meant to land
git-svn-id: svn://10.0.0.236/trunk@109062 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:53:18 +00:00
alecf%netscape.com
9714ddf32b debug stuff only - adding MOZ_COUNT_DTOR/CTOR and changing DEBUG to DEBUG_dougt
(last part r=dougt)


git-svn-id: svn://10.0.0.236/trunk@109061 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:52:05 +00:00
dp%netscape.com
5fbbc564cf bug# 105509 inlining nsHashKey::nsHashKey
r=dougt, sr=jband


git-svn-id: svn://10.0.0.236/trunk@107069 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:58:30 +00:00
dougt%netscape.com
7ee3947039 Adding new hash key. r=darin@netscape.com, sr=brendan@mozilla.org bug=81956
git-svn-id: svn://10.0.0.236/trunk@104131 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 21:37:23 +00:00
cls%seawood.org
e8d28b7625 Use NS_PTR_TO_INT32 macros to do 64-bit safe pointer conversions.
Bug #20860 r=Roland.Mainz@informatik.med.uni-giessen.de sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@100998 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-14 04:18:27 +00:00
brendan%mozilla.org
f5bc62edea FASTLOAD_20010703_BRANCH landing, r=dbaron, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@100030 18797224-902f-48f8-a5cc-f745e15eee43
2001-07-31 19:05:34 +00:00
dbaron%fas.harvard.edu
bf90dc8912 Make ns[C]StringKey cooperate better with new string classes (although it doesn't participate in sharing). When created (non-cloned) from a flat string it will be dependent (as it was when created from ns[C]String), but it will copy non-flat strings. b=88411 r=jaggernaut sr=waterson (Complete comment for previous checkin.)
git-svn-id: svn://10.0.0.236/trunk@98324 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 23:09:38 +00:00
dbaron%fas.harvard.edu
94239ebb27 Make ns[C]StringKey cooperate better with new string classes (although it doesn't participate in sharing). When created (non-cloned) from a flat string it will be dependent (as it was when created from ns[C]String), but it will copy non-flat strings.
git-svn-id: svn://10.0.0.236/trunk@98323 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-29 23:08:23 +00:00
waterson%netscape.com
f15f96de69 Bug 65908. Reduce nsHashtable default size from 256 to 16 (the minimum that a PL_HashTable will allow). r=kandrot, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@85176 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-19 21:20:52 +00:00
valeski%netscape.com
c14f38846e 32185. r=wan-teh. Fixing hashtable enumeration lossage.
git-svn-id: svn://10.0.0.236/trunk@77909 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 19:11:24 +00:00
jst%netscape.com
7e0575bfee DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 17:27:06 +00:00
warren%netscape.com
4afc13fbcb Added back in nsOpaqueKey, used in nsMemCache. Went back to 37 as the magic number (prime).
git-svn-id: svn://10.0.0.236/trunk@76768 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-21 02:37:20 +00:00
warren%netscape.com
895569159c Fix for hash code performance problem discovered by bienvenu. 'Sampling' hash code was statistically evil.
git-svn-id: svn://10.0.0.236/trunk@76761 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-20 21:29:10 +00:00
warren%netscape.com
fcb1b8f06c Changes to allow uncopied string keys. Changes to copy string key's null byte. code=jband, r=warren
git-svn-id: svn://10.0.0.236/trunk@76367 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-16 00:32:59 +00:00
warren%netscape.com
ee959ee62f Fixed warnings.
git-svn-id: svn://10.0.0.236/trunk@75986 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 07:05:13 +00:00
warren%netscape.com
fac6eb1451 Fixed nscom.h -> nsCom.h
git-svn-id: svn://10.0.0.236/trunk@75977 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:35:34 +00:00
warren%netscape.com
e5706a7236 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson
git-svn-id: svn://10.0.0.236/trunk@75975 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 06:19:37 +00:00
warren%netscape.com
48c2a980b3 Fixed declaration of nsHashtableCloneElementFunc to have PR_CALLBACK.
git-svn-id: svn://10.0.0.236/trunk@75022 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 06:48:32 +00:00
cls%seawood.org
658814f84a The WS5.0 problem cropped up again so I'm reapplying pavlov's previous fix.
git-svn-id: svn://10.0.0.236/trunk@72199 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 06:28:13 +00:00
pavlov%netscape.com
e5fa506783 reverting previous checkin to fix workshop5 bustage as it has been fixed elsewhere
git-svn-id: svn://10.0.0.236/trunk@72021 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 05:34:27 +00:00
pavlov%netscape.com
517b09c7ab include nscore.h
git-svn-id: svn://10.0.0.236/trunk@71950 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-10 00:50:48 +00:00
pavlov%netscape.com
ea645ed752 fix ws5 build bustage
git-svn-id: svn://10.0.0.236/trunk@71948 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-10 00:31:40 +00:00
inaky.gonzalez%intel.com
a4ad3b18a9 Fixed nsSupportsHashtable behaviour and API to fix leaks in
nsDirectoryService. Fixes bugs #38606 and #39859.

a=waterson; r=rayw,brendan,warren


git-svn-id: svn://10.0.0.236/trunk@71623 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-06 22:06:56 +00:00
mkaply%us.ibm.com
f32dd26a1b # 34082
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler


git-svn-id: svn://10.0.0.236/trunk@67931 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 22:38:04 +00:00
rickg%netscape.com
65135726ce landing phase 2 to remove deprecated string calls
git-svn-id: svn://10.0.0.236/trunk@62718 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-12 11:10:07 +00:00
fur%netscape.com
eee2215bda In support of bug #8305 (Cache implementation), added new type of hash-table
key, an array of opaque data, not owned by the key. r: dougt


git-svn-id: svn://10.0.0.236/trunk@53609 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 03:10:54 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
jband%netscape.com
5630b79f6c adding enumeration of CLSIDs and ProgIDs using code from Robert Ginda <rginda@ix.netcom.com>
git-svn-id: svn://10.0.0.236/trunk@42738 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-09 05:02:25 +00:00
dp%netscape.com
795fd0002d Adding RemoveAndDelete() to nsObjectHashtable
git-svn-id: svn://10.0.0.236/trunk@41877 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 23:55:03 +00:00
dp%netscape.com
22b18d28ec Adding nsHashtable::Reset(). Changing nsObjectHashtable destructor to use Reset instead of enumerate. This will cause hash entires to be removed from the hash table as values in the hash table are released.
git-svn-id: svn://10.0.0.236/trunk@41679 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-31 05:41:54 +00:00
warren%netscape.com
3295a722e9 Added nsObjectHashtable (for automatically copying and destroying elements). Also nsSupportsHashtable for refcounted elements.
git-svn-id: svn://10.0.0.236/trunk@41449 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-28 07:56:28 +00:00
tbogard%aol.net
0562346fa7 Changed nsCStringKey to nsStringKey. This new key now has the ability to hash on PRUnichar* strings as well as char* strings.
git-svn-id: svn://10.0.0.236/trunk@40584 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 02:11:04 +00:00
warren%netscape.com
122ce55438 Made instance variables protected so that we can subclass.
git-svn-id: svn://10.0.0.236/trunk@27860 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 18:16:21 +00:00
dp%netscape.com
f91b8f9f95 Thread Safe nsHashtable (on demand only)
git-svn-id: svn://10.0.0.236/trunk@25609 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-30 08:15:39 +00:00
waterson%netscape.com
19092c6c7e Made the nsCStringKey class NS_COM so that it could be exported across DLLs.
git-svn-id: svn://10.0.0.236/trunk@24912 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-23 23:12:35 +00:00
warren%netscape.com
24f7a16a93 Fix for broken linux compiler.
git-svn-id: svn://10.0.0.236/trunk@24424 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-19 06:18:08 +00:00