From daace8aae1e051f279fc8de635456c83b9f0bfc8 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Mon, 19 Jun 2006 23:38:02 +0000 Subject: [PATCH] White space police state attack. git-svn-id: svn://10.0.0.236/trunk@200371 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/src/jsarray.c | 2 +- mozilla/js/src/jscntxt.h | 4 ++-- mozilla/js/src/jsdbgapi.c | 4 ++-- mozilla/js/src/jsemit.c | 2 +- mozilla/js/src/jsemit.h | 2 +- mozilla/js/src/jsexn.h | 2 +- mozilla/js/src/jsiter.c | 2 +- mozilla/js/src/jsopcode.c | 2 +- mozilla/js/src/jsparse.c | 4 ++-- mozilla/js/src/jsprf.c | 12 ++++++------ mozilla/js/src/jsutil.c | 2 +- mozilla/js/src/jsxml.h | 2 +- 12 files changed, 20 insertions(+), 20 deletions(-) diff --git a/mozilla/js/src/jsarray.c b/mozilla/js/src/jsarray.c index 73bd6acf594..55bb0db7fc7 100644 --- a/mozilla/js/src/jsarray.c +++ b/mozilla/js/src/jsarray.c @@ -283,7 +283,7 @@ JSBool js_IsArrayLike(JSContext *cx, JSObject *obj, JSBool *answerp, jsuint *lengthp) { JSClass *clasp; - + clasp = OBJ_GET_CLASS(cx, obj); *answerp = (clasp == &js_ArgumentsClass || clasp == &js_ArrayClass); if (!*answerp) { diff --git a/mozilla/js/src/jscntxt.h b/mozilla/js/src/jscntxt.h index 0372a797a1a..5d771731dc3 100644 --- a/mozilla/js/src/jscntxt.h +++ b/mozilla/js/src/jscntxt.h @@ -374,9 +374,9 @@ struct JSRuntime { * referenced by cx->fp->rval, or set to a jsid (ITERKEY) result of a native * iterator's it.next() call (where the return value of it.next() is the next * value in the iteration). - * + * * The ITERKEY case is just an optimization for native iterators, as general - * iterators can return an array of length 2 to return a [key, value] pair. + * iterators can return an array of length 2 to return a [key, value] pair. */ enum { JS_RVAL2_CLEAR, JS_RVAL2_VALUE, JS_RVAL2_ITERKEY }; #endif diff --git a/mozilla/js/src/jsdbgapi.c b/mozilla/js/src/jsdbgapi.c index 6bc5c7888e1..0b9fceac0a8 100644 --- a/mozilla/js/src/jsdbgapi.c +++ b/mozilla/js/src/jsdbgapi.c @@ -1300,7 +1300,7 @@ JS_GetScriptFilenameFlags(JSScript *script) JS_ASSERT(script); if (!script->filename) return JSFILENAME_NULL; - return js_GetScriptFilenameFlags(script->filename); + return js_GetScriptFilenameFlags(script->filename); } JS_PUBLIC_API(JSBool) @@ -1321,7 +1321,7 @@ JS_PUBLIC_API(void) JS_FlagSystemObject(JSContext *cx, JSObject *obj) { uint8 *flagp; - + flagp = js_GetGCThingFlags(obj); *flagp |= GCF_SYSTEM; } diff --git a/mozilla/js/src/jsemit.c b/mozilla/js/src/jsemit.c index daf1945d7be..f13b7959832 100644 --- a/mozilla/js/src/jsemit.c +++ b/mozilla/js/src/jsemit.c @@ -1924,7 +1924,7 @@ BindNameToSlot(JSContext *cx, JSTreeContext *tc, JSParseNode *pn) clasp = OBJ_GET_CLASS(cx, obj); if (clasp != &js_FunctionClass && clasp != &js_CallClass) { /* Check for an eval or debugger frame. */ - if (fp->flags & JSFRAME_SPECIAL) + if (fp->flags & JSFRAME_SPECIAL) return JS_TRUE; /* diff --git a/mozilla/js/src/jsemit.h b/mozilla/js/src/jsemit.h index af33a253a3a..f7f8fe3df44 100644 --- a/mozilla/js/src/jsemit.h +++ b/mozilla/js/src/jsemit.h @@ -67,7 +67,7 @@ typedef enum JSStmtType { STMT_ELSE = 3, /* else clause of if statement */ STMT_SWITCH = 4, /* switch statement */ STMT_WITH = 5, /* with statement */ - STMT_BLOCK_SCOPE = 6, /* let block/expr or array comprehension */ + STMT_BLOCK_SCOPE = 6, /* let block/expr or array comprehension */ STMT_CATCH = 7, /* catch block */ STMT_TRY = 8, /* try block */ STMT_FINALLY = 9, /* finally block */ diff --git a/mozilla/js/src/jsexn.h b/mozilla/js/src/jsexn.h index 9920b4e8789..58cb984d4c7 100644 --- a/mozilla/js/src/jsexn.h +++ b/mozilla/js/src/jsexn.h @@ -87,7 +87,7 @@ js_ReportUncaughtException(JSContext *cx); extern JSErrorReport * js_ErrorFromException(JSContext *cx, jsval exn); -extern const JSErrorFormatString* +extern const JSErrorFormatString * js_GetLocalizedErrorMessage(JSContext* cx, void *userRef, const char *locale, const uintN errorNumber); diff --git a/mozilla/js/src/jsiter.c b/mozilla/js/src/jsiter.c index 2c13d298a44..30209793b41 100644 --- a/mozilla/js/src/jsiter.c +++ b/mozilla/js/src/jsiter.c @@ -141,7 +141,7 @@ NewKeyValuePair(JSContext *cx, jsid key, jsval val, jsval *rval) { jsval vec[2]; JSObject *aobj; - + vec[0] = ID_TO_VALUE(key); vec[1] = val; aobj = js_NewArrayObject(cx, 2, vec); diff --git a/mozilla/js/src/jsopcode.c b/mozilla/js/src/jsopcode.c index f371a932966..6e122d40e18 100644 --- a/mozilla/js/src/jsopcode.c +++ b/mozilla/js/src/jsopcode.c @@ -1467,7 +1467,7 @@ Decompile(SprintStack *ss, jsbytecode *pc, intN nb) case JSOP_LEAVEBLOCK: { uintN top, depth; - + sn = js_GetSrcNote(jp->script, pc); todo = -2; if (sn && SN_TYPE(sn) == SRC_HIDDEN) diff --git a/mozilla/js/src/jsparse.c b/mozilla/js/src/jsparse.c index b7b44cd3d96..6589ab1c1f2 100644 --- a/mozilla/js/src/jsparse.c +++ b/mozilla/js/src/jsparse.c @@ -4084,7 +4084,7 @@ PrimaryExpr(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc, /* * Create a name node with op JSOP_NAME. We can't set op - * JSOP_GETLOCAL here, because we don't yet know the block + * JSOP_GETLOCAL here, because we don't yet know the block * depth in the operand stack frame. The code generator * computes that, and it tries to bind all names to slots, * so we must let it do this optimization. @@ -4187,7 +4187,7 @@ PrimaryExpr(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc, return NULL; pn3->pn_atom = CURRENT_TOKEN(ts).t_atom; pn3->pn_expr = NULL; - + /* We have to fake a 'function' token here. */ CURRENT_TOKEN(ts).t_op = JSOP_NOP; CURRENT_TOKEN(ts).type = TOK_FUNCTION; diff --git a/mozilla/js/src/jsprf.c b/mozilla/js/src/jsprf.c index ba7c0f03b4e..416c16c82c7 100644 --- a/mozilla/js/src/jsprf.c +++ b/mozilla/js/src/jsprf.c @@ -402,9 +402,9 @@ static int cvt_ws(SprintfState *ss, const jschar *ws, int width, int prec, int flags) { int result; - /* - * Supply NULL as the JSContext; errors are not reported, - * and malloc() is used to allocate the buffer buffer. + /* + * Supply NULL as the JSContext; errors are not reported, + * and malloc() is used to allocate the buffer buffer. */ if (ws) { int slen = js_strlen(ws); @@ -997,9 +997,9 @@ static int dosprintf(SprintfState *ss, const char *fmt, va_list ap) case 's': if(type == TYPE_INT16) { - /* - * This would do a simple string/byte conversion - * if JS_C_STRINGS_ARE_UTF8 is not defined. + /* + * This would do a simple string/byte conversion + * if JS_C_STRINGS_ARE_UTF8 is not defined. */ u.ws = va_arg(ap, const jschar*); rv = cvt_ws(ss, u.ws, width, prec, flags); diff --git a/mozilla/js/src/jsutil.c b/mozilla/js/src/jsutil.c index 3582a7f0514..89be658cf45 100644 --- a/mozilla/js/src/jsutil.c +++ b/mozilla/js/src/jsutil.c @@ -172,7 +172,7 @@ JS_Backtrace(int skip) void **bp, **bpdown; /* Stack walking code adapted from Kipp's "leaky". */ -#if defined(__i386) +#if defined(__i386) __asm__( "movl %%ebp, %0" : "=g"(bp)); #elif defined(__x86_64__) __asm__( "movq %%rbp, %0" : "=g"(bp)); diff --git a/mozilla/js/src/jsxml.h b/mozilla/js/src/jsxml.h index 3b13bd751c0..0be26d03cc0 100644 --- a/mozilla/js/src/jsxml.h +++ b/mozilla/js/src/jsxml.h @@ -130,7 +130,7 @@ struct JSXMLArrayCursor { /* * NB: don't reorder this enum without changing all array initializers that * depend on it in jsxml.c. - */ + */ typedef enum JSXMLClass { JSXML_CLASS_LIST, JSXML_CLASS_ELEMENT,