From bfd1c08d6c579445fe75dd633fbd9b0757cea5d0 Mon Sep 17 00:00:00 2001
From: grischka <grischka>
Date: Wed, 19 Oct 2016 19:21:27 +0200
Subject: tccrun/win64: cleanup runtime function table

- call RtlDeleteFunctionTable
  (important for multiple compilations)

- the RUNTIME_FUNCTION* is now at the beginning of the
  runtime memory.  Therefor when tcc_relocate is called
  with user memory, this should be done manually before
  it is free'd:
      RtlDeleteFunctionTable(*(void**)user_mem);
      [ free(user_mem); ]

- x86_64-gen.c: expand char/short return values to int
---
 win32/lib/kernel32.def | 1 +
 1 file changed, 1 insertion(+)

(limited to 'win32/lib/kernel32.def')

diff --git a/win32/lib/kernel32.def b/win32/lib/kernel32.def
index febd1d1..f03e17b 100644
--- a/win32/lib/kernel32.def
+++ b/win32/lib/kernel32.def
@@ -552,6 +552,7 @@ ResetNLSUserInfoCache
 ResetWriteWatch
 ResumeThread
 RtlAddFunctionTable
+RtlDeleteFunctionTable
 RtlFillMemory
 RtlInstallFunctionTableCallback
 RtlMoveMemory
-- 
cgit v1.3.1

