diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2010-12-14 22:58:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2010-12-14 22:58:23 +0000 |
commit | cad51bedb53a97dfce1915ff32d95e4aacf5bc93 (patch) | |
tree | e106b845953a1f1d1f6b21dffe5303e6cf9d89b7 /gcc/go/gofrontend/parse.h | |
parent | 86137e8127767846e7a3a686273d454cc342d6e1 (diff) | |
download | gcc-cad51bedb53a97dfce1915ff32d95e4aacf5bc93.zip gcc-cad51bedb53a97dfce1915ff32d95e4aacf5bc93.tar.gz gcc-cad51bedb53a97dfce1915ff32d95e4aacf5bc93.tar.bz2 |
Don't crash on invalid parameters/results.
From-SVN: r167820
Diffstat (limited to 'gcc/go/gofrontend/parse.h')
-rw-r--r-- | gcc/go/gofrontend/parse.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/go/gofrontend/parse.h b/gcc/go/gofrontend/parse.h index fc2eb12..5f6e26a 100644 --- a/gcc/go/gofrontend/parse.h +++ b/gcc/go/gofrontend/parse.h @@ -167,13 +167,13 @@ class Parse Type* pointer_type(); Type* channel_type(); Function_type* signature(Typed_identifier*, source_location); - Typed_identifier_list* parameters(bool* is_varargs); + bool parameters(Typed_identifier_list**, bool* is_varargs); Typed_identifier_list* parameter_list(bool* is_varargs); void parameter_decl(bool, Typed_identifier_list*, bool*, bool*); - Typed_identifier_list* result(); + bool result(Typed_identifier_list**); source_location block(); Type* interface_type(); - bool method_spec(Typed_identifier_list*); + void method_spec(Typed_identifier_list*); void declaration(); bool declaration_may_start_here(); void decl(void (Parse::*)(void*), void*); |