[TxMt] C bundle: Functions with multi-line argument lists

John Kooker jkooker at apple.com
Fri Jun 8 00:10:40 UTC 2007


Hi all,

My C/C++ code doesn't always get parsed correctly, and I think I've  
narrowed the problem down: the bundle doesn't seem to like it when my  
parentheses are on separate lines. An example:

---------------------------

int a (int *p);

int
main (
	  void
	  )
{
   int *p = 0;   /* null pointer */
   return a (p);
}

int
a (
    int *p
    )
{
   int y = *p;
   return y;
}

---------------------------
Is this intended? If not, how can I fix it?

Thanks!
John



More information about the textmate mailing list