зеркало из https://github.com/mozilla/gecko-dev.git
Bug 883696 (part 4) - Include full paths in #include statements in the rest of js/src/ and js/public/. r=luke.
This commit is contained in:
Родитель
9fed70182c
Коммит
385e5fa1b0
|
@ -7,7 +7,7 @@
|
|||
#ifndef js_GCAPI_h
|
||||
#define js_GCAPI_h
|
||||
|
||||
#include "HeapAPI.h"
|
||||
#include "js/HeapAPI.h"
|
||||
|
||||
namespace JS {
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
#include "mozilla/MemoryReporting.h"
|
||||
#include "mozilla/TypeTraits.h"
|
||||
|
||||
#include "TemplateLib.h"
|
||||
#include "Utility.h"
|
||||
#include "js/TemplateLib.h"
|
||||
#include "js/Utility.h"
|
||||
|
||||
/* Silence dire "bugs in previous versions of MSVC have been fixed" warnings */
|
||||
#ifdef _MSC_VER
|
||||
|
|
|
@ -790,7 +790,7 @@ GetABICode(JSObject* obj)
|
|||
JSErrorFormatString ErrorFormatString[CTYPESERR_LIMIT] = {
|
||||
#define MSG_DEF(name, number, count, exception, format) \
|
||||
{ format, count, exception } ,
|
||||
#include "ctypes.msg"
|
||||
#include "ctypes/ctypes.msg"
|
||||
#undef MSG_DEF
|
||||
};
|
||||
|
||||
|
@ -1205,7 +1205,7 @@ InitTypeClasses(JSContext* cx, HandleObject parent)
|
|||
INT_TO_JSVAL(ffiType.alignment), &ffiType)); \
|
||||
if (!typeObj_##name) \
|
||||
return false;
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
|
||||
// Alias 'ctypes.unsigned' as 'ctypes.unsigned_int', since they represent
|
||||
// the same type in C.
|
||||
|
@ -1592,7 +1592,7 @@ jsvalToInteger(JSContext* cx, jsval val, IntegerType* result)
|
|||
*result = IntegerType(*static_cast<fromType*>(data)); \
|
||||
return true;
|
||||
#define DEFINE_WRAPPED_INT_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
case TYPE_void_t:
|
||||
case TYPE_bool:
|
||||
case TYPE_float:
|
||||
|
@ -1682,7 +1682,7 @@ jsvalToFloat(JSContext *cx, jsval val, FloatType* result)
|
|||
return true;
|
||||
#define DEFINE_INT_TYPE(x, y, z) DEFINE_FLOAT_TYPE(x, y, z)
|
||||
#define DEFINE_WRAPPED_INT_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
case TYPE_void_t:
|
||||
case TYPE_bool:
|
||||
case TYPE_char:
|
||||
|
@ -2101,7 +2101,7 @@ ConvertToJS(JSContext* cx,
|
|||
/* use, if any. */ \
|
||||
*result = INT_TO_JSVAL(*static_cast<type*>(data)); \
|
||||
break;
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
case TYPE_jschar: {
|
||||
// Convert the jschar to a 1-character string.
|
||||
JSString* str = JS_NewUCStringCopyN(cx, static_cast<jschar*>(data), 1);
|
||||
|
@ -2287,7 +2287,7 @@ ImplicitConvert(JSContext* cx,
|
|||
*static_cast<type*>(buffer) = result; \
|
||||
break; \
|
||||
}
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
case TYPE_pointer: {
|
||||
if (JSVAL_IS_NULL(val)) {
|
||||
// Convert to a null pointer.
|
||||
|
@ -2622,7 +2622,7 @@ ExplicitConvert(JSContext* cx, HandleValue val, HandleObject targetType, void* b
|
|||
#define DEFINE_WRAPPED_INT_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#define DEFINE_CHAR_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#define DEFINE_JSCHAR_TYPE(x, y, z) DEFINE_CHAR_TYPE(x, y, z)
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
case TYPE_pointer: {
|
||||
// Convert a number, Int64 object, or UInt64 object to a pointer.
|
||||
uintptr_t result;
|
||||
|
@ -2778,7 +2778,7 @@ BuildTypeSource(JSContext* cx,
|
|||
case TYPE_void_t:
|
||||
#define DEFINE_TYPE(name, type, ffiType) \
|
||||
case TYPE_##name:
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
{
|
||||
AppendString(result, "ctypes.");
|
||||
JSString* nameStr = CType::GetName(cx, typeObj);
|
||||
|
@ -2963,7 +2963,7 @@ BuildDataSource(JSContext* cx,
|
|||
/* Serialize as an integer. */ \
|
||||
IntegerToString(*static_cast<type*>(data), 10, result); \
|
||||
break;
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
case TYPE_jschar: {
|
||||
// Serialize as a 1-character JS string.
|
||||
JSString* str = JS_NewUCStringCopyN(cx, static_cast<jschar*>(data), 1);
|
||||
|
@ -5858,7 +5858,7 @@ FunctionType::Call(JSContext* cx,
|
|||
#define DEFINE_BOOL_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#define DEFINE_CHAR_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#define DEFINE_JSCHAR_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -6150,7 +6150,7 @@ CClosure::ClosureStub(ffi_cif* cif, void* result, void** args, void* userData)
|
|||
#define DEFINE_BOOL_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#define DEFINE_CHAR_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#define DEFINE_JSCHAR_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
rvSize = Align(rvSize, sizeof(ffi_arg));
|
||||
break;
|
||||
default:
|
||||
|
@ -6238,7 +6238,7 @@ CClosure::ClosureStub(ffi_cif* cif, void* result, void** args, void* userData)
|
|||
#define DEFINE_BOOL_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#define DEFINE_CHAR_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#define DEFINE_JSCHAR_TYPE(x, y, z) DEFINE_INT_TYPE(x, y, z)
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -178,7 +178,7 @@ ASSERT_OK(JSBool ok)
|
|||
enum ErrorNum {
|
||||
#define MSG_DEF(name, number, count, exception, format) \
|
||||
name = number,
|
||||
#include "ctypes.msg"
|
||||
#include "ctypes/ctypes.msg"
|
||||
#undef MSG_DEF
|
||||
CTYPESERR_LIMIT
|
||||
};
|
||||
|
@ -204,7 +204,7 @@ enum ABICode {
|
|||
enum TypeCode {
|
||||
TYPE_void_t,
|
||||
#define DEFINE_TYPE(name, type, ffiType) TYPE_##name,
|
||||
#include "typedefs.h"
|
||||
#include "ctypes/typedefs.h"
|
||||
TYPE_pointer,
|
||||
TYPE_function,
|
||||
TYPE_array,
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
#include "jscntxt.h"
|
||||
#include "jsstr.h"
|
||||
#include "Library.h"
|
||||
#include "CTypes.h"
|
||||
#include "ctypes/Library.h"
|
||||
#include "ctypes/CTypes.h"
|
||||
#include "prlink.h"
|
||||
|
||||
namespace js {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef jsfixedsizehash_h_
|
||||
#define jsfixedsizehash_h_
|
||||
|
||||
#include "LifoAlloc.h"
|
||||
#include "ds/LifoAlloc.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "LifoAlloc.h"
|
||||
#include "ds/LifoAlloc.h"
|
||||
|
||||
using namespace js;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef ds_SplayTree_h
|
||||
#define ds_SplayTree_h
|
||||
|
||||
#include "LifoAlloc.h"
|
||||
#include "ds/LifoAlloc.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
|
|
|
@ -164,15 +164,15 @@ typedef unsigned Long ULong;
|
|||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#include "stdio.h"
|
||||
#include <stdio.h>
|
||||
#define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);}
|
||||
#endif
|
||||
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef USE_LOCALE
|
||||
#include "locale.h"
|
||||
#include <locale.h>
|
||||
#endif
|
||||
|
||||
#ifdef MALLOC
|
||||
|
@ -205,7 +205,7 @@ extern void *MALLOC(size_t);
|
|||
#define IEEE_Arith
|
||||
#endif
|
||||
|
||||
#include "errno.h"
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef Bad_float_h
|
||||
|
||||
|
@ -237,11 +237,11 @@ extern void *MALLOC(size_t);
|
|||
#endif
|
||||
|
||||
#else /* ifndef Bad_float_h */
|
||||
#include "float.h"
|
||||
#include <float.h>
|
||||
#endif /* Bad_float_h */
|
||||
|
||||
#ifndef __MATH_H__
|
||||
#include "math.h"
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
||||
#ifndef CONST
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
#include "mozilla/PodOperations.h"
|
||||
|
||||
#include "ParseNode.h"
|
||||
#include "SharedContext.h"
|
||||
#include "frontend/ParseNode.h"
|
||||
#include "frontend/SharedContext.h"
|
||||
|
||||
namespace js {
|
||||
namespace frontend {
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "jscntxt.h"
|
||||
#include "FullParseHandler.h"
|
||||
#include "SyntaxParseHandler.h"
|
||||
#include "frontend/FullParseHandler.h"
|
||||
#include "frontend/SyntaxParseHandler.h"
|
||||
|
||||
#include "ParseMaps-inl.h"
|
||||
#include "frontend/ParseMaps-inl.h"
|
||||
#include "vm/String-inl.h"
|
||||
|
||||
using namespace js;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#define ion_IonTypes_h
|
||||
|
||||
#include "js/Value.h"
|
||||
#include <jstypes.h>
|
||||
#include "jstypes.h"
|
||||
|
||||
namespace js {
|
||||
namespace ion {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "js/Utility.h"
|
||||
|
||||
#ifdef USE_ZLIB
|
||||
#include "zlib.h"
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
/* Forward declarations. */
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "jsperf.h"
|
||||
#include "perf/jsperf.h"
|
||||
|
||||
#include "jscntxt.h" /* for error messages */
|
||||
#include "jsobj.h" /* for unwrapping without a context */
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "jsperf.h"
|
||||
#include "perf/jsperf.h"
|
||||
#include "jsutil.h"
|
||||
|
||||
using namespace js;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "jsperf.h"
|
||||
#include "perf/jsperf.h"
|
||||
|
||||
namespace JS {
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef JS_THREADSAFE
|
||||
#include <prinit.h>
|
||||
#include "prinit.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include "jstypedarrayinlines.h"
|
||||
#include "jsworkers.h"
|
||||
#include "jswrapper.h"
|
||||
#include "jsperf.h"
|
||||
#include "perf/jsperf.h"
|
||||
|
||||
#include "builtin/TestingFunctions.h"
|
||||
#include "frontend/BytecodeEmitter.h"
|
||||
|
@ -48,8 +48,8 @@
|
|||
|
||||
#include "prmjtime.h"
|
||||
|
||||
#include "jsoptparse.h"
|
||||
#include "jsheaptools.h"
|
||||
#include "shell/jsoptparse.h"
|
||||
#include "shell/jsheaptools.h"
|
||||
|
||||
#include "jsinferinlines.h"
|
||||
#include "jsscriptinlines.h"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "jsoptparse.h"
|
||||
#include "shell/jsoptparse.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdarg.h>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "DateTime.h"
|
||||
#include "vm/DateTime.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "mozilla/MathAlgorithms.h"
|
||||
#include "mozilla/StandardInteger.h"
|
||||
|
||||
#include "NumericConversions.h"
|
||||
#include "vm/NumericConversions.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "GlobalObject.h"
|
||||
#include "vm/GlobalObject.h"
|
||||
|
||||
#include "jscntxt.h"
|
||||
#include "jsdate.h"
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* JavaScript bytecode interpreter.
|
||||
*/
|
||||
|
||||
#include "Interpreter.h"
|
||||
#include "vm/Interpreter.h"
|
||||
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/FloatingPoint.h"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef vm_NumberObject_inl_h
|
||||
#define vm_NumberObject_inl_h
|
||||
|
||||
#include "NumberObject.h"
|
||||
#include "vm/NumberObject.h"
|
||||
|
||||
#include "jsobjinlines.h"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "Probes-inl.h"
|
||||
#include "vm/Probes-inl.h"
|
||||
|
||||
#include "jscntxt.h"
|
||||
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
|
||||
#include "mozilla/Util.h"
|
||||
|
||||
#include "RegExpObject.h"
|
||||
#include "vm/RegExpObject.h"
|
||||
|
||||
#include "jsstrinlines.h"
|
||||
|
||||
#include "String-inl.h"
|
||||
#include "vm/String-inl.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef vm_ScopeObject_inl_h
|
||||
#define vm_ScopeObject_inl_h
|
||||
|
||||
#include "ScopeObject.h"
|
||||
#include "vm/ScopeObject.h"
|
||||
|
||||
#include "jsinferinlines.h"
|
||||
#include "jsobjinlines.h"
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
#include "jscompartment.h"
|
||||
#include "jsiter.h"
|
||||
|
||||
#include "GlobalObject.h"
|
||||
#include "ScopeObject.h"
|
||||
#include "Shape.h"
|
||||
#include "Xdr.h"
|
||||
#include "vm/GlobalObject.h"
|
||||
#include "vm/ScopeObject.h"
|
||||
#include "vm/Shape.h"
|
||||
#include "vm/Xdr.h"
|
||||
|
||||
#include "jsatominlines.h"
|
||||
#include "jsobjinlines.h"
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
#include "jsscriptinlines.h"
|
||||
|
||||
#include "ArgumentsObject-inl.h"
|
||||
#include "ScopeObject-inl.h"
|
||||
#include "vm/ArgumentsObject-inl.h"
|
||||
#include "vm/ScopeObject-inl.h"
|
||||
|
||||
namespace js {
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#ifndef vm_StringObject_inl_h
|
||||
#define vm_StringObject_inl_h
|
||||
|
||||
#include "StringObject.h"
|
||||
#include "vm/StringObject.h"
|
||||
|
||||
#include "jsobjinlines.h"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Any copyright is dedicated to the Public Domain.
|
||||
* http://creativecommons.org/licenses/publicdomain/
|
||||
*/
|
||||
#include "Unicode.h"
|
||||
#include "vm/Unicode.h"
|
||||
|
||||
using namespace js;
|
||||
using namespace js::unicode;
|
||||
|
|
Загрузка…
Ссылка в новой задаче