meta: rename legacy object module to 'ds'

This commit is contained in:
2025-08-09 19:57:42 +01:00
parent a5e3e06306
commit 0751ef469f
80 changed files with 460 additions and 460 deletions

View File

@@ -3,7 +3,7 @@
#include <blue/core/error.h>
#include <blue/io/directory.h>
#include <blue/object/string.h>
#include <blue/ds/string.h>
#include <errno.h>
#include <fcntl.h>
#include <fts.h>
@@ -17,7 +17,7 @@ enum directory_flags {
};
struct b_directory {
struct b_object base;
struct b_dsref base;
enum directory_flags flags;
int fd;
struct b_path *rel_path;
@@ -29,12 +29,12 @@ struct z__b_directory_iterator {
FTSENT *ent;
};
static void directory_release(struct b_object *obj);
static void directory_release(struct b_dsref *obj);
static struct b_object_type directory_type = {
static struct b_dsref_type directory_type = {
.t_name = "corelib::directory",
.t_flags = B_OBJECT_FUNDAMENTAL,
.t_id = B_OBJECT_TYPE_PATH,
.t_flags = B_DSREF_FUNDAMENTAL,
.t_id = B_DSREF_TYPE_PATH,
.t_instance_size = sizeof(struct b_directory),
.t_release = directory_release,
};
@@ -133,7 +133,7 @@ b_result b_directory_open(
}
struct b_directory *dir
= (struct b_directory *)b_object_type_instantiate(&directory_type);
= (struct b_directory *)b_dsref_type_instantiate(&directory_type);
struct b_path *cwd = NULL;
@@ -579,7 +579,7 @@ bool b_directory_iterator_is_valid(const struct b_directory_iterator *it)
return true;
}
static void directory_release(struct b_object *obj)
static void directory_release(struct b_dsref *obj)
{
struct b_directory *dir = B_DIRECTORY(obj);