fx.cmdline: fix namespace not having the required header subdirectory
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#include <fx/cmd.h>
|
#include <fx/cmdline/cmd.h>
|
||||||
#include <fx/string.h>
|
#include <fx/string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#include <fx/cmd.h>
|
#include <fx/cmdline/cmd.h>
|
||||||
#include <fx/misc.h>
|
#include <fx/misc.h>
|
||||||
#include <fx/string.h>
|
#include <fx/string.h>
|
||||||
#include <fx/term/print.h>
|
#include <fx/term/print.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#include <fx/bst.h>
|
#include <fx/bst.h>
|
||||||
#include <fx/cmd.h>
|
#include <fx/cmdline/cmd.h>
|
||||||
#include <fx/string.h>
|
#include <fx/string.h>
|
||||||
#include <fx/term/print.h>
|
#include <fx/term/print.h>
|
||||||
#include <fx/term/tty.h>
|
#include <fx/term/tty.h>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#define _FX_COMMAND_H_
|
#define _FX_COMMAND_H_
|
||||||
|
|
||||||
#include <fx/bst.h>
|
#include <fx/bst.h>
|
||||||
#include <fx/cmd.h>
|
#include <fx/cmdline/cmd.h>
|
||||||
#include <fx/queue.h>
|
#include <fx/queue.h>
|
||||||
#include <fx/string.h>
|
#include <fx/string.h>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#include "command.h"
|
#include "command.h"
|
||||||
|
|
||||||
#include <fx/cmd.h>
|
#include <fx/cmdline/cmd.h>
|
||||||
#include <fx/string.h>
|
#include <fx/string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include <fx/cmd.h>
|
#include <fx/cmdline/cmd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
@@ -27,16 +27,24 @@ const char *text
|
|||||||
"great pleasure.";
|
"great pleasure.";
|
||||||
|
|
||||||
static int test_command(
|
static int test_command(
|
||||||
const fx_command *self, const fx_arglist *opt, const fx_array *args)
|
const fx_command *self,
|
||||||
|
const fx_arglist *opt,
|
||||||
|
const fx_array *args)
|
||||||
{
|
{
|
||||||
printf("Hello, world!\n");
|
printf("Hello, world!\n");
|
||||||
|
|
||||||
fx_arglist_iterator it;
|
fx_arglist_iterator it;
|
||||||
fx_arglist_iterator_begin(
|
fx_arglist_iterator_begin(
|
||||||
opt, FX_COMMAND_INVALID_ID, FX_COMMAND_INVALID_ID, &it);
|
opt,
|
||||||
|
FX_COMMAND_INVALID_ID,
|
||||||
|
FX_COMMAND_INVALID_ID,
|
||||||
|
&it);
|
||||||
while (fx_arglist_iterator_is_valid(&it)) {
|
while (fx_arglist_iterator_is_valid(&it)) {
|
||||||
printf("opt:%u,arg:%u,i:%zu,value: %s\n", it.opt_id,
|
printf("opt:%u,arg:%u,i:%zu,value: %s\n",
|
||||||
it.value->val_id, it.i, it.value->val_str);
|
it.opt_id,
|
||||||
|
it.value->val_id,
|
||||||
|
it.i,
|
||||||
|
it.value->val_str);
|
||||||
|
|
||||||
fx_arglist_iterator_next(&it);
|
fx_arglist_iterator_next(&it);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user