Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223895
b: refs/heads/master
c: e4e18d5
h: refs/heads/master
i:
  223893: 40e6361
  223891: db59d35
  223887: b2ffd7d
v: v3
  • Loading branch information
Akihiro Nagai authored and Arnaldo Carvalho de Melo committed Dec 6, 2010
1 parent c98f753 commit ffe0dfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1437a30aae865d83c7d96e3401f503a73fffe14d
refs/heads/master: e4e18d568b0e833c75c1f7833e1690cdde8f4d76
4 changes: 4 additions & 0 deletions trunk/tools/perf/util/parse-options.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ struct option {
{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), (a), .help = (h), .callback = (f), .flags = PARSE_OPT_NOARG }
#define OPT_CALLBACK_DEFAULT(s, l, v, a, h, f, d) \
{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), (a), .help = (h), .callback = (f), .defval = (intptr_t)d, .flags = PARSE_OPT_LASTARG_DEFAULT }
#define OPT_CALLBACK_DEFAULT_NOOPT(s, l, v, a, h, f, d) \
{ .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l),\
.value = (v), (a), .help = (h), .callback = (f), .defval = (intptr_t)d,\
.flags = PARSE_OPT_LASTARG_DEFAULT | PARSE_OPT_NOARG}

/* parse_options() will filter out the processed options and leave the
* non-option argments in argv[].
Expand Down

0 comments on commit ffe0dfc

Please sign in to comment.