Skip to content
Snippets Groups Projects
Commit 5caffe3d authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

README: update for gst-indent

parent 69fe5bd7
No related branches found
No related tags found
Loading
README for GNU indent 2.2.12 gst-indent-1.0
============================ ==============
GNU indent changes the appearance of a C program by inserting or gst-indent is a fork of GNU indent 2.12.2, stripped down to the basics and
deleting whitespace according to a plethora of options. Some using Meson as its build system in order to be easily buildable as part of
canned styles of formatting are supported as well. GNU indent is the GStreamer monorepo on Windows, macOS and Linux and to provide convenient
a descendant of BSD indent. This file is part of the GNU indent source code formatting verification on these systems.
distribution.
By default it also applies the indent options GStreamer uses for its formatting.
GNU indent does NOT work for C++, if it does for you then you're
just lucky. Don't expect support for C++. The reason we use a custom fork is that GNU indent frequently changes the
formatted output in a way that is not backwards-compatible on new releases,
Read the file NEWS for more information, especially to see what's and often without an option to toggle it back to the previous way of formatting
different from the last version, and what future versions may do. things. That then forces us to re-indent the entire code base accordingly or
tell developers to stick to an older version, which isn't really a viable
To install indent, please read the file INSTALL included with the strategy with people using a wide range of distros and distro versions
distribution. for their development environment.
For license and copying information, see the file COPYING. By using our custom fork we can stay in control when to apply which updates to
the formatter tool and the formatting, and also provide out-of-the-box local
Documentation indentation verification to Windows users working in an MSVC environment.
-------------
For complete documentation on the Web, please visit:
http://www.gnu.org/software/indent/
GNU uses a language called "texinfo" for its documentation source
which produces both an on-line, interactive version and a hardcopy
version for printing. An HTML version is now produced as well.
The on-line versions, `indent.info` and `indent.1`, are installed
along with the executable by typing "make install".
Refer to the Texinfo manual for more information on the `info` system.
The hardcopy version is produced from the source file `indent.texinfo`
in a pdf or Postscript format file. To produce the pdf
version type:
make pdf
To produce the Postscript version, type:
make ps
Note that you must have the TeX typographical system installed for
this to work.
The HTML version is included along with the distribution, and
consists of the file:
doc/indent.html
This file can also be accessed at the URL
http://www.gnu.org/software/indent/manual/
To create the HTML version from the texinfo version, type:
make html
Obviously you will need the texi2html tool.
Bug reports
-----------
Please address bug-reports and suggestions or comments to:
bug-indent@gnu.org
How to report bugs:
Please begin your bug report with a concise and factual description
of the behaviour you consider to be abberant. If you have narrowed
the problem down to the use of a particular option, please mention
that. In general, also be sure to mention the command line options
used to invoke indent, as well as the contents of your .indent.pro
if you are using one.
Then include the *smallest possible* piece of code which generates
the described symptom. It is very helpful if you can manage to
reduce the size of the sample code.
Finally, if you have investigated the problem further, include
debugger stack traces, modifications, or speculation you have.
Sending code
------------
If you send a patch as part of your bug fix, or send us code for new
features, please send them as diffs. In particular, include the
result of `diff -c <old_file> <new_file>`.
Please make sure that patches you provide apply cleanly to the latest
code published in the Mercurial repo:
https://hg.savannah.gnu.org/hgweb/indent/
Because of the regression testing the project requires of indent,
it is extremely unlikely that your code will be installed into indent
"as-is"; however it may still be helpful, and will likely have
solved your particular problem.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment