Introduce convertible module #49

Merged
raster merged 35 commits from rafspiny/enlightenment:master into master 2024-03-12 07:20:21 -07:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 4ea8172e51 - Show all commits

View File

@ -11,7 +11,7 @@
DbusAccelerometer* accelerometer_dbus;

shouldnt accelerometer_dbus be static?

shouldnt accelerometer_dbus be static?

Made it static.

Made it static.
DbusAccelerometer*

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?

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?

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

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)

View File

@ -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

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.

Done

Done
void
rafspiny marked this conversation as resolved Outdated

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.

Done

Done