Spencer Collyer wrote:
> On Sun, 8 Feb 2009 20:40:09 -0800, Garrett Whelan wrote:
>> ... Oh, also what is this declaration structure:
>> 2038 static void
>> 2039 list_func_vars(first)
>> 2040 int *first;
>> 2041 {
>> 2042 if (current_funccal != NULL)
>> 2043 list_hashtable_vars(¤t_funccal->l_vars.dv_hashtab,
>> 2044 (char_u *)"l:", FALSE, first);
>> 2045 }
>>
>> I've never seen that in C before. Declaring variables after the
>> arguments but before the body?
>
> That is the original style of function declaration in C, from back in
> the K&R first edition days.
Yes. Note, though, they are not variables being defined (or even
declared), but the types of the function arguments being declared. You
can't just define variables there, it is the place to declare the
arguments' types, though.
Ben.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---