ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Evgeny Yugov <yugov@scs-900.ru>
To: Grigory Batalov <community@altlinux.ru>
Subject: Re: [Comm] Форматирование исходников
Date: Mon, 22 Mar 2004 13:52:13 +0600
Message-ID: <1646586057.20040322135213@scs-900.ru> (raw)
In-Reply-To: <20040322102154.04e401d6.bga-no-spam@kovgok.ru>

Здравствуйте Grigory,

Monday, March 22, 2004, 1:21:54 PM, you wrote:

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

GB> Хочу отформатировать исходники на C и PHP для улучшения
GB> читабельности. Заменить отступы табуляциями, поставить пробелы
GB> вокруг операторов и т.п. Есть ли для этого инструментарий?

GB> Например, заменить

GB>  if(a!=b)
GB>    { c=0;
GB>      /* some command */
GB>     }

GB> на

GB> if (a != b) {
GB> 	c=0;
GB> 	/* some command */
GB> }

Не оно?:

[john@bug0 john]$ apt-cache show indent
Package: indent
Section: Development/C
Installed Size: 220
Maintainer: Dmitry V. Levin <ldv@altlinux.org>
Version: 2.2.9-alt3
Pre-Depends: /usr/sbin/install_info, /usr/sbin/uninstall_info, /bin/sh, /bin/sh, rpmlib(PayloadFilesHavePrefix) (<= 4.0-1), rpmlib(CompressedFileNames) (<= 3.0.4-1)
Depends: libc.so.6, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1)
Provides: indent (= 2.2.9-alt3)
Architecture: i586
Size: 101565
MD5Sum: 224f6ff94c4de32d66c3de5ffcc29c2d
Filename: indent-2.2.9-alt3.i586.rpm
Description: A GNU program for formatting C code
 Indent is a GNU program for beautifying C code, so that it is easier to read.
 Indent can also convert from one C writing style to a different one.
 Indent understands correct C syntax and tries to handle incorrect C syntax.



-- 
With Best regards,
Evgeny Yugov,
MTS, programmer of Advanced Technologies Departament.
Registered Linux User #316667
mailto:yugov@scs-900.ru

Origin: Я знаю дзюдо,самбо,каpате и много дpyгих стpашных слов.



      parent reply	other threads:[~2004-03-22  7:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-22  7:21 Grigory Batalov
2004-03-22  7:34 ` Denis Klykvin
2004-03-22  8:20   ` Grigory Batalov
2004-03-22  7:52 ` Evgeny Yugov [this message]

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=1646586057.20040322135213@scs-900.ru \
    --to=yugov@scs-900.ru \
    --cc=community@altlinux.ru \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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