Skip to content

Commit eb20426

Browse files
committed
Fix espresso names gate
1 parent d1cd973 commit eb20426

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

espresso/mx.espresso/mx_espresso.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,14 @@ def _espresso_gate_runner(args, tasks):
129129
break
130130

131131
with open(generated_header, 'r') as generated_header_file:
132-
generated_header_lines = generated_header_file.readlines()
132+
generated_header_lines = []
133+
for line in generated_header_file.readlines():
134+
# Ignore definitions that are not needed for Espresso
135+
if not line.startswith("typedef") or "(*Espresso_" in line or "__graal" in line or "(*graal_" in line:
136+
generated_header_lines.append(line)
137+
else:
138+
newline = generated_header_lines.pop() # Remove newline before ignored declaration
139+
assert newline == "\n"
133140

134141
errors = errors or mx.update_file(committed_header, ''.join(committed_header_copyright + generated_header_lines), showDiff=True)
135142

espresso/src/com.oracle.truffle.espresso.mokapot/include/libespresso_dynamic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ typedef int (*Espresso_CloseContext_fn_t)(graal_isolatethread_t* thread, struct
4242

4343
typedef void (*Espresso_Exit_fn_t)(graal_isolatethread_t* thread, struct JavaVM_* javaVM);
4444

45-
typedef void (*vmLocatorSymbol_fn_t)(graal_isolatethread_t* thread);
46-
4745
#if defined(__cplusplus)
4846
}
4947
#endif

0 commit comments

Comments
 (0)