bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] space between * and identifier in function definition


From: Derek M. Flynn
Subject: [Bug-indent] space between * and identifier in function definition
Date: Tue, 28 May 2002 12:23:47 -0500

Hello,

First off, I wanted to thank you for maintaining a tool that
saves me an enourmous amount of time and frustration.

I noticed that when I run the following through GNU indent (2.2.8):

void
foo(XEvent *event)
{
  /* Do something */
}

The output is formatted as (notice the space between * and event):

void
foo(XEvent * event)   <<<--- look here
{
  /* Do something */
}

Whereas if I format the following:

void
foo(int *ptr)
{
  /* Do something */
}

It comes out unchanged.  I tried this without an .indent.pro.

The problem seems to occur anytime the pointer points to a non-
primitive data type.

Is this a known issue?  I can't find a documented option to
control the behavior -- is there one?

Thanks,

-Derek




reply via email to

[Prev in Thread] Current Thread [Next in Thread]