diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-31 15:59:59 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-31 15:59:59 -0700 |
| commit | 029c7f81a9a445b57a9f6b791a32eebc7b581e2a (patch) | |
| tree | 27627e92ccf3a6c33611f513627003e8468ec135 /libacc/acc.cpp | |
| parent | 84c7966eed355e9e577b59b974154939c8c6d1bc (diff) | |
| parent | 96138992ac98f8962dc2345d9ba3e99006af80b2 (diff) | |
| download | system_core-029c7f81a9a445b57a9f6b791a32eebc7b581e2a.tar.gz system_core-029c7f81a9a445b57a9f6b791a32eebc7b581e2a.tar.bz2 system_core-029c7f81a9a445b57a9f6b791a32eebc7b581e2a.zip | |
Merge change 9407
* changes:
Fix parsing of function declarations that return pointers.
Diffstat (limited to 'libacc/acc.cpp')
| -rw-r--r-- | libacc/acc.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libacc/acc.cpp b/libacc/acc.cpp index f70c7a13..676947e2 100644 --- a/libacc/acc.cpp +++ b/libacc/acc.cpp @@ -4409,15 +4409,11 @@ class Compiler : public ErrorSink { Type* acceptDecl2(Type* pType, tokenid_t& declName, bool nameAllowed, bool nameRequired, bool& reportFailure) { - int ptrCounter = 0; while (accept('*')) { - ptrCounter++; + pType = createType(TY_POINTER, pType, NULL); } pType = acceptDecl3(pType, declName, nameAllowed, nameRequired, reportFailure); - while (ptrCounter-- > 0) { - pType = createType(TY_POINTER, pType, NULL); - } return pType; } |
