From: Frederic Suter Date: Wed, 8 Mar 2017 07:58:07 +0000 (+0100) Subject: please sonar with some compliant macro names X-Git-Tag: v3_15~189 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3c2534ab455931a11774905e677e1498815de10c?hp=772fbe2c6395ac920d8e7907dc39749d458f02b6 please sonar with some compliant macro names --- diff --git a/include/surf/surf_routing.h b/include/surf/surf_routing.h index 725f8a1cb1..20384e322a 100644 --- a/include/surf/surf_routing.h +++ b/include/surf/surf_routing.h @@ -4,8 +4,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _SURF_SURF_ROUTING_H -#define _SURF_SURF_ROUTING_H +#ifndef SURF_SURF_ROUTING_H +#define SURF_SURF_ROUTING_H #include "xbt/lib.h" diff --git a/include/xbt.h b/include/xbt.h index 66e97a7d5f..c30e68523c 100644 --- a/include/xbt.h +++ b/include/xbt.h @@ -6,8 +6,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef xbt_H -#define xbt_H +#ifndef XBT_H +#define XBT_H #include #include diff --git a/include/xbt/asserts.h b/include/xbt/asserts.h index 30d9a34512..b3494cf0a7 100644 --- a/include/xbt/asserts.h +++ b/include/xbt/asserts.h @@ -6,8 +6,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_ASSERTS_H -#define _XBT_ASSERTS_H +#ifndef XBT_ASSERTS_H +#define XBT_ASSERTS_H #include "xbt/misc.h" #include "xbt/log.h" @@ -49,4 +49,4 @@ XBT_PUBLIC_DATA(int) xbt_log_no_loc; /* Do not show the backtrace on failed back /** @} */ SG_END_DECL() -#endif /* _XBT_ASSERTS_H */ +#endif /* XBT_ASSERTS_H */ diff --git a/include/xbt/automaton.h b/include/xbt/automaton.h index 6b8be48537..1ba708f6ed 100644 --- a/include/xbt/automaton.h +++ b/include/xbt/automaton.h @@ -4,8 +4,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_AUTOMATON_H -#define _XBT_AUTOMATON_H +#ifndef XBT_AUTOMATON_H +#define XBT_AUTOMATON_H #include #include diff --git a/include/xbt/backtrace.h b/include/xbt/backtrace.h index 508cbc5a0b..90df0a3515 100644 --- a/include/xbt/backtrace.h +++ b/include/xbt/backtrace.h @@ -1,7 +1,7 @@ /* Copyright (c) 2005-2016. The SimGrid Team. All rights reserved. */ -#ifndef SIMGRIX_XBT_BACKTRACE_H -#define SIMGRIX_XBT_BACKTRACE_H +#ifndef XBT_BACKTRACE_H +#define XBT_BACKTRACE_H #include diff --git a/include/xbt/ex.h b/include/xbt/ex.h index 16b1d6404a..6307177900 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -40,8 +40,8 @@ /* The extensions made for the SimGrid project can either be distributed */ /* under the same license, or under the LGPL v2.1 */ -#ifndef __XBT_EX_H__ -#define __XBT_EX_H__ +#ifndef XBT_EX_H +#define XBT_EX_H #include diff --git a/include/xbt/heap.h b/include/xbt/heap.h index 89ee7d125e..7e4ea84cc3 100644 --- a/include/xbt/heap.h +++ b/include/xbt/heap.h @@ -4,8 +4,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_HEAP_H -#define _XBT_HEAP_H +#ifndef XBT_HEAP_H +#define XBT_HEAP_H #include "xbt/misc.h" #include "xbt/dynar.h" /* void_f_pvoid_t */ diff --git a/include/xbt/lib.h b/include/xbt/lib.h index 15553e30a0..56a900786a 100644 --- a/include/xbt/lib.h +++ b/include/xbt/lib.h @@ -6,8 +6,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_LIB_H -#define _XBT_LIB_H +#ifndef XBT_LIB_H +#define XBT_LIB_H #include diff --git a/include/xbt/log.h b/include/xbt/log.h index 4c24f32120..3ec9eb4569 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -25,8 +25,8 @@ printf function. Useful to debug the logging facilities themselves, or to not make source analysis tools mad */ //#define XBT_LOG_MAYDAY -#ifndef _XBT_LOG_H_ -#define _XBT_LOG_H_ +#ifndef XBT_LOG_H +#define XBT_LOG_H #include "xbt/misc.h" #include diff --git a/include/xbt/mallocator.h b/include/xbt/mallocator.h index a114cdf5c7..e607e10ac2 100644 --- a/include/xbt/mallocator.h +++ b/include/xbt/mallocator.h @@ -6,8 +6,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_MALLOCATOR_H -#define _XBT_MALLOCATOR_H +#ifndef XBT_MALLOCATOR_H +#define XBT_MALLOCATOR_H #include "xbt/function_types.h" #include "xbt/misc.h" diff --git a/include/xbt/module.h b/include/xbt/module.h index 7e00a6fe41..ba5b03ffa9 100644 --- a/include/xbt/module.h +++ b/include/xbt/module.h @@ -5,8 +5,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_MODULE_H -#define _XBT_MODULE_H +#ifndef XBT_MODULE_H +#define XBT_MODULE_H #include /* XBT_PUBLIC */ diff --git a/include/xbt/parmap.h b/include/xbt/parmap.h index 15257b55e6..89a8434e65 100644 --- a/include/xbt/parmap.h +++ b/include/xbt/parmap.h @@ -6,8 +6,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_PARMAP_H -#define _XBT_PARMAP_H +#ifndef XBT_PARMAP_H +#define XBT_PARMAP_H #include "xbt/misc.h" /* SG_BEGIN_DECL */ #include "xbt/function_types.h" diff --git a/include/xbt/synchro.h b/include/xbt/synchro.h index d0664f93db..340ef71171 100644 --- a/include/xbt/synchro.h +++ b/include/xbt/synchro.h @@ -5,8 +5,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_THREAD_H -#define _XBT_THREAD_H +#ifndef XBT_THREAD_H +#define XBT_THREAD_H #include diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index 82f2c24b86..fac49a749f 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -8,8 +8,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_SYSDEP_H -#define _XBT_SYSDEP_H +#ifndef XBT_SYSDEP_H +#define XBT_SYSDEP_H #include "xbt/log.h" #include "xbt/misc.h" @@ -136,4 +136,4 @@ SG_END_DECL() /** @} */ -#endif /* _XBT_SYSDEP_H */ +#endif /* XBT_SYSDEP_H */ diff --git a/include/xbt/xbt_os_time.h b/include/xbt/xbt_os_time.h index 0d3fa3cfe8..47f33bec40 100644 --- a/include/xbt/xbt_os_time.h +++ b/include/xbt/xbt_os_time.h @@ -5,8 +5,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _XBT_OS_TIMER_H -#define _XBT_OS_TIMER_H +#ifndef XBT_OS_TIMER_H +#define XBT_OS_TIMER_H #include /* XBT_PUBLIC */ #include /* size_t */