aboutsummaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-15 21:03:50 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-15 21:03:50 +0100
commitfef8c5c79d628ac0823fdae238fd0b70a1f1eb94 (patch)
tree4e05a8fc5f3254fbe2b3325a7c6f6f61f892b66a /src/regex
parente6b3fec9e4a573e1f0c594a3c2f345357c0c12b8 (diff)
downloadgnunet-fef8c5c79d628ac0823fdae238fd0b70a1f1eb94.tar.gz
gnunet-fef8c5c79d628ac0823fdae238fd0b70a1f1eb94.zip
porting.
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/gnunet-regex-profiler.c49
1 files changed, 33 insertions, 16 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c
index dfbcd388a..71f3580f8 100644
--- a/src/regex/gnunet-regex-profiler.c
+++ b/src/regex/gnunet-regex-profiler.c
@@ -1477,22 +1477,39 @@ run (void *cls,
1477int 1477int
1478main (int argc, char *const *argv) 1478main (int argc, char *const *argv)
1479{ 1479{
1480 static const struct GNUNET_GETOPT_CommandLineOption options[] = { 1480 struct GNUNET_GETOPT_CommandLineOption options[] = {
1481 {'o', "output-file", "FILENAME", 1481
1482 gettext_noop ("name of the file for writing statistics"), 1482 GNUNET_GETOPT_OPTION_FILENAME ('o',
1483 GNUNET_YES, &GNUNET_GETOPT_set_string, &data_filename}, 1483 "output-file",
1484 {'t', "matching-timeout", "TIMEOUT", 1484 "FILENAME",
1485 gettext_noop ("wait TIMEOUT before ending the experiment"), 1485 gettext_noop ("name of the file for writing statistics"),
1486 GNUNET_YES, &GNUNET_GETOPT_set_relative_time, &search_timeout_time}, 1486 &data_filename),
1487 {'p', "policy-dir", "DIRECTORY", 1487
1488 gettext_noop ("directory with policy files"), 1488 GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t',
1489 GNUNET_YES, &GNUNET_GETOPT_set_filename, &policy_dir}, 1489 "matching-timeout",
1490 {'s', "strings-file", "FILENAME", 1490 "TIMEOUT",
1491 gettext_noop ("name of file with input strings"), 1491 gettext_noop ("wait TIMEOUT before ending the experiment"),
1492 GNUNET_YES, &GNUNET_GETOPT_set_filename, &strings_file}, 1492 &search_timeout_time),
1493 {'H', "hosts-file", "FILENAME", 1493
1494 gettext_noop ("name of file with hosts' names"), 1494 GNUNET_GETOPT_OPTION_FILENAME ('p',
1495 GNUNET_YES, &GNUNET_GETOPT_set_filename, &hosts_file}, 1495 "policy-dir",
1496 "DIRECTORY",
1497 gettext_noop ("directory with policy files"),
1498 &policy_dir),
1499
1500
1501 GNUNET_GETOPT_OPTION_FILENAME ('s',
1502 "strings-file",
1503 "FILENAME",
1504 gettext_noop ("name of file with input strings"),
1505 &strings_file),
1506
1507 GNUNET_GETOPT_OPTION_FILENAME ('H',
1508 "hosts-file",
1509 "FILENAME",
1510 gettext_noop ("name of file with hosts' names"),
1511 &hosts_file),
1512
1496 GNUNET_GETOPT_OPTION_END 1513 GNUNET_GETOPT_OPTION_END
1497 }; 1514 };
1498 int ret; 1515 int ret;