octave-maintainers
[Top][All Lists]
Advanced

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

Pointer convention for functions


From: Rik
Subject: Pointer convention for functions
Date: Mon, 24 Apr 2017 17:21:52 -0700

jwe,

What do you think about using the spaced out style for function
declarations which return a pointer object?

For example:

corefcn/mexproto.h:78:extern OCTINTERP_API const char *mexFunctionName (void);

I think this would be clearer if it were written as

extern OCTINTERP_API const char * mexFunctionName (void);

This would also be in keeping with our guidelines for declaring functions
which says that the return type should appear alone on the first line
followed by the name of the function and the list of arguments.

extern OCTINTERP_API const char *
mexFunctionName (void)
{
  ...
}

--Rik




reply via email to

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