Skip to content

Commit 01b4f69

Browse files
committed
weval.h: fix compilation error with func_id, and remove some outdated defs.
1 parent b9671a3 commit 01b4f69

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

include/weval.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ typedef void (*weval_func_t)();
1212

1313
typedef struct weval_req_t weval_req_t;
1414
typedef struct weval_req_arg_t weval_req_arg_t;
15-
typedef struct weval_lookup_entry_t weval_lookup_entry_t;
16-
typedef struct weval_lookup_t weval_lookup_t;
1715

1816
/*
1917
* A weval "request": a record of a generic function and arguments,
@@ -68,22 +66,8 @@ struct weval_req_arg_t {
6866
} u;
6967
};
7068

71-
/* Lookup table created by weval for pre-inserted wevaled function bodies */
72-
struct weval_lookup_t {
73-
weval_lookup_entry_t* entries;
74-
uint32_t nentries;
75-
};
76-
77-
struct weval_lookup_entry_t {
78-
uint32_t func_id;
79-
const uint8_t* argbuf;
80-
uint32_t arglen;
81-
weval_func_t specialized;
82-
};
83-
8469
extern weval_req_t* weval_req_pending_head;
8570
extern bool weval_is_wevaled;
86-
extern weval_lookup_t weval_lookup_table;
8771

8872
#define WEVAL_DEFINE_GLOBALS() \
8973
weval_req_t* weval_req_pending_head; \
@@ -472,7 +456,6 @@ weval_req_t* weval(impl::FuncPtr<Ret, Args...>* dest,
472456
return nullptr;
473457
}
474458

475-
req->func_id = func_id;
476459
req->num_globals = num_globals;
477460
req->func = (weval_func_t)generic;
478461
req->arglen = writer.len;

0 commit comments

Comments
 (0)