473,387 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

[gcc] indent -kr

I'm relatively new to gnu, as I'm more from the mingw side. Anyways, I'm
trying to build the gcc indent tool. This is what it looks like now:

http://i37.tinypic.com/2wntwuw.jpg

Somehow, I've got to make this look like:

//indent.c:

#include <stdio.h>

int main(void)
{

int c;
char name[]="dan";
fprintf(stderr, "not even close %s\n", name);

return 0;
}
// gcc -o indent -std=c99 -pedantic -Wall -W indent1.c
// indent >text55.txt 2>text56.txt

This template includes commented-out compiler commands at the end. How do
I better utilize c? Thanks and cheers,
--
Unquestionably, there is progress. The average American now pays out twice
as much in taxes as he formerly got in wages. 1
H. L. Mencken
Aug 2 '08 #1
4 2022
Ron Ford wrote:

<snip>

Your post makes absolutely no sense. What was the purpose of showing us
your desktop? And what was the purpose of that code snippet?

Aug 2 '08 #2
Ron Ford <ro*@example.invalidwrites:
I'm relatively new to gnu, as I'm more from the mingw side. Anyways, I'm
trying to build the gcc indent tool. This is what it looks like now:

http://i37.tinypic.com/2wntwuw.jpg

Somehow, I've got to make this look like:
[snip]

I haven't quoted the last part of your article, since it has no
relationship to the first as far as I can tell.

<OT>
One of the files shown in your screenshot is called "INSTALL".
</OT>

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Aug 2 '08 #3
On Fri, 01 Aug 2008 23:58:12 -0700, Keith Thompson posted:
Ron Ford <ro*@example.invalidwrites:
>I'm relatively new to gnu, as I'm more from the mingw side. Anyways, I'm
trying to build the gcc indent tool. This is what it looks like now:

http://i37.tinypic.com/2wntwuw.jpg

Somehow, I've got to make this look like:
[snip]

I haven't quoted the last part of your article, since it has no
relationship to the first as far as I can tell.
I intend to make it relevant using the C Programming Language.
>
<OT>
One of the files shown in your screenshot is called "INSTALL".
</OT>
I indent to make relevant a subject you just mentioned as a criticism.
Apparently, it wasn't OT then.

I think some people take joy with my initial pratfall in a gnu project.

--
We must respect the other fellow's religion, but only in the sense and to
the extent that we respect his theory that his wife is beautiful and his
children smart. 5
H. L. Mencken
Aug 2 '08 #4
On Fri, 01 Aug 2008 23:58:12 -0700, Keith Thompson posted:
Ron Ford <ro*@example.invalidwrites:
>I'm relatively new to gnu, as I'm more from the mingw side. Anyways, I'm
trying to build the gcc indent tool. This is what it looks like now:

http://i37.tinypic.com/2wntwuw.jpg

Somehow, I've got to make this look like:
[snip]

I haven't quoted the last part of your article, since it has no
relationship to the first as far as I can tell.

<OT>
One of the files shown in your screenshot is called "INSTALL".
</OT>
I can see now that this was a linux question in disguise. People think I'm
Italian, though.

I haven't figured out where my C capability lives on my new ubuntu
partition, but I do see that the installation of gcc's indent has an OS
flavor to it.

// Commented-out command lines to gcc are, in my opinion, topical, cf. §7
K&R.
--
War will never cease until babies begin to come into the world with larger
cerebrums and smaller adrenal glands. 2
H. L. Mencken
Aug 8 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: John Wellesz | last post by:
If you are coding php using GVIM, you will appreciate this new indent script: Download there: http://www.vim.org/scripts/download_script.php?src_id=3710 or here: ...
1
by: Vincent | last post by:
I noticed an irritating behaviour of the text-indent property and I wonder if I'm the only one to feel this way about it: it seems that text-indent applies even to floated elements. Although this...
22
by: Firas | last post by:
Hi, Is there a CSSish way to indent a paragraph except for the first line? I tried p:first-line { text-indent: 0em; }
0
by: saabi | last post by:
How to indent length 4 a tab in IE? The text in this CDATA was some html code, it would indent length 8 a tab in IE, but I like to indent length 4 like in the original html editor, How to change...
21
by: Bogdan | last post by:
Can anyone recommend a program for indentation of C preprocessor directives. My file looks like this: #ifdef a #define b #else #define c #endif int main() {
2
by: Chris Seidel | last post by:
Hi, I have a submit-element with a background-image of 16x16 px and the following style: background-image: url("ok.gif"); background-repeat: no-repeat; text-indent: 20 px; The problem is,...
10
by: Divya | last post by:
I want to use indent to selectively format some code anomalies. For example, braces after if, etc. But, when I use the indent progam with - bl option, it does other things as well and changes the...
27
by: Dave | last post by:
I'm having a hard time tying to build gcc 4.3.1 on Solaris using the GNU compilers. I then decided to try to use Sun's compiler. The Sun Studio 12 compiler reports the following code, which is in...
17
by: qartar | last post by:
As the title says, I am porting some code from MSVC (not sure which version, using Visual Studio 2008), which compiles without errors or warnings, to GCC 4.0 which generates a large number of generic...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.