[beast: 4/6] SFI: reject procedure definitions in sfidl files
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 4/6] SFI: reject procedure definitions in sfidl files
- Date: Tue, 3 Oct 2017 00:26:43 +0000 (UTC)
commit 66b5eec0a03519ec7f73d2a156a5aed35c3b5cbd
Author: Tim Janik <timj gnu org>
Date: Tue Oct 3 01:14:48 2017 +0200
SFI: reject procedure definitions in sfidl files
Signed-off-by: Tim Janik <timj gnu org>
sfi/sfidl-parser.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/sfi/sfidl-parser.cc b/sfi/sfidl-parser.cc
index 48b1e7a..c291593 100644
--- a/sfi/sfidl-parser.cc
+++ b/sfi/sfidl-parser.cc
@@ -873,6 +873,8 @@ GTokenType Parser::parseNamespace()
}
break;
case G_TOKEN_IDENTIFIER:
+ print_error ("procedure definitions are not supported");
+ return GTokenType ('}');
{
Method procedure;
GTokenType expected_token = parseMethod (procedure);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]