Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

indent (Unix)

From Wikipedia, the free encyclopedia
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Indent" Unix – news ·newspapers ·books ·scholar ·JSTOR
(April 2014) (Learn how and when to remove this message)
indent
Original authorDavid Willcox
DevelopersDavid Ingamells, Carlo Wood, Joseph Arceneaux, Jim Kingdon, John Bridges
Initial releaseNovember 1976; 49 years ago (1976-11)
Stable release
2.2.13[1] / 20 March 2023; 2 years ago (20 March 2023)
Written inC
Operating systemCross-platform
Typesource-code-reformat tool
LicenseGNU:GPL-3.0-or-later[2]
WebsiteGNU:gnu.org/software/indent/
Repository

indent is aUnixutility that reformatsC andC++ code in a user-definedindentation style andcoding style. Support for C++ code is minimal.[3]

The original version of indent was written by David Willcox at theUniversity of Illinois in November 1976. It was incorporated into4.1BSD in October 1982.[4] GNU indent was first written by Jim Kingdon in 1989. The command is available as a separate package forMicrosoft Windows as part of theUnxUtils collection ofnativeWin32ports of common GNU Unix-like utilities.[5]

Examples of usage

[edit]

The followingcommand

$indent-st-bap-bli0-i4-l79-ncs-npcs-npsl-fca-lc79-fc1-ts4some_file.c

indentssome_file.c in a style resemblingBSD/Allman style and writes the result to thestandard output.

GNU indent

[edit]

GNU indent is theGNU Project's version of indent. A different indentation style, theGNU style, is used by default.[6]

References

[edit]
  1. ^"NEWS - indent.git". Retrieved16 May 2023.
  2. ^GNU Savannah."GNU indent". Retrieved2023-10-30.License: GNU General Public License v3 or later
  3. ^"indent: Indent and Format C Program Source".www.gnu.org. Retrieved2019-08-16.
  4. ^Dickey, Thomas (2017)."CINDENT - C-language formatter".Invisible Island. Retrieved2019-04-22.
  5. ^"Native Win32 ports of some GNU utilities".unxutils.sourceforge.net.
  6. ^GNU Indent Manual

External links

[edit]
History
Licenses
Software
Contributors
Other topics


Stub icon

ThisUnix-related article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Indent_(Unix)&oldid=1305062440"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp