18 #include "manage_local_proto.h"
49 if (strcmp(p->
key,
"raster") == 0 || strcmp(p->
key,
"raster_3d") == 0)
51 else if (strcmp(p->
key,
"vector") == 0)
53 else if (strcmp(p->
key,
"region") == 0)
55 else if (strcmp(p->
key,
"group") == 0)
75 for (len = 0, n = 0; n <
nlist; n++)
76 len += strlen(
list[n].alias) + 1;
81 for (n = 0; n <
nlist; n++) {
84 strcat(str,
list[n].alias);
109 const char *str_all =
"all;all types";
111 for (len = 0, n = 0; n <
nlist; n++) {
112 len += strlen(
list[n].alias) + 1;
113 len += strlen(
list[n].text) + 1;
116 len += strlen(str_all) + 1;
119 for (n = 0; n <
nlist; n++) {
122 strcat(str,
list[n].alias);
124 strcat(str,
list[n].text);
129 strcat(str,
list[n].text);
135 strcat(str, str_all);
struct Option * G_define_option(void)
Initializes an Option struct.
int G_asprintf(char **, const char *,...) __attribute__((format(printf
const char * M_get_options(int do_all)
Get list of element types separated by comma.
const char * M_get_option_desc(int do_all)
Get list of element desc separated by comma.
struct Option * M_define_option(int n, const char *desc, int multiple)
Define option for parser.
Structure that stores option information.