pspad:
--------------------------------------------------------------------------------
I am not a C++ programmer
Is there sombody, who can define all cases of function definition? I can fix it,
but I don't want to do it 10x
--------------------------------------------------------------------------------

I think the only thing you are missing is the * in the type.

Function definition in pseudo-regular expression:
[extern|static]*\s+type\s*[\*]*\s+function-name\(parameters\)\s*
\{
 function body
\}

examples:
void foo1(void){stuff;}

int foo2(void)
{}

extern int foo3(int a)
{}

static extern int* foo4(int a)
{}

char foo5(int a, char b) {}

char *
foo6(int a, ...)
{
}

-- 
<http://forum.pspad.com/read.php?2,55341,55384>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem