diff options
| author | Carl Shapiro <cshapiro@google.com> | 2010-06-08 16:37:12 -0700 |
|---|---|---|
| committer | Carl Shapiro <cshapiro@google.com> | 2010-06-08 17:04:11 -0700 |
| commit | de75089fb7216d19e9c22cce4dc62a49513477d3 (patch) | |
| tree | 8c4035cc05218ddb7595e9a5c5997b53e58c2572 /libdex/DexClass.c | |
| parent | 52ec072cc4dd215ff541a0b0842e91ea529a6e5d (diff) | |
| download | android_dalvik-de75089fb7216d19e9c22cce4dc62a49513477d3.tar.gz android_dalvik-de75089fb7216d19e9c22cce4dc62a49513477d3.tar.bz2 android_dalvik-de75089fb7216d19e9c22cce4dc62a49513477d3.zip | |
Remove trailing whitespace.
Change-Id: I95534bb2b88eaf48f2329282041118cd034c812b
Diffstat (limited to 'libdex/DexClass.c')
| -rw-r--r-- | libdex/DexClass.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libdex/DexClass.c b/libdex/DexClass.c index 126813016..8a59e09fd 100644 --- a/libdex/DexClass.c +++ b/libdex/DexClass.c @@ -52,11 +52,11 @@ bool dexReadAndVerifyClassDataHeader(const u1** pData, const u1* pLimit, /* Read and verify an encoded_field. This updates the * given data pointer to point past the end of the read data and * returns an "okay" flag (that is, false == failure). - * + * * The lastIndex value should be set to 0 before the first field in * a list is read. It is updated as fields are read and used in the * decode process. - * + * * The verification done by this function is of the raw data format * only; it does not verify that access flags or indices * are valid. */ @@ -73,7 +73,7 @@ bool dexReadAndVerifyClassDataField(const u1** pData, const u1* pLimit, /* Read and verify an encoded_method. This updates the * given data pointer to point past the end of the read data and * returns an "okay" flag (that is, false == failure). - * + * * The lastIndex value should be set to 0 before the first method in * a list is read. It is updated as fields are read and used in the * decode process. @@ -97,7 +97,7 @@ bool dexReadAndVerifyClassDataMethod(const u1** pData, const u1* pLimit, * must subsequently be free()d. This function returns NULL if there * was trouble parsing the data. If this function is passed NULL, it * returns an initialized empty DexClassData structure. - * + * * The verification done by this function is of the raw data format * only; it does not verify that access flags, indices, or offsets * are valid. */ @@ -110,7 +110,7 @@ DexClassData* dexReadAndVerifyClassData(const u1** pData, const u1* pLimit) { memset(result, 0, sizeof(*result)); return result; } - + if (! dexReadAndVerifyClassDataHeader(pData, pLimit, &header)) { return NULL; } @@ -138,21 +138,21 @@ DexClassData* dexReadAndVerifyClassData(const u1** pData, const u1* pLimit) { } else { result->staticFields = NULL; } - + if (header.instanceFieldsSize != 0) { result->instanceFields = (DexField*) ptr; ptr += header.instanceFieldsSize * sizeof(DexField); } else { result->instanceFields = NULL; } - + if (header.directMethodsSize != 0) { result->directMethods = (DexMethod*) ptr; ptr += header.directMethodsSize * sizeof(DexMethod); } else { result->directMethods = NULL; } - + if (header.virtualMethodsSize != 0) { result->virtualMethods = (DexMethod*) ptr; } else { @@ -176,7 +176,7 @@ DexClassData* dexReadAndVerifyClassData(const u1** pData, const u1* pLimit) { okay = dexReadAndVerifyClassDataMethod(pData, pLimit, &result->directMethods[i], &lastIndex); } - + lastIndex = 0; for (i = 0; okay && (i < header.virtualMethodsSize); i++) { okay = dexReadAndVerifyClassDataMethod(pData, pLimit, |
