summaryrefslogtreecommitdiffstats
path: root/src/core/thread.hh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core/thread.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/thread.hh b/src/core/thread.hh
index 1771333..1161f13 100644
--- a/src/core/thread.hh
+++ b/src/core/thread.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023, OARC, Inc.
+ * Copyright (c) 2018-2024 OARC, Inc.
* All rights reserved.
*
* This file is part of dnsjit.
@@ -18,8 +18,8 @@
* along with dnsjit. If not, see <http://www.gnu.org/licenses/>.
*/
-//lua:require("dnsjit.core.compat_h")
-//lua:require("dnsjit.core.log")
+// lua:require("dnsjit.core.compat_h")
+// lua:require("dnsjit.core.log")
typedef struct core_thread_item core_thread_item_t;
struct core_thread_item {
@@ -27,8 +27,8 @@ struct core_thread_item {
void* ptr;
char * type, *module;
- char* str;
- int64_t i64;
+ char* str;
+ double num;
};
typedef struct core_thread {
@@ -52,5 +52,5 @@ int core_thread_start(core_thread_t* self, const char* byt
int core_thread_stop(core_thread_t* self);
void core_thread_push(core_thread_t* self, void* ptr, const char* type, size_t type_len, const char* module, size_t module_len);
void core_thread_push_string(core_thread_t* self, const char* str, size_t len);
-void core_thread_push_int64(core_thread_t* self, int64_t i64);
+void core_thread_push_number(core_thread_t* self, double num);
const core_thread_item_t* core_thread_pop(core_thread_t* self);