|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
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)
(C) 2023-2025 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file parser_md_common.c.
Format text for Markdown output.
Definition at line 24 of file parser_md_common.c.
Definition at line 29 of file parser_md_common.c.
Referenced by G__md_print_python_long_version(), and G__md_print_python_short_version().
Definition at line 56 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 86 of file parser_md_common.c.
Referenced by G__md_print_python_short_version().