From cd4a04ee73e50056f3d04e9f13b490dbf5ed800a Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 21 Aug 2021 23:06:27 -0500 Subject: begin refactoring tests to reflect struct-based API and implement hs_pushstring() --- src/honeysuckle.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'src/honeysuckle.c') diff --git a/src/honeysuckle.c b/src/honeysuckle.c index 339b278..1d8da6b 100644 --- a/src/honeysuckle.c +++ b/src/honeysuckle.c @@ -1,18 +1,11 @@ #include "honeysuckle.h" -const char* hs_type_to_string(int type) -{ - type = type; - return "mock"; -} - - -void hs_parse_args(lua_State *L, ...) +void hs_parse_args_(lua_State *L, int n_args, struct hs_arg *arguments) { L = L; } -int hs_parse_overloaded(lua_State *L, ...) +int hs_parse_overloaded_(lua_State *L, ...) { L = L; return -1; @@ -45,17 +38,3 @@ void hs_pt_set_boolean(bool value, void *data) { value=value; data=data; } void hs_pt_set_integer(lua_Integer value, void *data) { value=value; data=data; } void hs_pt_set_number(lua_Number value, void *data) { value=value; data=data; } void hs_pt_set_string(const char *value, void *data) { value=value; data=data; } - - -void hs_throw_error(lua_State *L, const char *format_string, ...) -{ - L = L; - format_string = format_string; -} - - -void hs_pushstring(lua_State *L, const char *format_string, ...) -{ - lua_pushnumber(L, 0.4); - format_string = format_string; -} -- cgit v1.2.1