From da38a9d521c55d8de0bd4516ad11e7dbad313e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Fri, 27 Apr 2018 11:05:34 +0200 Subject: [PATCH] Move _fde_func_t typedef to shared .h --- shared/context_struct.h | 2 ++ src/CodeGenerator.cpp | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/context_struct.h b/shared/context_struct.h index 1946274..a5d4d8a 100644 --- a/shared/context_struct.h +++ b/shared/context_struct.h @@ -3,3 +3,5 @@ typedef struct { uintptr_t rip, rsp, rbp; } unwind_context_t; + +typedef unwind_context_t (*_fde_func_t)(unwind_context_t, uintptr_t); diff --git a/src/CodeGenerator.cpp b/src/CodeGenerator.cpp index 8c58a30..527334d 100644 --- a/src/CodeGenerator.cpp +++ b/src/CodeGenerator.cpp @@ -4,10 +4,8 @@ using namespace std; static const char* PRELUDE = -"#include \n" "#include \n" "\n" -"typedef unwind_context_t (*_fde_func_t)(unwind_context_t, uintptr_t);\n" ; CodeGenerator::CodeGenerator(