move pst_call_site & pst_parameter to C language and separate them

This commit is contained in:
2020-02-01 17:09:12 +04:00
parent 8251ba526f
commit e27f0c5c18
11 changed files with 978 additions and 804 deletions
+3 -1
View File
@@ -9,6 +9,8 @@
#include "dwarf_expression.h"
#include "common.h"
#include "allocator.h"
#include "context.h"
//
// DWARF operation
@@ -42,7 +44,7 @@ void pst_dwarf_op_fini(pst_dwarf_op* dwop)
assert(dwop);
if(dwop->allocated) {
allocator.free(dwop);
allocator.free(&allocator, dwop);
} else {
dwop->operation = 0;
dwop->arg1 = 0;