ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: php-coder <php-coder@altlinux.ru>
To: devel@lists.altlinux.org
Subject: [devel] Использование fprintf и cerr
Date: Fri, 11 Nov 2005 17:54:08 +0600
Message-ID: <20051111115408.GA18676@mycomp.mydomain> (raw)


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

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

    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



             reply	other threads:[~2005-11-11 11:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-11 11:54 php-coder [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051111115408.GA18676@mycomp.mydomain \
    --to=php-coder@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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