ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Использование fprintf и cerr
@ 2005-11-11 11:54 php-coder
  2005-11-11 13:02 ` Vital Khilko
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: php-coder @ 2005-11-11 11:54 UTC (permalink / raw)
  To: devel


    Здравствуйте!

    Встретил в исходниках следующий код:

    if (format == 0) {
       cerr<<"FbTk::Transparent: ";
       fprintf(stderr, _("Failed to find format for screen(%d)"), screen_num);
       cerr<<endl;
    }

    Програма написана на С++. Хотел бы узнать, что могло подтолкнуть
    разработчиков на использование двух разных ф-ций для вывода в stderr?
    Почему бы не использовать только cerr, к примеру? И стОит ли это
    исправлять? Также интересно, узнать ваше мнение о том, стОит ли
    выносить то, что не нуждается в переводе? К примеру, в данном случае
    это '(%d)'. Т.е. лучше ли и правильнее ли если переписать это так:

    cerr << "FbTk::Transparent" << _("Failed to find format for screen")
         << "(" << screen_num << ")" << endl;
    

    Спасибо.

-- 
+ php-coder
+ php-coder[at]altlinux[dot]ru



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

end of thread, other threads:[~2005-11-11 22:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-11 11:54 [devel] Использование fprintf и cerr php-coder
2005-11-11 13:02 ` Vital Khilko
2005-11-11 13:38 ` Stanislav Ievlev
2005-11-11 13:41 ` Andrey Rahmatullin
2005-11-11 15:00   ` Alexander Borovsky
2005-11-11 15:59     ` Andrey Rahmatullin
2005-11-11 18:38       ` Alexander Borovsky
2005-11-11 22:59       ` Alexey Rusakov

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git