Project

General

Profile

Feature #11373 ยป 0001-Add-command-line-option-to-query-valid-values-for-du.patch

mx4492 (Manav Rathi), 07/18/2015 02:27 PM

View differences:

man/ruby.1
.Pp
Prints the specified target.
.Ar target
can be one of;
can be one of:
.Bl -hang -offset indent
.It Sy targets
valid target values
.Pp
.It Sy insns
disassembled instructions
.Pp
ruby.c
dump_parsetree,
dump_parsetree_with_comment,
dump_insns,
dump_targets,
dump_flag_count
};
static const char *valid_dump_targets = "version, copyright, usage, yydebug, syntax, parsetree, parsetree_with_comment, insns, targets";
struct cmdline_options {
int sflag, xflag;
int do_loop, do_print;
......
SET_WHEN_DUMP(parsetree);
SET_WHEN_DUMP(parsetree_with_comment);
SET_WHEN_DUMP(insns);
SET_WHEN_DUMP(targets);
rb_warn("don't know how to dump `%.*s',", len, str);
rb_warn("but only [version, copyright, usage, yydebug, syntax, parsetree, parsetree_with_comment, insns].");
rb_warn("but only [%s].\n", valid_dump_targets);
}
static void
......
if (opt->dump & DUMP_BIT(copyright)) {
ruby_show_copyright();
}
if (opt->dump & DUMP_BIT(targets)) {
printf("%s\n", valid_dump_targets);
return Qtrue;
}
if (!opt->e_script) {
if (argc == 0) { /* no more args */
    (1-1/1)