Lines Matching defs:alias

552 /* Add an alias to the list of info subcommands.  */
569 /* Add an alias or abbreviation command to the list of commands. */
1008 /* We drop the alias (abbreviation) in favor of the command it is
1009 pointing to. If the alias is deprecated, though, we need to
1011 are warning about the alias, we may also warn about the command
1186 /* We are here presumably because an alias or command in *TEXT is
1191 Example for 'set endian big' which has a fictitious alias 'seb'.
1193 If alias wasn't used in *TEXT, and the command is deprecated:
1196 If alias was used, and only the alias is deprecated:
1197 "warning: 'seb' an alias for the command 'set endian big' is deprecated."
1199 If alias was used and command is deprecated (regardless of whether the
1200 alias itself is deprecated:
1205 command and/or the alias so the user is no longer bothered.
1211 struct cmd_list_element *alias = NULL;
1217 if (!lookup_cmd_composition (*text, &alias, &prefix_cmd, &cmd))
1221 if (!((alias ? (alias->flags & DEPRECATED_WARN_USER) : 0)
1228 if (alias && !(cmd->flags & CMD_DEPRECATED))
1229 printf_filtered (" '%s', an alias for the", alias->name);
1238 if (alias && (cmd->flags & CMD_DEPRECATED))
1239 printf_filtered ("' (%s) is deprecated.\n", alias->name);
1244 /* if it is only the alias that is deprecated, we want to indicate the
1245 new alias, otherwise we'll indicate the new command */
1247 if (alias && !(cmd->flags & CMD_DEPRECATED))
1249 if (alias->replacement)
1250 printf_filtered ("Use '%s'.\n\n", alias->replacement);
1263 if (alias)
1264 alias->flags &= ~DEPRECATED_WARN_USER;
1274 If LINE refers to an alias, *alias will point to that alias.
1281 If any of *alias, *prefix_cmd, or *cmd cannot be determined or do not
1287 struct cmd_list_element **alias,
1295 *alias = NULL;
1372 /* cmd was actually an alias, we note that an alias was used
1375 *alias = *cmd;