/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
staticconstchar kSbSizeWarningString[] = "super_block_size has to be 64 or 128."; staticconstchar kMinpartWarningString[] = "min_partition_size has to be smaller or equal to max_partition_size."; staticconstchar kMaxpartWarningString[] = "max_partition_size has to be smaller or equal to super_block_size.";
// Short options are indented with two spaces. Long options are indented // with 12 spaces. if (def->short_name && def->long_name) { char *comma = def->has_val ? "," : ", ";
n = fprintf(fp, " -%s%s%s --%s%s", def->short_name, short_val, comma,
def->long_name, long_val);
} elseif (def->short_name)
n = fprintf(fp, " -%s%s", def->short_name, short_val); elseif (def->long_name)
n = fprintf(fp, " --%s%s", def->long_name, long_val);
// Descriptions are indented with 40 spaces. If an option is 40 characters // or longer, its description starts on the next line. if (n < 40) for (int i = 0; i < 40 - n; i++) fputc(' ', fp); else
fputs("\n ", fp);
fprintf(fp, "%s\n", def->desc);
if (def->enums) { conststruct arg_enum_list *listptr;
int arg_parse_enum(conststruct arg *arg) { char err_msg[ARG_ERR_MSG_MAX_LEN]; int ret = arg_parse_enum_helper(arg, err_msg); if (err_msg[0] != '\0') {
die("%s", err_msg);
} return ret;
}
int arg_parse_enum_or_int(conststruct arg *arg) { char err_msg[ARG_ERR_MSG_MAX_LEN]; int ret = arg_parse_enum_or_int_helper(arg, err_msg); if (err_msg[0] != '\0') {
die("%s", err_msg);
} return ret;
}
// parse a comma separated list of at most n integers // return the number of elements in the list int arg_parse_list(conststruct arg *arg, int *list, int n) { char err_msg[ARG_ERR_MSG_MAX_LEN]; int ret = arg_parse_list_helper(arg, list, n, err_msg); if (err_msg[0] != '\0') {
die("%s", err_msg);
} return ret;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.38 Sekunden
(vorverarbeitet am 2026-04-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.