Kredns
Kredns

Reputation: 37211

A program to change my C/GTK+ code to comply with GEdit's standards

I'm going to be making changes to my version of GEdit. I would also like to submit some of my code to the actual GEdit team (bug fixes and stuff like that). GEdit uses a standard to format code like so:

static void hello( GtkWidget *widget,
                   gpointer   data )
{
    g_print ("Hello World\n");
}

Which I forget (can't stand) to use. I format my code like so:

static void hello(GtkWidget *widget, gpointer data)
{
    g_print("Hello World\n");
}

I was just wondering if there was a program that I could run on my code that would format my code to comply to GEdit's standards?

Upvotes: 1

Views: 160

Answers (1)

vs.
vs.

Reputation: 66

I think GNU indent (http://www.gnu.org/software/indent/) is what you need.

Upvotes: 5

Related Questions