Skip to content

Commit 1474378

Browse files
htiboschactions-userSkptakActoryOumoninom1
authored
Give header files a uniform indentation (FreeRTOS#1034)
* Give header files a uniform indentation * Uncrustify: triggered by comment. * A few more removals of /* ifndef ...*/ * After applying formattingChanges.patch * Undo indent to avoid huge white space changes * Undo more indent to avoid huge white space changes * Undo two more indent to avoid huge white space changes * Undo 15 more indent to avoid huge white space changes * Undo 3 more indent to avoid huge white space changes * Undo 4 more indent to avoid huge white space changes * Undo 3 more indent to avoid huge white space changes * It seems that core_cm55.h was not yet formatted * More files in MPS3_AN552 were not yet formatted. * And the last one * Uncrustify: triggered by comment. * Just a push to restart CI-checks * Placed some extern "c" comments again * Formatting fixes --------- Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Soren Ptak <[email protected]> Co-authored-by: ActoryOu <[email protected]> Co-authored-by: Monika Singh <[email protected]>
1 parent 8761f51 commit 1474378

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+97
-87
lines changed

source/include/FreeRTOS_BitConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777

7878
#ifdef __cplusplus
79-
} /* extern "C" */
79+
} /* extern "C" */
8080
#endif
8181

82-
#endif /* !defined( FREERTOS_STREAM_BUFFER_H ) */
82+
#endif /* FREERTOS_STREAM_BUFFER_H */

source/include/FreeRTOS_DHCPv6.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101

102102
/** @brief Default v6 DHCP client port. */
103103
#define ipDHCPv6_CLIENT_PORT 546U
104-
/** @brief Default v6 DHCP server port. */
104+
/** @brief Default v6 DHCP server port. */
105105
#define ipDHCPv6_SERVER_PORT 547U
106106

107107
/** @brief The ID of a client or a server. */
@@ -159,12 +159,12 @@
159159
void vDHCPv6Stop( struct xNetworkEndPoint * pxEndPoint );
160160

161161
#ifdef __cplusplus
162-
} /* extern "C" */
162+
} /* extern "C" */
163163
#endif
164164

165165
/* The application should supply the following time-function.
166166
* It must return the number of seconds that have passed since
167167
* 1/1/1970. */
168168
extern uint32_t ulApplicationTimeHook( void );
169169

170-
#endif /* FREERTOS_DHCPv6_H */
170+
#endif /* FREERTOS_DHCPV6_H */

source/include/FreeRTOS_DNS_Cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@
8181
struct freertos_addrinfo ** ppxAddressInfo );
8282
#endif /* if ( ipconfigUSE_DNS_CACHE == 1 ) */
8383

84-
#endif /* ifndef FREERTOS_DNS_CACHE_H */
84+
#endif /* FREERTOS_DNS_CACHE_H */

source/include/FreeRTOS_DNS_Callback.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@
7272
#endif
7373
/* *INDENT-ON* */
7474

75-
#endif /* ifndef FREERTOS_DNS_CALLBACK_H */
75+
#endif /* FREERTOS_DNS_CALLBACK_H */

source/include/FreeRTOS_DNS_Globals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,4 @@
324324
#define ipMDNS_IP_ADDRESS 0xfb0000e0U /* 224.0.0.251 */
325325
#endif
326326

327-
#endif /* ifndef FREERTOS_DNS_GLOBALS_H */
327+
#endif /* FREERTOS_DNS_GLOBALS_H */

source/include/FreeRTOS_DNS_Networking.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959
void DNS_CloseSocket( Socket_t xDNSSocket );
6060

6161
#endif /* if ( ipconfigUSE_DNS != 0 ) */
62-
#endif /* ifndef FREERTOS_DNS_NETWORKING_H */
62+
#endif /* FREERTOS_DNS_NETWORKING_H */

source/include/FreeRTOS_DNS_Parser.h

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838

3939
/* Standard includes. */
4040
#include <stdint.h>
41+
42+
/* *INDENT-OFF* */
43+
#ifdef __cplusplus
44+
extern "C" {
45+
#endif
46+
/* *INDENT-ON* */
47+
4148
#if ( ipconfigUSE_DNS != 0 )
4249

4350
/** @brief Flag DNS parsing errors in situations where an IPv4 address is the return
@@ -87,4 +94,11 @@
8794
size_t * uxBytesRead );
8895

8996
#endif /* if ( ipconfigUSE_DNS != 0 ) */
90-
#endif /* ifndef FREERTOS_DNS_PARSER_H */
97+
98+
/* *INDENT-OFF* */
99+
#ifdef __cplusplus
100+
} /* extern "C" */
101+
#endif
102+
/* *INDENT-ON* */
103+
104+
#endif /* FREERTOS_DNS_PARSER_H */

source/include/FreeRTOS_IPv4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ enum eFrameProcessingResult prvCheckIP4HeaderOptions( struct xNETWORK_BUFFER * c
113113
#endif
114114
/* *INDENT-ON* */
115115

116-
#endif /* FREERTOS_IP_H */
116+
#endif /* FREERTOS_IPV4_H */

source/include/FreeRTOS_IPv4_Private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@ typedef struct xTCP_PACKET TCPPacket_t;
131131
#endif
132132
/* *INDENT-ON* */
133133

134-
#endif /* FREERTOS_IP_PRIVATE_H */
134+
#endif /* FREERTOS_IPV4_PRIVATE_H */

source/include/FreeRTOS_IPv4_Sockets.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
struct freertos_sockaddr * pxSourceAddress );
5454

5555
#ifdef __cplusplus
56-
} /* extern "C" */
56+
} /* extern "C" */
5757
#endif
58+
5859
#endif /* FREERTOS_IPV4_SOCKETS_H */

0 commit comments

Comments
 (0)