Commit Graph

57 Commits

Author SHA1 Message Date
Ehsan Akhgari
6c1914b71f Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (XPCOM parts); r=bsmedberg 2012-06-05 19:51:58 -04:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Makoto Kato
ec11c4f1c9 Bug 712198 - Remove NS_WIN32, NS_UNIX and NS_OS2. r=khuey 2011-12-21 14:09:17 +09:00
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Dominic Fandrey
532ec73933 Bug 645398 - Substitute PR_(MAX|MIN|ABS|ROUNDUP) macro calls; r=roc 2011-06-02 14:56:50 +02:00
cc3d66dd4d Reject properties files with encoding errors. Bug 397093, r+sr=bsmedberg, a1.9=damons 2008-03-13 12:01:53 -07:00
98de634631 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. 2007-07-08 00:08:04 -07:00
benjamin@smedbergs.us
2a75d19e6c Bug 339144 - Expose a custom factory type for simple nsIUnicharInputStream instances, r=darin 2006-07-21 16:28:51 +00:00
timeless@mozdev.org
21af79fe88 Bug 106386 Correct misspellings in source code
patch by unknown@simplemachines.org r=timeless rs=brendan
2005-11-25 21:57:13 +00:00
smontagu@smontagu.org
15976f9d0d Take surrogate pairs into account in UTF8InputStream::CountValidUTF8Bytes. Bug 299111, r=darin, sr=dbaron 2005-08-22 10:50:49 +00:00
cbiesinger@web.de
db10180102 Bug 295047 Want unicode stream readers/writers: Makes nsIUnicharInputStream and
nsIConverterInputStream scriptable, and adds nsIUnicharOutputStream and
nsIConverterOutputStream (together with implementations).
r=jshin sr=darin a=chofmann
2005-06-24 19:44:50 +00:00
bzbarsky@mit.edu
9448781884 Make it possible to use the string input stream without heap-allocating a
string.  Bug 263973, r=darin, sr=dbaron
2004-10-27 02:19:43 +00:00
gerv@gerv.net
c0cd46fc51 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 14:21:17 +00:00
bryner@brianryner.com
3736b6e206 Bug 229875 - eliminate unnecssary public/virtual destructors. This patch changes all refcounted classes under xpcom/, which aren't inherited from or used on the stack, to have private, nonvirtual destructors. r=dougt, sr=dbaron. 2004-01-15 06:14:18 +00:00
bzbarsky@mit.edu
9ca5b7dc65 Read at EOF should not throw. Bug 224093-ish, r=darin, sr=dbaron 2003-11-18 15:06:03 +00:00
mkaply@us.ibm.com
07b419fe78 rs=leaf
Remove XP_OS2_VACPP from the tree
2003-07-22 18:38:01 +00:00
jshin@mailaps.org
533fbbe365 bug 183156 : replace UCS2 in function/method names with UTF16 and update the
document accordingly. r=jag, sr=alecf
2003-06-23 04:30:57 +00:00
dbaron@dbaron.org
bd0cd0dfc7 Add StringBeginsWith, StringEndsWith, and UTF8ToNewUnicode. Move UTF8 handling utilities to separate file. b=131293 r=jst sr=alecf,jag a=asa b=131293 2003-05-21 22:20:27 +00:00
alecf@netscape.com
462c8a3080 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
2003-03-06 19:54:51 +00:00
dbaron@dbaron.org
8c37890522 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 23:19:20 +00:00
dougt@netscape.com
b5253140df Crash OOM @ startup. r=darin, sr=alec, bug 175663 2002-11-13 21:23:58 +00:00
dougt@netscape.com
46ce738546 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
cathleen@netscape.com
bff663ff77 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
2002-01-26 00:04:45 +00:00
alecf@netscape.com
21609fd847 fix for bug 121627 - UTF8ConverterStream should not allocate - now that we've exposed ConvertUTF8toUCS2,
use it to do a conversion into the existing unichar buffer
r=dbaron, sr=jst
2002-01-24 23:53:53 +00:00
cathleen@netscape.com
73e0bc3ed7 converted 271 references to nsCRT::memcpy to memcpy, bug 118135 r=dp 2002-01-12 03:18:55 +00:00
alecf@netscape.com
fc237b4aba fix take 2 on bug 114134, crashes when reading utf8 strings from dtds/etc
r=dbaron, sr=jag
when multi-byte characters crossed a buffer boundary, we weren't correctly backing up and instead tried to decode the half-loaded utf8 character... in addition, our new "remainder" count was completely broken - we were adding the old remainder to the new remainder, when in fact we had just consumed the old remainder
2002-01-12 02:38:08 +00:00
alecf@netscape.com
5f8494bace dammit why does this break linux?!
backing out my last checkin
2002-01-11 22:44:30 +00:00
alecf@netscape.com
20168c2c3e fix for bug 114134 - crash when localizing some strings
when multi-byte characters crossed a buffer boundary, we weren't correctly backing up and instead tried to decode the half-loaded utf8 character... in addition, our new "remainder" count was completely broken - we were adding the old remainder to the new remainder, when in fact we had just consumed the old remainder
r=dbaron, sr=jag
2002-01-11 20:34:11 +00:00
dbaron@fas.harvard.edu
6abfc657e0 Simplify loop in CountValidUTF8Bytes and fix UMR. b=110531 r=jag sr=alecf 2001-12-05 03:49:13 +00:00
dbaron@fas.harvard.edu
5308b9d329 Fix orange by exiting loop when bytes hits aMaxBytes rather than waiting for it to get farther. 2001-12-04 04:22:44 +00:00
alecf@netscape.com
f49275bd79 fix for bug 110531, r=dougt, jag, sr=darin - moving ConverterInputStream into uconv, and changing the one in XPCOM into an UTF8-only converter 2001-12-04 01:10:43 +00:00
gerv@gerv.net
58d409fba9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089. 2001-09-28 20:14:13 +00:00
jaggernaut@netscape.com
c2bcad0b73 Bug 86734: Remove NS_WITH_SERVICE. r=dbaron, rs=scc, a=asa 2001-07-25 07:54:28 +00:00
jaggernaut@netscape.com
baba14c5c8 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 :-)
2001-06-30 11:02:25 +00:00
dp@netscape.com
d987947dc7 Standalone xpcom. 2000-05-14 22:46:24 +00:00
scc@netscape.com
a7f68d08ca fix bug #36316 2000-05-12 23:09:28 +00:00
scc@netscape.com
f9201c7d45 fix bug #36311 2000-05-12 23:05:11 +00:00
mkaply@us.ibm.com
25cfcb8e6a # 34082
r= dougt@netscape.com
OS/2 bring up continues - Adding PR_CALLBACKs for VisualAge Compiler
2000-05-02 22:38:04 +00:00
warren@netscape.com
00296f39f9 Fixed AddRef/Release to use NS_ADDREF/NS_RELEASE. 2000-04-13 09:20:58 +00:00
scc@netscape.com
0cbd1727d3 making string conversions explicit 2000-04-01 00:39:02 +00:00
dmose@mozilla.org
20621227af updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
warren@netscape.com
0eb6897d67 Cleaned up, using NS_WITH_SERVICE 1999-09-26 10:05:06 +00:00
cata@netscape.com
be98023c60 Fixing build warnings. Step 2: switch to use new method from the interface. 1999-09-01 22:50:50 +00:00
scc@netscape.com
6f62a47cac got rid of |NS_IMPL_ISUPPORTS|, where possible, in favor of |NS_IMPL_ISUPPORTS0| or ...1 according to the specific use; got rid of |NS_DEFINE_IID| where possible, or where it should have been |NS_DEFINE_CID|; fixed bad implementations of |QueryInterface|, where possible. Built, tested apprunner, reviewed the changes with hyatt (since he was around to look) before checking in 1999-08-23 10:14:16 +00:00
waterson@netscape.com
02baf7c94e CID not IID! 1999-07-22 07:33:24 +00:00
scc@netscape.com
e2ea20873d explicitly define kCharsetConversionManagerCID only in files that need it ... move to canonical scheme for defining and using IIDs and CIDs 1999-07-22 05:25:17 +00:00
kipp@netscape.com
c961abe092 Removed a compiler warning 1999-07-16 17:40:39 +00:00
dp@netscape.com
6dc8a899c6 Landing xpcom20/21 branch. 1999-05-26 01:38:36 +00:00
bruce@cybersight.com
f815337eaf Old patches for non-virtual vs virtual destructors (approved by Troy) 1999-04-25 04:57:38 +00:00
brade@netscape.com
7b9a9ad3ae add prototype to reduce warnings on Macintosh compiler 1999-02-19 16:13:47 +00:00