Bug 693469 - Use mozilla::ArrayLength and mozilla::ArrayEnd in preference to JS_ARRAY_LENGTH whenever possible. r=cjones

This commit is contained in:
Jeff Walden
2011-10-10 23:00:28 -07:00
parent 7d613942b0
commit cb28ecfc4b
30 changed files with 180 additions and 95 deletions

View File

@@ -56,6 +56,9 @@
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "mozilla/Util.h"
#include "jstypes.h"
#include "jsstdint.h"
#include "jsprf.h"
@@ -79,6 +82,7 @@
#include "vm/Stack-inl.h"
using namespace mozilla;
using namespace js;
using namespace js::types;
@@ -1038,7 +1042,7 @@ date_parseString(JSLinearString *str, jsdouble *result, JSContext *cx)
}
if (i <= st + 1)
goto syntax;
for (k = JS_ARRAY_LENGTH(wtb); --k >= 0;)
for (k = ArrayLength(wtb); --k >= 0;)
if (date_regionMatches(wtb[k], 0, s, st, i-st, 1)) {
int action = ttb[k];
if (action != 0) {