Introduce convertible module #49
|
@ -11,7 +11,7 @@
|
|||
DbusAccelerometer* accelerometer_dbus;
|
||||
|
||||
|
||||
DbusAccelerometer*
|
||||
raster
commented
functions in C that take NO arguments are (void) not (). () means "i accept any number of arguments of an undefined type". :) also some funcs are
some are
with return type on previous line - be consistent and maybe do the latter? functions in C that take NO arguments are (void) not (). () means "i accept any number of arguments of an undefined type". :)
also some funcs are
int func(int x)
{
}
some are
int
func(int x)
{
}
with return type on previous line - be consistent and maybe do the latter?
rafspiny
commented
Corrected the linting for function to be
Also in the headers
Do we have a linting configi file somewhere? So we can get this kind of comments automatically? Like clang Corrected the linting for function to be
```
int
func(int x)
{
}
```
Also in the headers
```
int
func(int x);
```
Do we have a linting configi file somewhere? So we can get this kind of comments automatically? Like clang
|
||||
sensor_proxy_init()
|
||||
sensor_proxy_init(void)
|
||||
{
|
||||
// Initialise DBUS component
|
||||
if (accelerometer_dbus)
|
||||
|
|
|
@ -26,7 +26,7 @@ struct _DbusAccelerometer
|
|||
/**
|
||||
* Fetch the DBUS interfaces and fill the DbusAccelerometer struct
|
||||
* */
|
||||
DbusAccelerometer* sensor_proxy_init();
|
||||
DbusAccelerometer* sensor_proxy_init(void);
|
||||
rafspiny marked this conversation as resolved
Outdated
raster
commented
func() in c means zero OR more arguments - unknown. (void) means no arguments at all. different to c++ and other langs. func() in c means zero OR more arguments - unknown. (void) means no arguments at all. different to c++ and other langs.
rafspiny
commented
Done Done
|
||||
|
||||
|
||||
void
|
||||
rafspiny marked this conversation as resolved
Outdated
raster
commented
func() in c means zero OR more arguments - unknown. (void) means no arguments at all. different to c++ and other langs. func() in c means zero OR more arguments - unknown. (void) means no arguments at all. different to c++ and other langs.
rafspiny
commented
Done Done
|
||||
|
|
Loading…
Reference in New Issue
shouldnt accelerometer_dbus be static?
Made it static.