Logo
Explore Help
Sign In
wash/bluelib
1
0
Fork 0
You've already forked bluelib
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
4d75a572c4ca483aaaa0aeb77677031d62641fd7
bluelib/ds/list.h

20 lines
265 B
C
Raw Normal View History

object: add b_list object b_list behaves exactly like b_queue, with two key differences: 1) it is memory-managed like other b_objects, which means it is stored on the heap and ref-counted. 2) it is not an invasive data structure, and will automatically create and manage list nodes that contain pointers to the list items.
2025-06-27 21:43:57 +01:00
#ifndef _BLUELIB_LIST_H_
#define _BLUELIB_LIST_H_
#include "object.h"
#include <blue/core/queue.h>
struct b_list {
meta: rename legacy object module to 'ds'
2025-08-09 19:57:42 +01:00
struct b_dsref l_base;
object: add b_list object b_list behaves exactly like b_queue, with two key differences: 1) it is memory-managed like other b_objects, which means it is stored on the heap and ref-counted. 2) it is not an invasive data structure, and will automatically create and manage list nodes that contain pointers to the list items.
2025-06-27 21:43:57 +01:00
struct b_queue l_queue;
size_t l_len;
};
struct b_list_entry {
struct b_queue_entry e_entry;
void *e_data;
};
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 25ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API