Граф коммитов

47 Коммитов

Автор SHA1 Сообщение Дата
Mats Palmgren 2093e63d6e Bug 911283 - Introduce nsTArray::SetLengthAndRetainStorage which unlike SetLength does not deallocate/reallocate the internal storage. Use it in NS_FillArray. r=bsmedberg 2013-09-08 02:05:02 +00:00
Boris Zbarsky e4fca1d362 Bug 618479 part 1. Clean up the nsTArray binary-insert code a little bit. r=jlebar,kinetik 2013-02-13 10:11:53 -05:00
Boris Zbarsky 6efc316628 Bug 819523 part 1. Make it possible to use the various-allocator nsTArrays interchangeably as long as you're working with const objects. r=jlebar 2012-12-18 20:16:05 -05:00
Daniel Holbert b57068badb Bug 803641: Fix signed/unsigned-comparison build warnings in TestTArray.cpp, and mark its directory as warning-free. r=jlebar 2012-10-19 13:26:50 -07:00
William Chen 1e6c1fa4b2 Bug 798065 - Fix integer underflow in nsTArray::LastIndexOf. r=cjones 2012-10-04 15:23:41 -07:00
Isaac Aggrey 481e7dfb0b Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Randell Jesup 65539ef89c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Ms2ger 1d18535516 Bug 780387 - Part a: Stop using PRPtrdiff; r=bsmedberg 2012-08-09 09:09:31 +02:00
Aryeh Gregor d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Cameron McCormack 525de357d7 Bug 771893 - Remove unused function from TestTArray.cpp. r=bsmedberg
--HG--
extra : rebase_source : 51e409bd2d6670a9b8cbdf750b1c1c15ba08ad8f
2012-07-20 04:50:46 +10:00
Geoff Lankow 5cefea8480 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Daniel Holbert 9cb879c9cc Bug 723809: Fix signed/unsigned build warning in TestTArray.cpp. r=jlebar 2012-02-03 01:18:58 -08:00
Justin Lebar 51a9d97275 Bug 719531 - Part 1: Add test that FallibleTArray returns false instead of crashing. r=bsmedberg
--HG--
extra : rebase_source : 171dd32b0d2e863fa623fe05b76fc2986db5f057
2012-01-26 12:51:34 -05:00
Atul Aggarwal 73c7f9d320 Bug 630290 - Fixing compiler warnings. r=cjones 2011-11-06 21:15:44 +05:30
Ehsan Akhgari 92064e6d3f Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden b5e57820bf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Jeff Walden d0532c3e95 Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail 2011-10-12 12:21:53 -07:00
Jeff Walden 0f30b277bf Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : 860a8271bf7e51cde358f2a4185c410de1fc2960
2011-10-10 22:50:08 -07:00
Michael Wu d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Justin Lebar 1489bf12ab Bug 687722 - Make swapping two nsAutoTArrays preserve their auto-ness when possible. r=roc 2011-09-22 11:22:20 -04:00
Ehsan Akhgari 523ebb7851 Bug 677661 - Remove nsTPtrArray and add a SafeElementAt(index_type) API to nsTArray when it's instantiated with a pointer type; r=sicking 2011-08-10 01:36:00 -04:00
Chris Jones 30bb6770cb Bug 565461: Implement nsTArray::operator==. r=bsmedberg 2010-05-22 14:35:41 -05:00
Michael Kohler 6c0f59f4a6 Bug 506041 Part 2: Correct misspellings in source code
r=timeless
2010-05-13 14:19:50 +02:00
Michael Wu 01e4c19b42 Bug 537339 - Add heap functions to nsTArray, r=roc 2010-05-05 10:21:23 -07:00
Daniel Holbert b5eb8254ec Bug 556559: Fix unsigned/signed comparison warnings in TestTArray.cpp. r=bsmedberg 2010-04-02 09:34:31 -07:00
Neil Rashbrook 342037afb9 Bug 543001 Make nsTArray::GreatestIndexLtEq easier to use r=bsmedberg 2010-02-20 15:26:12 +00:00
Andrew Sutherland d6ed9baeaa Bug 487551 - nsTArray.IndexOf may scan beyond array bounds for non-zero start argument. unit test that fails without patch, succeeds with patch. r=bsmedberg 2009-04-10 18:08:08 -07:00
Benjamin Smedberg 212b417b73 Bug 450137 - Add namespaces to multiple classes with the same name in xpcom/tests, to avoid automated tool confusion, r=dbaron 2008-08-18 12:45:38 -04:00
neil@parkwaycc.co.uk a369b229ee Bug 330101 nsTArray binary search for when array is sorted r=bsmedberg a=schrep 2008-02-21 01:43:15 -08:00
jwalden@mit.edu 6d7584839a 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
bzbarsky%mit.edu 75e2b326ac Fix some compiler bustage over here and eliminate compiler warnings by being
very clear that it's all unsigned.  No bug, r+sr=sicking
2006-11-04 05:14:55 +00:00
cvshook%sicking.cc 131b924b08 Back out previous checkin, ENABLE_TESTS is not available inside code 2006-11-03 00:52:40 +00:00
cvshook%sicking.cc d6695ccad2 Better way of fixing previous TestTArray bustage that allows testing nsAutoTArray even for non-debug builds. 2006-11-02 22:42:34 +00:00
cvshook%sicking.cc 26afccc177 Disable test_autoarray in non-debug builds since it relies on debug-only code 2006-11-02 20:26:05 +00:00
cvshook%sicking.cc 480afae792 Add nsAutoTArray and nsAutoTPtrArray. b=356299 r/sr=darin 2006-11-02 19:33:10 +00:00
cvshook%sicking.cc b31519be79 Bug 355754: Add nsTPtrArray. r=darin sr=bz 2006-10-17 21:40:07 +00:00
darin%meer.net f1141fd8e2 fixes bug 325331 "Make nsTArray a bit more useful" r=bsmedberg (relanding) 2006-02-08 01:23:26 +00:00
darin%meer.net effdd39acc reverting last change since it makes vc6 unhappy. 2006-02-04 01:21:54 +00:00
darin%meer.net 7293ef5468 fixes bug 325331 "Make nsTArray a bit more useful" r=bsmedberg 2006-02-03 21:41:31 +00:00
darin%meer.net c7c435dffa fixes bug 324981 "nsTArray crash in RemoveElement" r=bsmedberg 2006-01-30 17:16:50 +00:00
darin%meer.net 3f64b82bb8 fixes bug 321997 "Minimize memory footprint of nsTArray object" r=sicking,bsmedberg 2006-01-10 20:38:54 +00:00
bsmedberg%covad.net 642bc5b68e Fix bug 319068 bustage. 2005-12-13 18:27:04 +00:00
darin%meer.net 83d3a41589 fixes bug 319068 "nsTArray::IndexOf and friends should support an argument of another type" r=bsmedberg 2005-12-12 21:28:29 +00:00
bryner%brianryner.com 767508e177 Fix crashes when dealing with 0-sized arrays (bug 317959). Patch by darin, r+sr=me. 2005-11-28 20:27:42 +00:00
darin%meer.net b69c78251e fixes bug 316782 "Provide templatized array class" r=brettw,bsmedberg sr=bryner 2005-11-23 19:44:16 +00:00