Revert "conn: produce command line arguments"

This reverts commit c2bc47a399.
This commit is contained in:
Jōshin 2022-02-18 11:09:38 -08:00
parent 4e312379ec
commit 286f77e301
No known key found for this signature in database
GPG Key ID: A8BE5A9A521639D0
4 changed files with 0 additions and 20 deletions

View File

@ -88,12 +88,6 @@ _main_getopt(c3_i argc, c3_c** argv)
u3_Host.ops_u.hap_w = 50000;
u3_Host.ops_u.kno_w = DefaultKernel;
u3_Host.ops_u.arg_v = c3_malloc((argc + 1) * sizeof(c3_c*));
for ( ch_i = 0; ch_i < argc; ch_i++ ) {
u3_Host.ops_u.arg_v[ch_i] = strdup(argv[ch_i]);
}
u3_Host.ops_u.arg_v[argc] = 0;
static struct option lop_u[] = {
{ "arvo", required_argument, NULL, 'A' },
{ "abort", no_argument, NULL, 'a' },

View File

@ -20,7 +20,6 @@
# define c3__any c3_s3('a','n','y')
# define c3__ap c3_s2('a','p')
# define c3__apen c3_s4('a','p','e','n')
# define c3__args c3_s4('a','r','g','s')
# define c3__aro c3_s3('a','r','o')
# define c3__arvo c3_s4('a','r','v','o')
# define c3__ash c3_s3('a','s','h')

View File

@ -270,7 +270,6 @@
/* u3_opts: command line configuration.
*/
typedef struct _u3_opts {
c3_c** arg_v; // NULL-terminated raw arguments
c3_c* arv_c; // -A, initial sync from
c3_o abo; // -a, abort aggressively
c3_c* pil_c; // -B, bootstrap from

View File

@ -484,18 +484,6 @@ _conn_read_peel(u3_conn* con_u, u3_noun dat)
res = u3nc(u3_nul, u3_nul);
break;
}
// raw command-line options.
//
case c3__args: {
c3_c** arg_c;
res = u3_nul;
for ( arg_c = u3_Host.ops_u.arg_v; 0 != *arg_c; arg_c++ ) {
res = u3nc(u3i_string(*arg_c), res);
}
res = u3nt(u3_nul, u3_nul, u3kb_flop(res));
break;
}
// runtime metrics list.
//
case c3__vars: {