cmd: update references to fx_btree

This commit is contained in:
2026-03-16 15:11:45 +00:00
parent e4bacb7360
commit 6b04920d29
4 changed files with 9 additions and 9 deletions

View File

@@ -10,14 +10,14 @@
#include <stdlib.h>
#include <string.h>
FX_BTREE_DEFINE_SIMPLE_INSERT(
FX_BST_DEFINE_SIMPLE_INSERT(
struct fx_arglist_option, opt_node, opt_id, put_arglist_option)
FX_BTREE_DEFINE_SIMPLE_GET(
FX_BST_DEFINE_SIMPLE_GET(
struct fx_arglist_option, unsigned int, opt_node, opt_id, get_arglist_option)
FX_BTREE_DEFINE_SIMPLE_INSERT(
FX_BST_DEFINE_SIMPLE_INSERT(
struct fx_arglist_value, val_node, val_id, put_arglist_value)
FX_BTREE_DEFINE_SIMPLE_GET(
FX_BST_DEFINE_SIMPLE_GET(
struct fx_arglist_value, unsigned int, val_node, val_id, get_arglist_value)
struct argv_parser {

View File

@@ -1,7 +1,7 @@
#include "command.h"
#include <fx/cmd.h>
#include <fx/core/btree.h>
#include <fx/core/bst.h>
#include <fx/ds/string.h>
#include <fx/term/print.h>
#include <fx/term/tty.h>
@@ -13,8 +13,8 @@
static struct fx_bst command_list = {0};
FX_BTREE_DEFINE_SIMPLE_GET(struct fx_command, unsigned int, c_node, c_id, get_command)
FX_BTREE_DEFINE_SIMPLE_INSERT(struct fx_command, c_node, c_id, put_command)
FX_BST_DEFINE_SIMPLE_GET(struct fx_command, unsigned int, c_node, c_id, get_command)
FX_BST_DEFINE_SIMPLE_INSERT(struct fx_command, c_node, c_id, put_command)
enum item_type {
ITEM_OPTION,

View File

@@ -2,7 +2,7 @@
#define _FX_COMMAND_H_
#include <fx/cmd.h>
#include <fx/core/btree.h>
#include <fx/core/bst.h>
#include <fx/core/queue.h>
#include <fx/ds/string.h>

View File

@@ -1,7 +1,7 @@
#ifndef FX_CMD_H_
#define FX_CMD_H_
#include <fx/core/btree.h>
#include <fx/core/bst.h>
#include <fx/core/init.h>
#include <fx/core/iterator.h>
#include <fx/core/queue.h>