From e7a5197eafd214da4c6b0aec5112fb07b5b55943 Mon Sep 17 00:00:00 2001 From: Karthick Somasundaresan Date: Sat, 30 May 2026 06:42:19 +0530 Subject: [PATCH] Fix Compilation error in MessageStore.h Probable fix for compilation error encountered during IMessageControl.h MessageStore.h(56): parse error: can't insert namespace 'WPEFramework' into non-namespace block 'Metadata' --- ProxyStubGenerator/CppParser.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/ProxyStubGenerator/CppParser.py b/ProxyStubGenerator/CppParser.py index 5ea4e8b9..fa5a7ae0 100755 --- a/ProxyStubGenerator/CppParser.py +++ b/ProxyStubGenerator/CppParser.py @@ -2220,6 +2220,7 @@ def Parse(contents,log = None): current_line = int(token[6:].split()[0]) elif isinstance(token, str) and token.startswith("@FILE:"): current_file = token[6:] + tokens.append("@GLOBAL") line_numbers.append(current_line) files.append(current_file) else: @@ -2330,6 +2331,33 @@ def Parse(contents,log = None): iterator_next = True tokens[i] = ";" i += 1 + elif tokens[i] == "@GLOBAL": + current_block = [global_namespace] + next_block = None + last_template_def = [] + min_index = 0 + omit_mode = False + omit_next = False + stub_next = False + json_next = False + object_next = False + autoobject_next = False + encode_enum_next = False + wrap_next = False + json_version = "" + prefix_next = False + prefix_string = "" + exclude_next = False + event_next = False + extended_next = False + collapsed_next = False + compliant_next = False + iterator_next = False + sourcelocation_next = False + text_next = None + in_typedef = False + tokens[i] = ";" + i += 1 # Swallow template definitions elif tokens[i] == "template" and tokens[i + 1] == '<':