summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-05-13 19:18:28 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-05-14 13:49:17 +0200
commit44b029378aa5ac85d74f53e3bad4734b675387c7 (patch)
treed7422793205df7b504a41bf5de14720456466561 /src
parentcd5f79c8147621aa6226b1b06040b1fcc70a28c8 (diff)
tree-wide: get rid of trailing whitespace (part 5)
Remove trailing whitespaces Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11824
Diffstat (limited to 'src')
-rw-r--r--src/bin/efx/efx_move.c4
-rw-r--r--src/bin/efx/efx_pan.c2
-rw-r--r--src/bin/efx/efx_rotate.c2
-rw-r--r--src/bin/efx/efx_zoom.c2
-rw-r--r--src/bin/system/e_system_cpufreq.c2
-rw-r--r--src/bin/valgrind.h58
6 files changed, 35 insertions, 35 deletions
diff --git a/src/bin/efx/efx_move.c b/src/bin/efx/efx_move.c
index afd215606..34bcc8057 100644
--- a/src/bin/efx/efx_move.c
+++ b/src/bin/efx/efx_move.c
@@ -135,7 +135,7 @@ e_efx_move(Evas_Object *obj, E_Efx_Effect_Speed speed, const Evas_Point *end_poi
135 E_EFX *e; 135 E_EFX *e;
136 E_Efx_Move_Data *emd; 136 E_Efx_Move_Data *emd;
137 Evas_Coord x, y; 137 Evas_Coord x, y;
138 138
139 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE); 139 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
140 if (!end_point) return EINA_FALSE; 140 if (!end_point) return EINA_FALSE;
141 if (total_time < 0.0) return EINA_FALSE; 141 if (total_time < 0.0) return EINA_FALSE;
@@ -179,7 +179,7 @@ e_efx_move_circle(Evas_Object *obj, E_Efx_Effect_Speed speed, const Evas_Point *
179 E_EFX *e; 179 E_EFX *e;
180 E_Efx_Move_Data *emd; 180 E_Efx_Move_Data *emd;
181 Evas_Coord x, y; 181 Evas_Coord x, y;
182 182
183 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE); 183 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
184 if (!degrees) return EINA_FALSE; 184 if (!degrees) return EINA_FALSE;
185 if (!center) return EINA_FALSE; 185 if (!center) return EINA_FALSE;
diff --git a/src/bin/efx/efx_pan.c b/src/bin/efx/efx_pan.c
index 25ee92603..284ba193b 100644
--- a/src/bin/efx/efx_pan.c
+++ b/src/bin/efx/efx_pan.c
@@ -361,7 +361,7 @@ e_efx_pan(Evas_Object *obj, E_Efx_Effect_Speed speed, const Evas_Point *distance
361 E_EFX *e; 361 E_EFX *e;
362 E_Efx_Pan_Data *epd; 362 E_Efx_Pan_Data *epd;
363 Evas_Coord x = 0, y = 0; 363 Evas_Coord x = 0, y = 0;
364 364
365 if (!distance) return EINA_FALSE; 365 if (!distance) return EINA_FALSE;
366 if (total_time < 0.0) return EINA_FALSE; 366 if (total_time < 0.0) return EINA_FALSE;
367 if (speed > E_EFX_EFFECT_SPEED_SINUSOIDAL) return EINA_FALSE; 367 if (speed > E_EFX_EFFECT_SPEED_SINUSOIDAL) return EINA_FALSE;
diff --git a/src/bin/efx/efx_rotate.c b/src/bin/efx/efx_rotate.c
index 057a34507..4c3b3a43d 100644
--- a/src/bin/efx/efx_rotate.c
+++ b/src/bin/efx/efx_rotate.c
@@ -84,7 +84,7 @@ e_efx_rotate(Evas_Object *obj, E_Efx_Effect_Speed speed, double degrees, const E
84{ 84{
85 E_EFX *e; 85 E_EFX *e;
86 E_Efx_Rotate_Data *erd; 86 E_Efx_Rotate_Data *erd;
87 87
88 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE); 88 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
89 if (eina_dbl_exact(degrees, 0)) return EINA_FALSE; 89 if (eina_dbl_exact(degrees, 0)) return EINA_FALSE;
90 if (total_time < 0.0) return EINA_FALSE; 90 if (total_time < 0.0) return EINA_FALSE;
diff --git a/src/bin/efx/efx_zoom.c b/src/bin/efx/efx_zoom.c
index fa0a15eb2..87b6a0e7e 100644
--- a/src/bin/efx/efx_zoom.c
+++ b/src/bin/efx/efx_zoom.c
@@ -121,7 +121,7 @@ e_efx_zoom(Evas_Object *obj, E_Efx_Effect_Speed speed, double starting_zoom, dou
121{ 121{
122 E_EFX *e; 122 E_EFX *e;
123 E_Efx_Zoom_Data *ezd; 123 E_Efx_Zoom_Data *ezd;
124 124
125 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE); 125 EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
126 if (ending_zoom <= 0.0) return EINA_FALSE; 126 if (ending_zoom <= 0.0) return EINA_FALSE;
127 if (starting_zoom < 0.0) return EINA_FALSE; 127 if (starting_zoom < 0.0) return EINA_FALSE;
diff --git a/src/bin/system/e_system_cpufreq.c b/src/bin/system/e_system_cpufreq.c
index dbe12ddc6..e0127ceb7 100644
--- a/src/bin/system/e_system_cpufreq.c
+++ b/src/bin/system/e_system_cpufreq.c
@@ -159,5 +159,5 @@ e_system_cpufreq_init(void)
159void 159void
160e_system_cpufreq_shutdown(void) 160e_system_cpufreq_shutdown(void)
161{ 161{
162 // only shutdown things we really have to - no need to free mem etc. 162 // only shutdown things we really have to - no need to free mem etc.
163} 163}
diff --git a/src/bin/valgrind.h b/src/bin/valgrind.h
index 5aed0dfca..4cbc24a94 100644
--- a/src/bin/valgrind.h
+++ b/src/bin/valgrind.h
@@ -21,16 +21,16 @@
21 1. Redistributions of source code must retain the above copyright 21 1. Redistributions of source code must retain the above copyright
22 notice, this list of conditions and the following disclaimer. 22 notice, this list of conditions and the following disclaimer.
23 23
24 2. The origin of this software must not be misrepresented; you must 24 2. The origin of this software must not be misrepresented; you must
25 not claim that you wrote the original software. If you use this 25 not claim that you wrote the original software. If you use this
26 software in a product, an acknowledgment in the product 26 software in a product, an acknowledgment in the product
27 documentation would be appreciated but is not required. 27 documentation would be appreciated but is not required.
28 28
29 3. Altered source versions must be plainly marked as such, and must 29 3. Altered source versions must be plainly marked as such, and must
30 not be misrepresented as being the original software. 30 not be misrepresented as being the original software.
31 31
32 4. The name of the author may not be used to endorse or promote 32 4. The name of the author may not be used to endorse or promote
33 products derived from this software without specific prior written 33 products derived from this software without specific prior written
34 permission. 34 permission.
35 35
36 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 36 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
@@ -52,13 +52,13 @@
52 the terms of the GNU General Public License, version 2. See the 52 the terms of the GNU General Public License, version 2. See the
53 COPYING file in the source distribution for details. 53 COPYING file in the source distribution for details.
54 54
55 ---------------------------------------------------------------- 55 ----------------------------------------------------------------
56*/ 56*/
57 57
58 58
59/* This file is for inclusion into client (your!) code. 59/* This file is for inclusion into client (your!) code.
60 60
61 You can use these macros to manipulate and query Valgrind's 61 You can use these macros to manipulate and query Valgrind's
62 execution inside your own programs. 62 execution inside your own programs.
63 63
64 The resulting executables will still run without Valgrind, just a 64 The resulting executables will still run without Valgrind, just a
@@ -228,8 +228,8 @@
228 this is executed not under Valgrind. Args are passed in a memory 228 this is executed not under Valgrind. Args are passed in a memory
229 block, and so there's no intrinsic limit to the number that could 229 block, and so there's no intrinsic limit to the number that could
230 be passed, but it's currently five. 230 be passed, but it's currently five.
231 231
232 The macro args are: 232 The macro args are:
233 _zzq_rlval result lvalue 233 _zzq_rlval result lvalue
234 _zzq_default default value (result returned when running on real CPU) 234 _zzq_default default value (result returned when running on real CPU)
235 _zzq_request request code 235 _zzq_request request code
@@ -257,7 +257,7 @@
257 || defined(PLAT_x86_solaris) 257 || defined(PLAT_x86_solaris)
258 258
259typedef 259typedef
260 struct { 260 struct {
261 unsigned int nraddr; /* where's the code? */ 261 unsigned int nraddr; /* where's the code? */
262 } 262 }
263 OrigFn; 263 OrigFn;
@@ -322,7 +322,7 @@ typedef
322#if defined(PLAT_x86_win32) && !defined(__GNUC__) 322#if defined(PLAT_x86_win32) && !defined(__GNUC__)
323 323
324typedef 324typedef
325 struct { 325 struct {
326 unsigned int nraddr; /* where's the code? */ 326 unsigned int nraddr; /* where's the code? */
327 } 327 }
328 OrigFn; 328 OrigFn;
@@ -397,7 +397,7 @@ valgrind_do_client_request_expr(uintptr_t _zzq_default, uintptr_t _zzq_request,
397 || (defined(PLAT_amd64_win64) && defined(__GNUC__)) 397 || (defined(PLAT_amd64_win64) && defined(__GNUC__))
398 398
399typedef 399typedef
400 struct { 400 struct {
401 unsigned long int nraddr; /* where's the code? */ 401 unsigned long int nraddr; /* where's the code? */
402 } 402 }
403 OrigFn; 403 OrigFn;
@@ -469,7 +469,7 @@ typedef
469#if defined(PLAT_ppc32_linux) 469#if defined(PLAT_ppc32_linux)
470 470
471typedef 471typedef
472 struct { 472 struct {
473 unsigned int nraddr; /* where's the code? */ 473 unsigned int nraddr; /* where's the code? */
474 } 474 }
475 OrigFn; 475 OrigFn;
@@ -538,7 +538,7 @@ typedef
538#if defined(PLAT_ppc64be_linux) 538#if defined(PLAT_ppc64be_linux)
539 539
540typedef 540typedef
541 struct { 541 struct {
542 unsigned long int nraddr; /* where's the code? */ 542 unsigned long int nraddr; /* where's the code? */
543 unsigned long int r2; /* what tocptr do we need? */ 543 unsigned long int r2; /* what tocptr do we need? */
544 } 544 }
@@ -694,7 +694,7 @@ typedef
694#if defined(PLAT_arm_linux) 694#if defined(PLAT_arm_linux)
695 695
696typedef 696typedef
697 struct { 697 struct {
698 unsigned int nraddr; /* where's the code? */ 698 unsigned int nraddr; /* where's the code? */
699 } 699 }
700 OrigFn; 700 OrigFn;
@@ -762,7 +762,7 @@ typedef
762#if defined(PLAT_arm64_linux) 762#if defined(PLAT_arm64_linux)
763 763
764typedef 764typedef
765 struct { 765 struct {
766 unsigned long int nraddr; /* where's the code? */ 766 unsigned long int nraddr; /* where's the code? */
767 } 767 }
768 OrigFn; 768 OrigFn;
@@ -908,7 +908,7 @@ typedef
908#if defined(PLAT_mips32_linux) 908#if defined(PLAT_mips32_linux)
909 909
910typedef 910typedef
911 struct { 911 struct {
912 unsigned int nraddr; /* where's the code? */ 912 unsigned int nraddr; /* where's the code? */
913 } 913 }
914 OrigFn; 914 OrigFn;
@@ -922,7 +922,7 @@ typedef
922 "srl $0, $0, 29\n\t" \ 922 "srl $0, $0, 29\n\t" \
923 "srl $0, $0, 3\n\t" \ 923 "srl $0, $0, 3\n\t" \
924 "srl $0, $0, 19\n\t" 924 "srl $0, $0, 19\n\t"
925 925
926#define VALGRIND_DO_CLIENT_REQUEST_EXPR( \ 926#define VALGRIND_DO_CLIENT_REQUEST_EXPR( \
927 _zzq_default, _zzq_request, \ 927 _zzq_default, _zzq_request, \
928 _zzq_arg1, _zzq_arg2, _zzq_arg3, _zzq_arg4, _zzq_arg5) \ 928 _zzq_arg1, _zzq_arg2, _zzq_arg3, _zzq_arg4, _zzq_arg5) \
@@ -2173,7 +2173,7 @@ typedef
2173#define VALGRIND_RESTORE_STACK \ 2173#define VALGRIND_RESTORE_STACK \
2174 "mr 1,28\n\t" 2174 "mr 1,28\n\t"
2175 2175
2176/* These CALL_FN_ macros assume that on ppc32-linux, 2176/* These CALL_FN_ macros assume that on ppc32-linux,
2177 sizeof(unsigned long) == 4. */ 2177 sizeof(unsigned long) == 4. */
2178 2178
2179#define CALL_FN_W_v(lval, orig) \ 2179#define CALL_FN_W_v(lval, orig) \
@@ -4690,7 +4690,7 @@ typedef
4690#define __CALLER_SAVED_REGS "0","1","2","3","4","5","14", \ 4690#define __CALLER_SAVED_REGS "0","1","2","3","4","5","14", \
4691 "f0","f1","f2","f3","f4","f5","f6","f7" 4691 "f0","f1","f2","f3","f4","f5","f6","f7"
4692 4692
4693/* Nb: Although r11 is modified in the asm snippets below (inside 4693/* Nb: Although r11 is modified in the asm snippets below (inside
4694 VALGRIND_CFI_PROLOGUE) it is not listed in the clobber section, for 4694 VALGRIND_CFI_PROLOGUE) it is not listed in the clobber section, for
4695 two reasons: 4695 two reasons:
4696 (1) r11 is restored in VALGRIND_CFI_EPILOGUE, so effectively it is not 4696 (1) r11 is restored in VALGRIND_CFI_EPILOGUE, so effectively it is not
@@ -5140,7 +5140,7 @@ typedef
5140#endif /* PLAT_s390x_linux */ 5140#endif /* PLAT_s390x_linux */
5141 5141
5142/* ------------------------- mips32-linux ----------------------- */ 5142/* ------------------------- mips32-linux ----------------------- */
5143 5143
5144#if defined(PLAT_mips32_linux) 5144#if defined(PLAT_mips32_linux)
5145 5145
5146/* These regs are trashed by the hidden call. */ 5146/* These regs are trashed by the hidden call. */
@@ -6115,7 +6115,7 @@ typedef
6115#define VG_IS_TOOL_USERREQ(a, b, v) \ 6115#define VG_IS_TOOL_USERREQ(a, b, v) \
6116 (VG_USERREQ_TOOL_BASE(a,b) == ((v) & 0xffff0000)) 6116 (VG_USERREQ_TOOL_BASE(a,b) == ((v) & 0xffff0000))
6117 6117
6118/* !! ABIWARNING !! ABIWARNING !! ABIWARNING !! ABIWARNING !! 6118/* !! ABIWARNING !! ABIWARNING !! ABIWARNING !! ABIWARNING !!
6119 This enum comprises an ABI exported by Valgrind to programs 6119 This enum comprises an ABI exported by Valgrind to programs
6120 which use client requests. DO NOT CHANGE THE NUMERIC VALUES OF THESE 6120 which use client requests. DO NOT CHANGE THE NUMERIC VALUES OF THESE
6121 ENTRIES, NOR DELETE ANY -- add new ones at the end of the most 6121 ENTRIES, NOR DELETE ANY -- add new ones at the end of the most
@@ -6264,7 +6264,7 @@ VALGRIND_PRINTF(const char *format, ...)
6264 _qzz_res = VALGRIND_DO_CLIENT_REQUEST_EXPR(0, 6264 _qzz_res = VALGRIND_DO_CLIENT_REQUEST_EXPR(0,
6265 VG_USERREQ__PRINTF_VALIST_BY_REF, 6265 VG_USERREQ__PRINTF_VALIST_BY_REF,
6266 (unsigned long)format, 6266 (unsigned long)format,
6267 (unsigned long)&vargs, 6267 (unsigned long)&vargs,
6268 0, 0, 0); 6268 0, 0, 0);
6269#endif 6269#endif
6270 va_end(vargs); 6270 va_end(vargs);
@@ -6303,7 +6303,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
6303 _qzz_res = VALGRIND_DO_CLIENT_REQUEST_EXPR(0, 6303 _qzz_res = VALGRIND_DO_CLIENT_REQUEST_EXPR(0,
6304 VG_USERREQ__PRINTF_BACKTRACE_VALIST_BY_REF, 6304 VG_USERREQ__PRINTF_BACKTRACE_VALIST_BY_REF,
6305 (unsigned long)format, 6305 (unsigned long)format,
6306 (unsigned long)&vargs, 6306 (unsigned long)&vargs,
6307 0, 0, 0); 6307 0, 0, 0);
6308#endif 6308#endif
6309 va_end(vargs); 6309 va_end(vargs);
@@ -6314,7 +6314,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
6314 6314
6315/* These requests allow control to move from the simulated CPU to the 6315/* These requests allow control to move from the simulated CPU to the
6316 real CPU, calling an arbitrary function. 6316 real CPU, calling an arbitrary function.
6317 6317
6318 Note that the current ThreadId is inserted as the first argument. 6318 Note that the current ThreadId is inserted as the first argument.
6319 So this call: 6319 So this call:
6320 6320
@@ -6400,7 +6400,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
6400 - It marks the block as being addressable and undefined (if 'is_zeroed' is 6400 - It marks the block as being addressable and undefined (if 'is_zeroed' is
6401 not set), or addressable and defined (if 'is_zeroed' is set). This 6401 not set), or addressable and defined (if 'is_zeroed' is set). This
6402 controls how accesses to the block by the program are handled. 6402 controls how accesses to the block by the program are handled.
6403 6403
6404 'addr' is the start of the usable block (ie. after any 6404 'addr' is the start of the usable block (ie. after any
6405 redzone), 'sizeB' is its size. 'rzB' is the redzone size if the allocator 6405 redzone), 'sizeB' is its size. 'rzB' is the redzone size if the allocator
6406 can apply redzones -- these are blocks of padding at the start and end of 6406 can apply redzones -- these are blocks of padding at the start and end of
@@ -6408,7 +6408,7 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
6408 Valgrind will spot block overruns. `is_zeroed' indicates if the memory is 6408 Valgrind will spot block overruns. `is_zeroed' indicates if the memory is
6409 zeroed (or filled with another predictable value), as is the case for 6409 zeroed (or filled with another predictable value), as is the case for
6410 calloc(). 6410 calloc().
6411 6411
6412 VALGRIND_MALLOCLIKE_BLOCK should be put immediately after the point where a 6412 VALGRIND_MALLOCLIKE_BLOCK should be put immediately after the point where a
6413 heap block -- that will be used by the client program -- is allocated. 6413 heap block -- that will be used by the client program -- is allocated.
6414 It's best to put it at the outermost level of the allocator if possible; 6414 It's best to put it at the outermost level of the allocator if possible;
@@ -6496,8 +6496,8 @@ VALGRIND_PRINTF_BACKTRACE(const char *format, ...)
6496 6496
6497/* Create a memory pool with some flags specifying extended behaviour. 6497/* Create a memory pool with some flags specifying extended behaviour.
6498 When flags is zero, the behaviour is identical to VALGRIND_CREATE_MEMPOOL. 6498 When flags is zero, the behaviour is identical to VALGRIND_CREATE_MEMPOOL.
6499 6499
6500 The flag VALGRIND_MEMPOOL_METAPOOL specifies that the pieces of memory 6500 The flag VALGRIND_MEMPOOL_METAPOOL specifies that the pieces of memory
6501 associated with the pool using VALGRIND_MEMPOOL_ALLOC will be used 6501 associated with the pool using VALGRIND_MEMPOOL_ALLOC will be used
6502 by the application as superblocks to dole out MALLOC_LIKE blocks using 6502 by the application as superblocks to dole out MALLOC_LIKE blocks using
6503 VALGRIND_MALLOCLIKE_BLOCK. In other words, a meta pool is a "2 levels" 6503 VALGRIND_MALLOCLIKE_BLOCK. In other words, a meta pool is a "2 levels"