• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/gdb/gdb/cli/

Lines Matching refs:arg

37 parse_auto_binary_operation (const char *arg)
39 if (arg != NULL && *arg != '\0')
41 int length = strlen (arg);
42 while (isspace (arg[length - 1]) && length > 0)
44 if (strncmp (arg, "on", length) == 0
45 || strncmp (arg, "1", length) == 0
46 || strncmp (arg, "yes", length) == 0
47 || strncmp (arg, "enable", length) == 0)
49 else if (strncmp (arg, "off", length) == 0
50 || strncmp (arg, "0", length) == 0
51 || strncmp (arg, "no", length) == 0
52 || strncmp (arg, "disable", length) == 0)
54 else if (strncmp (arg, "auto", length) == 0
55 || (strncmp (arg, "-1", length) == 0 && length > 1))
63 parse_binary_operation (char *arg)
67 if (!arg || !*arg)
70 length = strlen (arg);
72 while (arg[length - 1] == ' ' || arg[length - 1] == '\t')
75 if (strncmp (arg, "on", length) == 0
76 || strncmp (arg, "1", length) == 0
77 || strncmp (arg, "yes", length) == 0
78 || strncmp (arg, "enable", length) == 0)
80 else if (strncmp (arg, "off", length) == 0
81 || strncmp (arg, "0", length) == 0
82 || strncmp (arg, "no", length) == 0
83 || strncmp (arg, "disable", length) == 0)
125 do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
138 if (arg == NULL)
139 arg = "";
140 new = (char *) xmalloc (strlen (arg) + 2);
141 p = arg;
177 if (arg == NULL)
178 arg = "";
181 *(char **) c->var = savestring (arg, strlen (arg));
184 if (arg == NULL)
185 arg = "";
188 *(char **) c->var = savestring (arg, strlen (arg));
191 if (arg == NULL)
197 char *ptr = arg + strlen (arg) - 1;
198 while (ptr >= arg && (*ptr == ' ' || *ptr == '\t'))
202 *(char **) c->var = tilde_expand (arg);
205 *(int *) c->var = parse_binary_operation (arg);
208 *(enum auto_boolean *) c->var = parse_auto_binary_operation (arg);
211 if (arg == NULL)
213 *(unsigned int *) c->var = parse_and_eval_long (arg);
220 if (arg == NULL)
222 val = parse_and_eval_long (arg);
232 if (arg == NULL)
234 *(int *) c->var = parse_and_eval_long (arg);
245 if (arg == NULL)
259 p = strchr (arg, ' ');
262 len = p - arg;
264 len = strlen (arg);
268 if (strncmp (arg, c->enums[i], len) == 0)
284 error (_("Undefined item: \"%s\"."), arg);
287 error (_("Ambiguous item \"%s\"."), arg);