change workflow to support other plateforms

This commit is contained in:
William Bell
2025-08-15 19:06:00 +01:00
parent ed1b77a78e
commit 663797d1fb
8 changed files with 65 additions and 26 deletions

View File

@@ -10,12 +10,14 @@
#include <stdio.h>
#include <string.h>
#include "string.h"
#include "../number/number.h"
ArgonObject *ARGON_STRING_TYPE = NULL;
ArgonObject *new_string_object(char*data, size_t length) {
ArgonObject * object = new_object();
add_field(object, "__class__", ARGON_STRING_TYPE);
add_field(object, "length", new_number_object_from_long(length, 1));
object->type = TYPE_STRING;
object->value.as_str.data = ar_alloc_atomic(length);
memcpy(object->value.as_str.data, data, length);