search for: command_t

Displaying 11 results from an estimated 11 matches for "command_t".

Did you mean: command_0
2014 Nov 28
2
[PATCH] fish: show synopsis if command syntax is wrong
...;), cmd, cmd);\n"; pr " goto out_noargs;\n"; pr " }\n"; @@ -694,10 +679,16 @@ Guestfish will prompt for these separately." pr "run_action (const char *cmd, size_t argc, char *argv[])\n"; pr "{\n"; pr " const struct command_table *ct;\n"; + pr " int ret = -1;\n"; pr "\n"; pr " ct = lookup_fish_command (cmd, strlen (cmd));\n"; - pr " if (ct)\n"; - pr " return ct->entry->run (cmd, argc, argv);\n"; + pr " if (ct) {\n"; + pr " r...
2014 Dec 01
2
[PATCH v2] fish: show synopsis if command syntax is wrong
...;), cmd, cmd);\n"; pr " goto out_noargs;\n"; pr " }\n"; @@ -694,16 +679,23 @@ Guestfish will prompt for these separately." pr "run_action (const char *cmd, size_t argc, char *argv[])\n"; pr "{\n"; pr " const struct command_table *ct;\n"; + pr " int ret = -1;\n"; pr "\n"; pr " ct = lookup_fish_command (cmd, strlen (cmd));\n"; - pr " if (ct)\n"; - pr " return ct->entry->run (cmd, argc, argv);\n"; + pr " if (ct) {\n"; + pr " r...
2014 Nov 28
0
Re: [PATCH] fish: show synopsis if command syntax is wrong
...t;synopsis" a function taking args and optargs, and use it in both places. > @@ -694,10 +679,16 @@ Guestfish will prompt for these separately." > pr "run_action (const char *cmd, size_t argc, char *argv[])\n"; > pr "{\n"; > pr " const struct command_table *ct;\n"; > + pr " int ret = -1;\n"; > pr "\n"; > pr " ct = lookup_fish_command (cmd, strlen (cmd));\n"; > - pr " if (ct)\n"; > - pr " return ct->entry->run (cmd, argc, argv);\n"; > + pr " if (ct...
2014 Dec 01
2
Re: [PATCH] fish: show synopsis if command syntax is wrong
...be another patch. I'll add this to my todo list. > > > @@ -694,10 +679,16 @@ Guestfish will prompt for these separately." > > pr "run_action (const char *cmd, size_t argc, char *argv[])\n"; > > pr "{\n"; > > pr " const struct command_table *ct;\n"; > > + pr " int ret = -1;\n"; > > pr "\n"; > > pr " ct = lookup_fish_command (cmd, strlen (cmd));\n"; > > - pr " if (ct)\n"; > > - pr " return ct->entry->run (cmd, argc, argv);\n";...
2014 Dec 02
1
Re: [PATCH v2] fish: show synopsis if command syntax is wrong
...pr " goto out_noargs;\n"; > pr " }\n"; > > @@ -694,16 +684,28 @@ Guestfish will prompt for these separately." > pr "run_action (const char *cmd, size_t argc, char *argv[])\n"; > pr "{\n"; > pr " const struct command_table *ct;\n"; > + pr " int ret = -1;\n"; > pr "\n"; > pr " ct = lookup_fish_command (cmd, strlen (cmd));\n"; > - pr " if (ct)\n"; > - pr " return ct->entry->run (cmd, argc, argv);\n"; > + pr " if (ct...
2016 Sep 02
6
[PATCH 0/4] generator: Some work to split large C files
By splitting up large C files we can make parallel compiles a bit faster. Rich.
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...,7 +695,7 @@ and generate_fish_cmds_gperf () = List.iter ( fun { name = name } -> pr "extern struct command_entry %s_cmd_entry;\n" name - ) all_functions_and_fish_commands_sorted; + ) fish_functions_and_commands_sorted; pr "\ %%} @@ -732,15 +722,12 @@ struct command_table; fun alias -> pr "%s, &%s_cmd_entry\n" alias name; ) aliases; - ) all_functions_and_fish_commands_sorted + ) fish_functions_and_commands_sorted (* Readline completion for guestfish. *) and generate_fish_completion () = generate_header CStyle...
2017 Oct 04
0
[PATCH 2/9] ocaml: Replace pattern matching { field = field } with { field }.
...ame ) fish_commands; @@ -712,7 +710,7 @@ and generate_fish_cmds_gperf () = "; List.iter ( - fun { name = name } -> + fun { name } -> pr "extern struct command_entry %s_cmd_entry;\n" name ) fish_functions_and_commands_sorted; @@ -725,7 +723,7 @@ struct command_table; "; List.iter ( - fun ({ name = name } as f) -> + fun ({ name } as f) -> let aliases = get_aliases f in let name2 = String.replace_char name '_' '-' in @@ -817,7 +815,7 @@ static const char *const commands[] = { *) let commands =...
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...e_char f '_' '-' in pr " printf (\"%%-20s \", \"%s\");\n" name; pr " printf (_(\"alias for '%%s'\"), \"%s\");\n" f; pr " putchar ('\\n');\n" @@ -771,7 +772,7 @@ struct command_table; List.iter ( fun ({ name = name } as f) -> let aliases = get_aliases f in - let name2 = replace_char name '_' '-' in + let name2 = String.replace_char name '_' '-' in (* The basic command. *) pr "%s, &%s_cmd_en...
2017 Oct 04
11
[PATCH 0/9] build: Require OCaml >= 4.02.
Per my previous email: https://www.redhat.com/archives/libguestfs/2017-September/msg00203.html I'd like to talk about requiring a more modern version of the OCaml compiler. These commits show some of the code changes which would be possible with OCaml >= 3.12 [which it turns out we already require by accident] and also with OCaml >= 4.02. The latter is my favoured option. Rich.
2012 Jul 14
6
[PATCH 0/6] Allow non-optargs functions to gain optional arguments.
This rather complex set of patches allow non-optargs functions to gain optional arguments, while preserving source and binary backwards compatibility. The problem is that we cannot add an optional argument to an existing function. For example, we might want to add flags to the 'lvresize' API which currently has no optional arguments.