Renamed 'exceptions' to 'exceptionNameDescription' to avoid
variable name conflict.
* Modules/indexeddb/IDBDatabaseException.cpp:
(WebCore::IDBDatabaseException::initializeDescription):
* Modules/webdatabase/SQLException.cpp:
(WebCore::SQLException::initializeDescription):
* dom/EventException.cpp:
(WebCore::EventException::initializeDescription):
* dom/RangeException.cpp:
(WebCore::RangeException::initializeDescription):
* fileapi/FileException.cpp:
(WebCore::FileException::initializeDescription):
* fileapi/OperationNotAllowedException.cpp:
(WebCore::OperationNotAllowedException::initializeDescription):
* svg/SVGException.cpp:
(WebCore::SVGException::initializeDescription):
* xml/XPathException.cpp:
(WebCore::XPathException::initializeDescription):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113693
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-04-10 Kentaro Hara <haraken@chromium.org>
+
+ Unreviewed. Fixed AppleWin and Chromium-win build failure.
+
+ Renamed 'exceptions' to 'exceptionNameDescription' to avoid
+ variable name conflict.
+
+ * Modules/indexeddb/IDBDatabaseException.cpp:
+ (WebCore::IDBDatabaseException::initializeDescription):
+ * Modules/webdatabase/SQLException.cpp:
+ (WebCore::SQLException::initializeDescription):
+ * dom/EventException.cpp:
+ (WebCore::EventException::initializeDescription):
+ * dom/RangeException.cpp:
+ (WebCore::RangeException::initializeDescription):
+ * fileapi/FileException.cpp:
+ (WebCore::FileException::initializeDescription):
+ * fileapi/OperationNotAllowedException.cpp:
+ (WebCore::OperationNotAllowedException::initializeDescription):
+ * svg/SVGException.cpp:
+ (WebCore::SVGException::initializeDescription):
+ * xml/XPathException.cpp:
+ (WebCore::XPathException::initializeDescription):
+
2012-04-09 Lu Guanqun <guanqun.lu@intel.com>
combine two arrays in XPathException into one
static struct IDBDatabaseExceptionNameDescription {
const char* const name;
const char* const description;
-} exceptions[] = {
+} exceptionNameDescription[] = {
{ "UNKNOWN_ERR", "An unknown error occurred within Indexed Database." },
{ "NON_TRANSIENT_ERR", "NON_TRANSIENT_ERR" }, // FIXME: Write a better message if it's ever possible this is thrown.
{ "NOT_FOUND_ERR", "The name supplied does not match any existing item." },
description->code = ec - IDBDatabaseExceptionOffset;
description->type = IDBDatabaseExceptionType;
- size_t tableSize = WTF_ARRAY_LENGTH(exceptions);
+ size_t tableSize = WTF_ARRAY_LENGTH(exceptionNameDescription);
size_t tableIndex = ec - UNKNOWN_ERR;
- description->name = tableIndex < tableSize ? exceptions[tableIndex].name : 0;
- description->description = tableIndex < tableSize ? exceptions[tableIndex].description : 0;
+ description->name = tableIndex < tableSize ? exceptionNameDescription[tableIndex].name : 0;
+ description->description = tableIndex < tableSize ? exceptionNameDescription[tableIndex].description : 0;
return true;
}
static struct SQLExceptionNameDescription {
const char* const name;
const char* const description;
-} exceptions[] = {
+} exceptionNameDescription[] = {
{ "UNKNOWN_ERR", "The operation failed for reasons unrelated to the database." },
{ "DATABASE_ERR", "The operation failed for some reason related to the database." },
{ "VERSION_ERR", "The actual database version did not match the expected version." },
description->code = ec - SQLExceptionOffset;
description->type = SQLExceptionType;
- size_t tableSize = WTF_ARRAY_LENGTH(exceptions);
+ size_t tableSize = WTF_ARRAY_LENGTH(exceptionNameDescription);
size_t tableIndex = ec - UNKNOWN_ERR;
- description->name = tableIndex < tableSize ? exceptions[tableIndex].name : 0;
- description->description = tableIndex < tableSize ? exceptions[tableIndex].description : 0;
+ description->name = tableIndex < tableSize ? exceptionNameDescription[tableIndex].name : 0;
+ description->description = tableIndex < tableSize ? exceptionNameDescription[tableIndex].description : 0;
return true;
}
static struct EventExceptionNameDescription {
const char* const name;
const char* const description;
-} exceptions[] = {
+} exceptionNameDescription[] = {
{ "UNSPECIFIED_EVENT_TYPE_ERR", "The Event's type was not specified by initializing the event before the method was called." },
{ "DISPATCH_REQUEST_ERR", "The Event object is already being dispatched." }
};
description->code = ec - EventExceptionOffset;
description->type = EventExceptionType;
- size_t tableSize = WTF_ARRAY_LENGTH(exceptions);
+ size_t tableSize = WTF_ARRAY_LENGTH(exceptionNameDescription);
size_t tableIndex = ec - UNSPECIFIED_EVENT_TYPE_ERR;
- description->name = tableIndex < tableSize ? exceptions[tableIndex].name : 0;
- description->description = tableIndex < tableSize ? exceptions[tableIndex].description : 0;
+ description->name = tableIndex < tableSize ? exceptionNameDescription[tableIndex].name : 0;
+ description->description = tableIndex < tableSize ? exceptionNameDescription[tableIndex].description : 0;
return true;
}
static struct RangeExceptionNameDescription {
const char* const name;
const char* const description;
-} exceptions[] = {
+} exceptionNameDescription[] = {
{ "BAD_BOUNDARYPOINTS_ERR", "The boundary-points of a Range did not meet specific requirements." },
{ "INVALID_NODE_TYPE_ERR", "The container of an boundary-point of a Range was being set to either a node of an invalid type or a node with an ancestor of an invalid type." }
};
description->code = ec - RangeExceptionOffset;
description->type = RangeExceptionType;
- size_t tableSize = WTF_ARRAY_LENGTH(exceptions);
+ size_t tableSize = WTF_ARRAY_LENGTH(exceptionNameDescription);
size_t tableIndex = ec - BAD_BOUNDARYPOINTS_ERR;
- description->name = tableIndex < tableSize ? exceptions[tableIndex].name : 0;
- description->description = tableIndex < tableSize ? exceptions[tableIndex].description : 0;
+ description->name = tableIndex < tableSize ? exceptionNameDescription[tableIndex].name : 0;
+ description->description = tableIndex < tableSize ? exceptionNameDescription[tableIndex].description : 0;
return true;
}
static struct FileExceptionNameDescription {
const char* const name;
const char* const description;
-} exceptions[] = {
+} exceptionNameDescription[] = {
{ "NOT_FOUND_ERR", "A requested file or directory could not be found at the time an operation was processed." },
{ "SECURITY_ERR", "It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources." },
{ "ABORT_ERR", "An ongoing operation was aborted, typically with a call to abort()." },
description->code = ec - FileExceptionOffset;
description->type = FileExceptionType;
- size_t tableSize = WTF_ARRAY_LENGTH(exceptions);
+ size_t tableSize = WTF_ARRAY_LENGTH(exceptionNameDescription);
size_t tableIndex = ec - NOT_FOUND_ERR;
- description->name = tableIndex < tableSize ? exceptions[tableIndex].name : 0;
- description->description = tableIndex < tableSize ? exceptions[tableIndex].description : 0;
+ description->name = tableIndex < tableSize ? exceptionNameDescription[tableIndex].name : 0;
+ description->description = tableIndex < tableSize ? exceptionNameDescription[tableIndex].description : 0;
return true;
}
static struct OperationNotAllowedExceptionNameDescription {
const char* const name;
const char* const description;
-} exceptions[] = {
+} exceptionNameDescription[] = {
{ "NOT_ALLOWED_ERR", "A read method was called while the object was in the LOADING state due to a previous read call." }
};
description->code = ec - OperationNotAllowedExceptionOffset;
description->type = OperationNotAllowedExceptionType;
- size_t tableSize = WTF_ARRAY_LENGTH(exceptions);
+ size_t tableSize = WTF_ARRAY_LENGTH(exceptionNameDescription);
size_t tableIndex = ec - NOT_ALLOWED_ERR;
- description->name = tableIndex < tableSize ? exceptions[tableIndex].name : 0;
- description->description = tableIndex < tableSize ? exceptions[tableIndex].description : 0;
+ description->name = tableIndex < tableSize ? exceptionNameDescription[tableIndex].name : 0;
+ description->description = tableIndex < tableSize ? exceptionNameDescription[tableIndex].description : 0;
return true;
}
static struct SVGExceptionNameDescription {
const char* const name;
const char* const description;
-} exceptions[] = {
+} exceptionNameDescription[] = {
{ "SVG_WRONG_TYPE_ERR", "An object of the wrong type was passed to an operation." },
{ "SVG_INVALID_VALUE_ERR", "An invalid value was passed to an operation or assigned to an attribute." },
{ "SVG_MATRIX_NOT_INVERTABLE", "An attempt was made to invert a matrix that is not invertible." }
description->code = ec - SVGExceptionOffset;
description->type = SVGExceptionType;
- size_t tableSize = WTF_ARRAY_LENGTH(exceptions);
+ size_t tableSize = WTF_ARRAY_LENGTH(exceptionNameDescription);
size_t tableIndex = ec - SVG_WRONG_TYPE_ERR;
- description->name = tableIndex < tableSize ? exceptions[tableIndex].name : 0;
- description->description = tableIndex < tableSize ? exceptions[tableIndex].description : 0;
+ description->name = tableIndex < tableSize ? exceptionNameDescription[tableIndex].name : 0;
+ description->description = tableIndex < tableSize ? exceptionNameDescription[tableIndex].description : 0;
return true;
}
static struct XPathExceptionNameDescription {
const char* const name;
const char* const description;
-} exceptions[] = {
+} exceptionNameDescription[] = {
{ "INVALID_EXPRESSION_ERR", "The expression had a syntax error or otherwise is not a legal expression according to the rules of the specific XPathEvaluator." },
{ "TYPE_ERR", "The expression could not be converted to return the specified type." }
};
description->code = ec - XPathExceptionOffset;
description->type = XPathExceptionType;
- size_t tableSize = WTF_ARRAY_LENGTH(exceptions);
+ size_t tableSize = WTF_ARRAY_LENGTH(exceptionNameDescription);
size_t tableIndex = ec - INVALID_EXPRESSION_ERR;
- description->name = tableIndex < tableSize ? exceptions[tableIndex].name : 0;
- description->description = tableIndex < tableSize ? exceptions[tableIndex].description : 0;
+ description->name = tableIndex < tableSize ? exceptionNameDescription[tableIndex].name : 0;
+ description->description = tableIndex < tableSize ? exceptionNameDescription[tableIndex].description : 0;
return true;
}