1150 Commits

Author SHA1 Message Date
brendan%mozilla.org
45a2cddc1c Fix JS/PL_DHashTableEnumerate to compress or shrink the table after enumeration using the same logic as ADD and REMOVE use (120953, r=dbaron, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116579 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 21:55:08 +00:00
alecf%netscape.com
ef0e43220c fix for bug 130135 - remove "virtual" from nsObserverList because it doesn't have virtual methods
(saves 4 bytes per list)
r=dougt, sr=darin, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@116408 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 15:46:19 +00:00
attinasi%netscape.com
ef8e70811a Added NS_COM to fix linkage problems. Thanks Chris S~!
git-svn-id: svn://10.0.0.236/trunk@116097 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-07 22:38:41 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
timeless%mac.com
c6b3d5be1b bug 114166 final cleanup for nsDeque ( comments + whitespace only )
r=akkana sr=darin a=asa


git-svn-id: svn://10.0.0.236/trunk@115921 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 03:21:17 +00:00
nisheeth%netscape.com
9872daecf4 Fix for bug 125465. r=jag, sr=jband, a=asa. Add AString, ACString, and AUTF8String support to XPCOM's variant data type. Also, add forward declarations of AString and ACString to nsrootidl.idl.
git-svn-id: svn://10.0.0.236/trunk@115789 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 02:22:02 +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
dp%netscape.com
c7d3cfd4eb (again) bug 127941 Fixing leak of bucket memory; memset to 0 only if zeroit is
set. r=dougt, sr&a=shaver@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@115531 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-01 00:03:58 +00:00
dp%netscape.com
c2fbab4ccf Backing out earlier change. Tree isn't open for checkin yet. Sorry.
git-svn-id: svn://10.0.0.236/trunk@115499 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-28 18:36:26 +00:00
dp%netscape.com
ad1315f3be bug 127941 Fixing leak of bucket memory; memset to 0 only if zeroit is
set. r=dougt, sr&a=shaver@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@115498 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-28 18:30:48 +00:00
cathleen%netscape.com
cc630ddcfb backout nsCRT.h change. put back nsCRT::strlen(char* s). tree is burning out of control. I swear it builds on my machine! :-( Will need to evaluate and try later
git-svn-id: svn://10.0.0.236/trunk@115474 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-28 05:23:40 +00:00
cathleen%netscape.com
102fd63c1f eliminate nsCRT::strlen for char* strings (final part), bug 124536 r=dp sr=brendan a=roc+moz
git-svn-id: svn://10.0.0.236/trunk@115468 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-28 04:11:37 +00:00
dougt%netscape.com
ffacd7bc78 Adding build SDK support. r=dougt, sr=alecf, submitted by seawood, a=asa
git-svn-id: svn://10.0.0.236/trunk@115326 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-25 23:20:01 +00:00
brendan%mozilla.org
1dd9667d80 Sync these mirrored sources with their primaries at js/src/jsdhash.[ch] (see bug 62164, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@115275 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-23 10:04:29 +00:00
cathleen%netscape.com
6a0e426e6c eliminate nsCRT::strlen for char* strings (part 5), bug 124536 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@115070 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 06:38:38 +00:00
jkeiser%netscape.com
949db40184 C++ wrapper for PLDHashTable (bug 125489), r=alecf@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@115063 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 06:08:53 +00:00
timeless%mac.com
29beedeb0d Bug 114166 rewrite nsDeque
r=akkana sr=alecf
rs=alecf for TestDeque.cpp


git-svn-id: svn://10.0.0.236/trunk@115007 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 03:08:32 +00:00
dp%netscape.com
a5ce086c1e bug 125641 Adding id r=dougt sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@114823 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 22:59:58 +00:00
alecf%netscape.com
057eaef9e2 remove a bunch of dead code, and remove NS_COM from a bunch of concrete classes that weren't being used previously
r=jag, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@114820 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 22:57:47 +00:00
bryner%netscape.com
dab926fb61 Fixing a compiler warning (bug 125949). r=bzbarsky, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@114813 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 22:42:37 +00:00
mozilla.BenB%bucksch.org
a72534e093 125881: Has() must return true for existing properties (the key exists), which
have a 0 value.
r=dougt, sr=jband


git-svn-id: svn://10.0.0.236/trunk@114726 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-17 10:11:25 +00:00
dbaron%fas.harvard.edu
6f3d0f1b34 Speed up nsCRT::HashCode(const PRUnichar*) by renaming the version that does UCS-2 to UTF-8 conversion to nsCRT::HashCodeAsUTF8. r=jag sr=jst b=120363
git-svn-id: svn://10.0.0.236/trunk@114701 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 19:50:32 +00:00
dbaron%fas.harvard.edu
ac6b721449 Remove more no-longer-needed nsComponentManager::RegisterComponent calls. Remove remnants of NS_IMPL_IDS macro, associated with long-gone NS_DECLARE_ID. b=125782 r=dougt rs=jag
git-svn-id: svn://10.0.0.236/trunk@114693 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-16 16:18:13 +00:00
ducarroz%netscape.com
a4083ed36b Fix bustage (again).
git-svn-id: svn://10.0.0.236/trunk@114255 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 05:17:18 +00:00
ducarroz%netscape.com
ab1766e393 Fix bustage on Unix system.
git-svn-id: svn://10.0.0.236/trunk@114250 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 04:34:36 +00:00
ducarroz%netscape.com
8acba62b90 Fix for bug 100591. We need to replace illegal characters in file name before trying to use it during a file save. R=cavin, law, SR=alecf, mscott
git-svn-id: svn://10.0.0.236/trunk@114244 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 03:57:39 +00:00
dp%netscape.com
3e795945ae bug 123988 Optimizing timers out when there are no allocations held r=dougt,sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@114076 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 22:50:40 +00:00
cathleen%netscape.com
184587ade7 eliminate 24 callers to nsCRT::memmove to use memmove from libC instead. removed nsCRT::memove() bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113965 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 01:11:33 +00:00
racham%netscape.com
f17221e5ab Fixing bug 122309. Adding a new routine that can take a string and parse it on a delimiter to add elements to the nsCStringArray. r=dougt, sr=jag
git-svn-id: svn://10.0.0.236/trunk@113693 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 08:35:28 +00:00
cathleen%netscape.com
ec77313291 eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113659 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:41:13 +00:00
bryner%netscape.com
632ac8da85 Fixing some warnings in xpcom. Bug 118377, r=hwaara, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@113571 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 07:05:10 +00:00
cathleen%netscape.com
dd8ebc5bd1 eliminate nsCRT::zero() to use memset to zero instead, bug 118135, r=dp sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113183 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:55:57 +00:00
cathleen%netscape.com
3ae7a2346b eliminate nsCRT::memcmp and all callers to use memcmp instead, bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113144 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:30:32 +00:00
dougt%netscape.com
011f9b10e5 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@113143 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:22:13 +00:00
cathleen%netscape.com
3fcee4d2a1 remove memcpy function from nsCRT, eliminate 2 new nsCRT::memcpy callers
and fix up alighment problems from previous patch, bug 118135, sr=brenda r=dp


git-svn-id: svn://10.0.0.236/trunk@112913 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:04:45 +00:00
dp%netscape.com
e2ecc272e6 Adding nsRecyclingAllocator.h for mac export
git-svn-id: svn://10.0.0.236/trunk@112675 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 08:06:45 +00:00
dp%netscape.com
447c430e80 bug 118061 Enabling nsRecyclingAllocator r=dveditz sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112668 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 06:48:58 +00:00
dp%netscape.com
09f8fb49b8 bug 118061 First version of nsRecyclingAllocator r=dveditz sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112667 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 06:41:01 +00:00
jst%netscape.com
2337395ba4 Fixing part of bug 118933. Speeding up the global resolve hook in the DOM JS helpers by eliminating the use of nsHashtable and nsStringKey in favor of pldhash. Adding global HashString(const nsA[C]String&) functions that calculate a hash code from a nsA[C]String, code by dbaron@fas.harward.edu. Also checking in brendan@mozilla.org's fix for a type error in the jsdhash/pldhash API found while working on this. sr=brendan@mozilla.org, r=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112375 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 04:08:14 +00:00
blythe%netscape.com
fd1d92a93d proactive change to avoid MAC bustage from last checkin
git-svn-id: svn://10.0.0.236/trunk@112221 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:20:35 +00:00
blythe%netscape.com
8f002dba27 Fix bug 107270
Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112202 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:43:37 +00:00
dougt%netscape.com
31a6612b88 Null protecting hashing code. 96322. r=dp@netscape.com sr=alecf@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@112083 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:10:48 +00:00
cathleen%netscape.com
ea31156ed0 converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp
git-svn-id: svn://10.0.0.236/trunk@112013 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 03:18:55 +00:00
jband%netscape.com
c2d17c7692 trivial fix to allow freeing a variant array type that we do in fact create. rs=vidur
git-svn-id: svn://10.0.0.236/trunk@111889 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 23:55:32 +00:00
jdunn%netscape.com
01a246e76f AIX's new compiler, xlC5.x, doesn't allow the use of "friend" to declare
a function prototype.  So we have to decare the function and then
declare it a friend.  When Default arguments are used, they need to
be specified in the function prototype and NOT in the friend declaration.
# 43311
r=dbaron@fas.harvard.edu


git-svn-id: svn://10.0.0.236/trunk@111825 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 14:16:05 +00:00
jdunn%netscape.com
be8b031465 trying an AIX ifdef to see if this is our startup slowdown problem
a=waterson@netscape.com
# 112824


git-svn-id: svn://10.0.0.236/trunk@111358 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-04 15:03:43 +00:00
timeless%mac.com
344a6cf3f9 Bug 116793 Mismatched Allocator/Deallocator in nsSupportsIDImpl::ToString
r=waterson sr=jst


git-svn-id: svn://10.0.0.236/trunk@111330 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-03 23:47:55 +00:00
jdunn%netscape.com
77a48bf25c AIX requires a constructor for the nsPermanentAtom since this relies on
"new replacement"

r=dbaron@fas.harvard.edu
sr=shaver@mozilla.org
# 112824


git-svn-id: svn://10.0.0.236/trunk@111307 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-03 15:57:59 +00:00
seawood%netscape.com
03742b4f4f Moving variable declaration to beginning of code block for freebsd builds.
Bug #112987 r=cls sr=brendan


git-svn-id: svn://10.0.0.236/trunk@111192 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-31 09:18:16 +00:00
rjesup%wgate.com
bf2f3da926 Remove nsVoidArray:: from method defs
git-svn-id: svn://10.0.0.236/trunk@110952 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-21 02:48:02 +00:00