commit b88f1af6ad1ff48fab49280dc1f5598fa253def8
parent 92d22e1a5d58fc53c17bf61e74c84085c5758964
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 18 Dec 2024 12:10:50 +0100
Small source code edition
Remove trailing whitespaces and unecessary linebreaks.
Delete non-breaking spaces; They were mistakenly used instead of normal
spaces
Diffstat:
4 files changed, 34 insertions(+), 36 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,12 +1,12 @@
-# Copyright (C) 2024 Centre National de la Recherche Scientifique
-# Copyright (C) 2024 Clermont Auvergne INP
-# Copyright (C) 2024 INSA Lyon
-# Copyright (C) 2024 Institut Mines Télécom Albi-Carmaux
+# Copyright (C) 2024 Centre National de la Recherche Scientifique
+# Copyright (C) 2024 Clermont Auvergne INP
+# Copyright (C) 2024 INSA Lyon
+# Copyright (C) 2024 Institut Mines Télécom Albi-Carmaux
# Copyright (C) 2024 Institut National Polytechnique de Toulouse
-# Copyright (C) 2024 |Méso|Star> (contact@meso-star.com)
-# Copyright (C) 2024 PhotonLyX (info@photonlyx.com)
-# Copyright (C) 2024 Université de Lorraine
-# Copyright (C) 2024 Université Paul Sabatier
+# Copyright (C) 2024 |Méso|Star> (contact@meso-star.com)
+# Copyright (C) 2024 PhotonLyX (info@photonlyx.com)
+# Copyright (C) 2024 Université de Lorraine
+# Copyright (C) 2024 Université Paul Sabatier
# Copyright (C) 2024 Université Toulouse - Jean Jaurès
#
# This program is free software: you can redistribute it and/or modify
diff --git a/src/sphin.c b/src/sphin.c
@@ -1,12 +1,12 @@
-/* Copyright (C) 2024 Centre National de la Recherche Scientifique
- * Copyright (C) 2024 Clermont Auvergne INP
- * Copyright (C) 2024 INSA Lyon
- * Copyright (C) 2024 Institut Mines Télécom Albi-Carmaux
+/* Copyright (C) 2024 Centre National de la Recherche Scientifique
+ * Copyright (C) 2024 Clermont Auvergne INP
+ * Copyright (C) 2024 INSA Lyon
+ * Copyright (C) 2024 Institut Mines Télécom Albi-Carmaux
* Copyright (C) 2024 Institut National Polytechnique de Toulouse
- * Copyright (C) 2024 |Méso|Star> (contact@meso-star.com)
- * Copyright (C) 2024 PhotonLyX (info@photonlyx.com)
- * Copyright (C) 2024 Université de Lorraine
- * Copyright (C) 2024 Université Paul Sabatier
+ * Copyright (C) 2024 |Méso|Star> (contact@meso-star.com)
+ * Copyright (C) 2024 PhotonLyX (info@photonlyx.com)
+ * Copyright (C) 2024 Université de Lorraine
+ * Copyright (C) 2024 Université Paul Sabatier
* Copyright (C) 2024 Université Toulouse - Jean Jaurès
*
* This program is free software: you can redistribute it and/or modify
@@ -79,23 +79,23 @@ sphin_create
res_T res = RES_OK;
if (out_sphin == NULL) {
- res = RES_BAD_ARG;
+ res = RES_BAD_ARG;
goto error;
}
res = check_sphin_create_args(args);
if (res != RES_OK) goto error;
-
+
if (args->allocator == NULL) {
allocator = &mem_default_allocator;
} else {
allocator = args->allocator;
- }
+ }
sphin = MEM_CALLOC(allocator, 1, sizeof(struct sphin));
if (sphin == NULL) {
res = RES_MEM_ERR;
goto error;
}
- ref_init(&sphin->ref);
+ ref_init(&sphin->ref);
sphin->verbose = args->verbose;
sphin->allocator = allocator;
if (args->logger == NULL) {
@@ -105,7 +105,7 @@ sphin_create
}
exit:
- if (out_sphin != NULL) *out_sphin = sphin;
+ if (out_sphin != NULL) *out_sphin = sphin;
return res;
error:
diff --git a/src/sphin.h b/src/sphin.h
@@ -1,12 +1,12 @@
-/* Copyright (C) 2024 Centre National de la Recherche Scientifique
- * Copyright (C) 2024 Clermont Auvergne INP
- * Copyright (C) 2024 INSA Lyon
- * Copyright (C) 2024 Institut Mines Télécom Albi-Carmaux
+/* Copyright (C) 2024 Centre National de la Recherche Scientifique
+ * Copyright (C) 2024 Clermont Auvergne INP
+ * Copyright (C) 2024 INSA Lyon
+ * Copyright (C) 2024 Institut Mines Télécom Albi-Carmaux
* Copyright (C) 2024 Institut National Polytechnique de Toulouse
- * Copyright (C) 2024 |Méso|Star> (contact@meso-star.com)
- * Copyright (C) 2024 PhotonLyX (info@photonlyx.com)
- * Copyright (C) 2024 Université de Lorraine
- * Copyright (C) 2024 Université Paul Sabatier
+ * Copyright (C) 2024 |Méso|Star> (contact@meso-star.com)
+ * Copyright (C) 2024 PhotonLyX (info@photonlyx.com)
+ * Copyright (C) 2024 Université de Lorraine
+ * Copyright (C) 2024 Université Paul Sabatier
* Copyright (C) 2024 Université Toulouse - Jean Jaurès
*
* This program is free software: you can redistribute it and/or modify
diff --git a/src/sphin_config.c b/src/sphin_config.c
@@ -31,7 +31,6 @@ struct sphin_config {
ref_T ref;
};
-
/*******************************************************************************
* Helper functions
******************************************************************************/
@@ -54,12 +53,12 @@ load_stream
struct sphin_config** config)
{
res_T res = RES_OK;
-
+
ASSERT(NULL != sphin);
ASSERT(NULL != stream);
ASSERT(NULL != streamname);
ASSERT(NULL != config);
-
+
res = config_create(sphin, config);
if (res != RES_OK) {
goto error;
@@ -119,11 +118,10 @@ sphin_load_stream
struct sphin_config** config)
{
if(NULL == sphin
- || NULL == stream
- || NULL == streamname
+ || NULL == stream
+ || NULL == streamname
|| NULL == config) {
- return RES_BAD_ARG;
+ return RES_BAD_ARG;
}
return load_stream(sphin, stream, streamname, config);
}
-