56 Commits

Author SHA1 Message Date
benjamin%smedbergs.us
3968e1b42d Back out bug 412320 and various followups because the perf impact was minimal and the code is more complicated
git-svn-id: svn://10.0.0.236/trunk@246221 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-21 20:39:23 +00:00
benjamin%smedbergs.us
cc4193bab8 Bug 412320 - Try code-generation for QI impls, r=roc+luser
git-svn-id: svn://10.0.0.236/trunk@243992 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-25 17:14:53 +00:00
jwalden%mit.edu
dda6ff3c99 Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-08 07:08:56 +00:00
smontagu%smontagu.org
51eda83633 Allow property values to have (escaped) trailing and leading whitespace. Bug 365345, r+sr=darin. Recheckin including fix for bug 378839, r=bsmedberg, sr=biesi
git-svn-id: svn://10.0.0.236/trunk@225228 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-29 17:51:38 +00:00
smontagu%smontagu.org
ca062bd6b8 Backout fix for bug 365345 due to regressions. a=bsmedberg on IRC
git-svn-id: svn://10.0.0.236/trunk@225103 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-26 18:56:30 +00:00
smontagu%smontagu.org
148de41ea7 Allow property values to have (escaped) trailing and leading whitespace. Bug 365345, r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@225008 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-25 14:48:12 +00:00
dbaron%dbaron.org
30f83072c5 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@222462 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-27 15:33:45 +00:00
benjamin%smedbergs.us
5b4d54f739 Bug 347183 - frozen-linkage access to null/singleton/union/array enumerators, r=darin
git-svn-id: svn://10.0.0.236/trunk@206904 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-08 18:18:50 +00:00
benjamin%smedbergs.us
e5f238eaac Bug 339144 - Expose a custom factory type for simple nsIUnicharInputStream instances, r=darin
git-svn-id: svn://10.0.0.236/trunk@203371 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-21 16:28:51 +00:00
cbiesinger%web.de
6322c04952 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin


git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
dougt%meer.net
1dddcf97d5 Fixes mem leak in nsPersistentProperties::Enumerate. Bug 305208. r=dougt, sr=bsmedberg, patch=chpe@gnome.org
git-svn-id: svn://10.0.0.236/trunk@184783 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-16 21:27:11 +00:00
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
pkw%us.ibm.com
b44066e9c0 Bug 219493 - nsPersistentProperties doesn't handle multi-line properties
files correctly. This is a better patch than the original one.
r=darin@meer.net, sr=alecf@flett.org


git-svn-id: svn://10.0.0.236/trunk@147297 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-25 16:28:06 +00:00
pkw%us.ibm.com
c61e4e8d19 Bug 219493 - nsPersistentProperties doesn't handle multi-line properties
files correctly. Checking in the first patch in this bug to ensure there
are no major regressions.
r=darin@meer.net, sr=alecf@flett.org


git-svn-id: svn://10.0.0.236/trunk@147113 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-22 16:28:55 +00:00
brendan%mozilla.org
95220b5330 Add shared DHashTableOps for [const] char *key use-cases, clean up dhash API abusages (214839, r=dougt, sr=dbaron).
git-svn-id: svn://10.0.0.236/trunk@145624 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-05 20:09:21 +00:00
timeless%mozdev.org
0b7361d0c0 Bug 211277 nsPersistentProperties::nsPersistentProperties doesn't check the return value of PL_DHashTableInit
r=alecf sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@144839 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-14 21:07:31 +00:00
alecf%netscape.com
8d4f1935a6 fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@140696 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 15:10:37 +00:00
alecf%netscape.com
326b7425d7 fix for bug 191416 - clean up nsIUnicharInputStream to make it more like nsIInputStream:
- hide Fill() (or remove it where not necessary)
- add ReadSegments() so that we can do reads without copying
- remove the extra offset parameter to Read()
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@139039 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:54:51 +00:00
alecf%netscape.com
109bd95f6a back out 121341 and all subsequent regression fixes - there are still regressions and this just isn't worth being broken for 1.3.. I'll check this back in when 1.4a comes along and we have more time in the milestone to catch regressions.
a=dbaron


git-svn-id: svn://10.0.0.236/trunk@137358 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-04 05:43:57 +00:00
mkaply%us.ibm.com
0da687198c #190732
r=mkaply, sr=alecf, a=asa
From ccarlen - check parser state at end of file


git-svn-id: svn://10.0.0.236/trunk@137321 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-03 14:59:39 +00:00
alecf%netscape.com
59aecfa117 fix for bug 190283 - save unicode values stored like \u4ea2 after decoding them.
r=jst, sr=bzbarsky, a=asa


git-svn-id: svn://10.0.0.236/trunk@136964 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-25 22:13:48 +00:00
sspitzer%netscape.com
ff4e6ac61a fix for #190215. multi-line properties in string bundles don't work on win32.
this isn't a blocker, but it's bad enough to take for the respin.
patch by alecf.  r/sr=sspitzer, a=kyle


git-svn-id: svn://10.0.0.236/trunk@136942 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-24 21:47:53 +00:00
alecf%netscape.com
a7f53a2f6d fix for bug 190256 - string bundles broken on escaped characters, and when keys cross buffer boundaries
patch by bzbarsky, r=alecf, sr=jst, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@136887 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-23 15:48:19 +00:00
alecf%netscape.com
8706e11747 oops, warnings fixes from previous checkin
git-svn-id: svn://10.0.0.236/trunk@136817 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 05:46:07 +00:00
alecf%netscape.com
ffa5897235 fix for bug 121341 - make nsPersistentProperties::Load sane. don't make a virtual call for every character read in from the .properties file!
git-svn-id: svn://10.0.0.236/trunk@136813 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 05:15:40 +00:00
dbaron%dbaron.org
6ed727cbe8 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag
git-svn-id: svn://10.0.0.236/trunk@136028 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-08 23:19:20 +00:00
alecf%netscape.com
71b2ee7677 fix for bug 173291 - use nsISimpleEnumerator for nsHashtableEnumerator, rather than nsIEnumerator
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@133780 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-13 22:40:10 +00:00
dougt%netscape.com
e289284076 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com
git-svn-id: svn://10.0.0.236/trunk@129050 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-07 17:13:19 +00:00
alecf%netscape.com
fea695e47d fix for bug 164575 - clean nsIPersistentProperties interface to reduce UTF8/UCS2 conversions
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@128567 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-30 17:13:34 +00:00
dougt%netscape.com
0f22b205af Freezes the nsIProperties interface. 162114. r=ccarlen, sr=alecf. Freezes the mozIJSSubScriptLoader interface. 157136. r=rginda, sr=alec.
git-svn-id: svn://10.0.0.236/trunk@128150 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-26 20:36:44 +00:00
alecf%netscape.com
1a0216d3f1 ack! fix check of entries to use PL_DHASH_ENTRY_IS_FREE() from my previous checkin to prevent tree closure tomorrow!
git-svn-id: svn://10.0.0.236/trunk@124074 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 03:43:43 +00:00
alecf%netscape.com
b39a907034 fix for bug 153754 - make nsPersistentProperties (and thus string bundles) use PLDHash, saving some 1100+ allocations at startup.
r=dougt, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@124062 18797224-902f-48f8-a5cc-f745e15eee43
2002-06-26 01:33:07 +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
jaggernaut%netscape.com
436d43f211 Bug 104158: Use NS_LITERAL_STRING instead of XXXWithConversion("..."). r=bryner, rs=alecf
git-svn-id: svn://10.0.0.236/trunk@110579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-16 11:58:03 +00:00
alecf%netscape.com
728ab648ca fix for bug 110531, r=dougt, jag, sr=darin - moving ConverterInputStream into uconv, and changing the one in XPCOM into an UTF8-only converter
git-svn-id: svn://10.0.0.236/trunk@109591 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:10:43 +00:00
dbaron%fas.harvard.edu
13b5500ba3 Ensure that string literals are used as |const char*| rather than |char*|. r=jag sr=brendan b=107052
git-svn-id: svn://10.0.0.236/trunk@107583 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:24:10 +00:00
bzbarsky%mit.edu
789470f88f Make nsICharsetAlias::GetPreferred() and nsICharsetAlias::Equals() take
nsAStrings instead of nsStrings.  Bug 102096, r=ftang,jag. sr=shaver


git-svn-id: svn://10.0.0.236/trunk@104241 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-30 04:01:15 +00:00
jaggernaut%netscape.com
51e0dc7a6c Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
jaggernaut%netscape.com
51b17b5bf0 Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things.

nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-)


git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-30 11:02:25 +00:00
rbs%maths.uq.edu.au
6070a2bca3 Remove a gratuitous redundant test. b=67438
git-svn-id: svn://10.0.0.236/trunk@95095 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 03:40:29 +00:00
tao%netscape.com
3b1dbd114b 51327: mozilla doesn't parse java properties files correctly
patch from erik, r=tao,sr=alecf


git-svn-id: svn://10.0.0.236/trunk@83687 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-15 00:52:09 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +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
fbe26a070a Correct error code.
git-svn-id: svn://10.0.0.236/trunk@76652 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-18 20:54:28 +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
ftang%netscape.com
7b0b6650b9 fix bug 21418. change the converter to UTF-8 and handle the \uxxxx and \r \n \t in the
lexical level (scanner) r=tao


git-svn-id: svn://10.0.0.236/trunk@74011 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:14:59 +00:00
ruslan%netscape.com
bf345da183 Make string properties implement threadsafe_isupports
git-svn-id: svn://10.0.0.236/trunk@70933 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 20:59:04 +00:00
dp%netscape.com
135af3793e Standalone xpcom.
git-svn-id: svn://10.0.0.236/trunk@69596 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-13 23:35:55 +00:00