public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* code that could be improved
@ 2004-03-01 23:57 Roland Illig
  2004-03-02  9:21 ` Joseph S. Myers
  2004-03-02  9:54 ` Zack Weinberg
  0 siblings, 2 replies; 12+ messages in thread
From: Roland Illig @ 2004-03-01 23:57 UTC (permalink / raw)
  To: bug-gcc

Hi,

I'm currently translating gcc-3.4-b20040206 into German. Here is a list
of things I don't like in the current code:

- various quoting techniques: `foo', 'bar', "baz".
   => please use `foo' consistently
- inconsistent usage of `member' and `field'
   => does a struct have `field's or `member's?
   => What about unions?
   => What about C++ classes?
- some message patterns could be simplified for translation.
   for example "invalid %%f value" and "invalid %%H value" will
   always be translated with just replacing "f" by "H", won't it?
   So the code should look like

       sprintf(foo, "invalid %%%c value", 'f');

But there are also things I was happy to see:

- the new format for command line options using "-switch\tdescription"

I'll continue this list while translating further.

Roland



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-03-02 17:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-01 23:57 code that could be improved Roland Illig
2004-03-02  9:21 ` Joseph S. Myers
2004-03-02  9:26   ` Roland Illig
2004-03-02  9:52   ` Zack Weinberg
2004-03-02 11:35     ` Joseph S. Myers
2004-03-02 12:06       ` Gabriel Dos Reis
2004-03-02 12:58         ` Joseph S. Myers
2004-03-02 13:19           ` Gabriel Dos Reis
2004-03-02 16:49             ` Joseph S. Myers
2004-03-02 17:13               ` Gabriel Dos Reis
2004-03-02 11:58   ` Gabriel Dos Reis
2004-03-02  9:54 ` Zack Weinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).