Strip tabs and trailing white spaces, and fix end of files (#748)
* format: Strip trailing whitespaces
We want to get rid of trailing whitespaces completly as they make just git
noice. Much better to start using automated tools to get rid of them once and
not getting them back again. This way git history will be cleaner and review
easier.
Commit was generated with:
pre-commit run --all-files trailing-whitespace
* format: Files should have exactly one new line end of them
It is good practice that every file has one new line. It is not now days so
mandatory but it also is not nice if file has lot of newlines end of it. We will
use pre-commit which takes automatically care about this so let's fix all.
Commit was generated with:
pre-commit run --all-files end-of-file-fixer
* format: Convert tabs to spaces
Project mostly use spaces over tabs. When mixing tabs and spaces this usually
makes formatting issues and also when changing those in commits it will make lot
of git noise. We will force spaces most of the time and use pre-commit to fix.
Commit was generated with:
pre-commit run --all-files remove-tabs
---------
Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
if BACNETSTACK
|
||||
|
||||
config BACNET_USE_DYNAMIC_DESCRIPTION
|
||||
bool "Use dynalic allocate for objects descriptions"
|
||||
default false
|
||||
help
|
||||
Use dynalic allocate for objects descriptions
|
||||
bool "Use dynalic allocate for objects descriptions"
|
||||
default false
|
||||
help
|
||||
Use dynalic allocate for objects descriptions
|
||||
|
||||
endif # BACNETSTACK
|
||||
|
||||
@@ -15,7 +15,7 @@ void Analog_Input_Init(void)
|
||||
{
|
||||
if (!Object_List) {
|
||||
Object_List = Keylist_Create();
|
||||
|
||||
|
||||
#if defined(INTRINSIC_REPORTING)
|
||||
/* Set handler for GetEventInformation function */
|
||||
handler_get_event_information_set(
|
||||
|
||||
@@ -15,7 +15,7 @@ void Analog_Value_Init(void)
|
||||
{
|
||||
if (!Object_List) {
|
||||
Object_List = Keylist_Create();
|
||||
|
||||
|
||||
#if defined(INTRINSIC_REPORTING)
|
||||
/* Set handler for GetEventInformation function */
|
||||
handler_get_event_information_set(
|
||||
|
||||
@@ -8,4 +8,3 @@
|
||||
#include "bacnet/basic/object/bacfile.h"
|
||||
|
||||
OBJECT_FUNCTIONS(Bacfile, BACNET_FILE_LISTING);
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ static object_functions Routing_object = {
|
||||
};
|
||||
static bool routing_Device = false;
|
||||
|
||||
/* In Zephyr port the object_functions table is saved in ROM and
|
||||
/* In Zephyr port the object_functions table is saved in ROM and
|
||||
can't change fields value.
|
||||
Instead this Device_Objects_Get_First(Next)_Object() returns the "Routing"
|
||||
object when asked "Device" object, see static filter functions. */
|
||||
@@ -86,7 +86,7 @@ struct object_functions *Device_Objects_Get_Next_Object(
|
||||
{
|
||||
if (object == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
object = Device_Object_Filter_In(object);
|
||||
++object;
|
||||
|
||||
|
||||
@@ -10,4 +10,3 @@
|
||||
#include "bacnet/basic/object/mso.h"
|
||||
|
||||
OBJECT_FUNCTIONS(Multistate_Output, MULTISTATE_OUTPUT_DESCR);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user