|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
|
GIS Library - Argument parsing functions (Markdown output) More...
#include <stdio.h>#include <string.h>#include <grass/gis.h>#include <grass/glocale.h>#include "parser_local_proto.h"
Go to the source code of this file.
Macros | |
| #define | do_escape(c, escaped) |
| Format text for Markdown output. | |
Functions | |
| void | G__md_print_escaped (FILE *f, const char *str, const char *indent) |
| void | G__md_print_escaped_for_options (FILE *f, const char *str) |
| int | G__option_num_tuple_items (const struct Option *opt) |
| Get number of tuple items if option is a tuple. | |
GIS Library - Argument parsing functions (Markdown output)
SPDX-FileCopyrightText: 2023-2025 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file parser_md_common.c.
Format text for Markdown output.
Definition at line 22 of file parser_md_common.c.
Definition at line 27 of file parser_md_common.c.
Referenced by G__md_print_python_long_version(), and G__md_print_python_short_version().
Definition at line 54 of file parser_md_common.c.
References do_escape.
Get number of tuple items if option is a tuple.
Note that parser code generally does not consider tuples with only one item, so this function never returns 1.
The number of items is determined by counting commas in the option key description.
| opt | Option definition |
Definition at line 84 of file parser_md_common.c.
Referenced by G__md_print_python_short_version().