This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA, doc RFA] Add gdb.add_command_alias (now: alias foo = bar)


>>>>> "Doug" == Doug Evans <dje@google.com> writes:

Doug> I will check this in next week if there are no objections.

No objections from me, but a nit.

Doug> +  static const char usage[] = "Usage: alias [-a] [--] ALIAS = COMMAND";
Doug> +
Doug> +  if (args == NULL || strchr (args, '=') == NULL)
Doug> +    error (_(usage));

For this to work with gettext, the usage string itself must be wrapped
with the N_ macro.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]