A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix

This commit is contained in:
Adam Dunkels 2013-11-24 16:57:08 +01:00
parent 42cae1c6c9
commit bb2dcaa057
572 changed files with 1708 additions and 1708 deletions

View file

@ -29,8 +29,8 @@
*
*/
#ifndef __PROJECT_ERBIUM_CONF_H__
#define __PROJECT_ERBIUM_CONF_H__
#ifndef PROJECT_ERBIUM_CONF_H_
#define PROJECT_ERBIUM_CONF_H_
/* Some platforms have weird includes. */
#undef IEEE802154_CONF_PANID
@ -85,4 +85,4 @@
#undef SICSLOWPAN_CONF_FRAG
#define SICSLOWPAN_CONF_FRAG 1
#endif /* __PROJECT_ERBIUM_CONF_H__ */
#endif /* PROJECT_ERBIUM_CONF_H_ */

View file

@ -38,8 +38,8 @@
* Joel Hoglund <joel@sics.se>
*/
#ifndef __JSON_WS_H__
#define __JSON_WS_H__
#ifndef JSON_WS_H_
#define JSON_WS_H_
#include "jsontree.h"
@ -55,4 +55,4 @@ extern struct jsontree_callback json_leds_callback;
#endif
extern struct jsontree_object cosm_tree;
#endif /* __JSON_WS_H__ */
#endif /* JSON_WS_H_ */

View file

@ -27,8 +27,8 @@
* SUCH DAMAGE.
*/
#ifndef __PROJECT_CONF_H__
#define __PROJECT_CONF_H__
#ifndef PROJECT_CONF_H_
#define PROJECT_CONF_H_
#include "jsontree.h"
#define HTTPD_WS_CONF_USER_STATE struct jsontree_context json
@ -74,4 +74,4 @@
#undef WEBSERVER_CONF_CFS_CONNS
#define WEBSERVER_CONF_CFS_CONNS 3
#endif /* __PROJECT_CONF_H__ */
#endif /* PROJECT_CONF_H_ */

View file

@ -35,8 +35,8 @@
* Joakim Eriksson <joakime@sics.se>
*/
#ifndef __BORDER_ROUTER_CMDS_H__
#define __BORDER_ROUTER_CMDS_H__
#ifndef BORDER_ROUTER_CMDS_H_
#define BORDER_ROUTER_CMDS_H_
#define CMD_CONTEXT_RADIO 0
#define CMD_CONTEXT_STDIO 1
@ -45,4 +45,4 @@ extern uint8_t command_context;
PROCESS_NAME(border_router_cmd_process);
#endif /* __BORDER_ROUTER_CMDS_H__ */
#endif /* BORDER_ROUTER_CMDS_H_ */

View file

@ -34,8 +34,8 @@
* Joakim Eriksson <joakime@sics.se>
*/
#ifndef __BORDER_ROUTER_H__
#define __BORDER_ROUTER_H__
#ifndef BORDER_ROUTER_H_
#define BORDER_ROUTER_H_
#include "contiki.h"
#include "net/uip.h"
@ -56,4 +56,4 @@ int slip_init(void);
int slip_set_fd(int maxfd, fd_set *rset, fd_set *wset);
void slip_handle_fd(fd_set *rset, fd_set *wset);
#endif /* __BORDER_ROUTER_H__ */
#endif /* BORDER_ROUTER_H_ */

View file

@ -37,8 +37,8 @@
* Joakim Eriksson <joakime@sics.se>
*/
#ifndef __HTTPD_SIMPLE_H__
#define __HTTPD_SIMPLE_H__
#ifndef HTTPD_SIMPLE_H_
#define HTTPD_SIMPLE_H_
#include "contiki-net.h"
@ -71,4 +71,4 @@ httpd_simple_script_t httpd_simple_get_script(const char *name);
#define SEND_STRING(s, str) PSOCK_SEND(s, (uint8_t *)str, strlen(str))
#endif /* __HTTPD_SIMPLE_H__ */
#endif /* HTTPD_SIMPLE_H_ */

View file

@ -27,8 +27,8 @@
* SUCH DAMAGE.
*/
#ifndef __PROJECT_ROUTER_CONF_H__
#define __PROJECT_ROUTER_CONF_H__
#ifndef PROJECT_ROUTER_CONF_H_
#define PROJECT_ROUTER_CONF_H_
#undef UIP_FALLBACK_INTERFACE
#define UIP_FALLBACK_INTERFACE rpl_interface
@ -57,4 +57,4 @@
/* used by wpcap (see /cpu/native/net/wpcap-drv.c) */
#define SELECT_CALLBACK 1
#endif /* __PROJECT_ROUTER_CONF_H__ */
#endif /* PROJECT_ROUTER_CONF_H_ */

View file

@ -37,8 +37,8 @@
* Joakim Eriksson <joakime@sics.se>
*/
#ifndef __HTTPD_SIMPLE_H__
#define __HTTPD_SIMPLE_H__
#ifndef HTTPD_SIMPLE_H_
#define HTTPD_SIMPLE_H_
#include "contiki-net.h"
@ -71,4 +71,4 @@ httpd_simple_script_t httpd_simple_get_script(const char *name);
#define SEND_STRING(s, str) PSOCK_SEND(s, (uint8_t *)str, strlen(str))
#endif /* __HTTPD_SIMPLE_H__ */
#endif /* HTTPD_SIMPLE_H_ */

View file

@ -28,8 +28,8 @@
*
*/
#ifndef __PROJECT_ROUTER_CONF_H__
#define __PROJECT_ROUTER_CONF_H__
#ifndef PROJECT_ROUTER_CONF_H_
#define PROJECT_ROUTER_CONF_H_
#ifndef UIP_FALLBACK_INTERFACE
#define UIP_FALLBACK_INTERFACE rpl_interface
@ -51,4 +51,4 @@
#define WEBSERVER_CONF_CFS_CONNS 2
#endif
#endif /* __PROJECT_ROUTER_CONF_H__ */
#endif /* PROJECT_ROUTER_CONF_H_ */

View file

@ -35,8 +35,8 @@
* Niclas Finne <nfi@sics.se>
*/
#ifndef __COLLECT_COMMON_H__
#define __COLLECT_COMMON_H__
#ifndef COLLECT_COMMON_H_
#define COLLECT_COMMON_H_
#include "contiki.h"
#include "net/rime/rimeaddr.h"
@ -53,4 +53,4 @@ void collect_common_set_send_active(int active);
PROCESS_NAME(collect_common_process);
#endif /* __COLLECT_COMMON_H__ */
#endif /* COLLECT_COMMON_H_ */

View file

@ -28,8 +28,8 @@
*
*/
#ifndef __PROJECT_RPL_WEB_CONF_H__
#define __PROJECT_RPL_WEB_CONF_H__
#ifndef PROJECT_RPL_WEB_CONF_H_
#define PROJECT_RPL_WEB_CONF_H_
#undef QUEUEBUF_CONF_NUM
#define QUEUEBUF_CONF_NUM 5
@ -47,4 +47,4 @@
#undef WEBSERVER_CONF_CFS_PATHLEN
#define WEBSERVER_CONF_CFS_PATHLEN 80
#endif /* __PROJECT_RPL_WEB_CONF_H__ */
#endif /* PROJECT_RPL_WEB_CONF_H_ */

View file

@ -36,8 +36,8 @@
* Joakim Eriksson <joakime@sics.se>
*/
#ifndef __WGET_H__
#define __WGET_H__
#ifndef WGET_H_
#define WGET_H_
#include "contiki.h"
@ -59,4 +59,4 @@ enum {
WGET_CLOSED
};
#endif /* __WGET_H__ */
#endif /* WGET_H_ */

View file

@ -27,8 +27,8 @@
* SUCH DAMAGE.
*/
#ifndef __PROJECT_CONF_H__
#define __PROJECT_CONF_H__
#ifndef PROJECT_CONF_H_
#define PROJECT_CONF_H_
#undef QUEUEBUF_CONF_NUM
#define QUEUEBUF_CONF_NUM 4
@ -73,4 +73,4 @@
#undef UART1_CONF_RX_WITH_DMA
#define UART1_CONF_RX_WITH_DMA 1
#endif /* __PROJECT_CONF_H__ */
#endif /* PROJECT_CONF_H_ */

View file

@ -28,8 +28,8 @@
*
*/
#ifndef __SLIP_RADIO_H__
#define __SLIP_RADIO_H__
#ifndef SLIP_RADIO_H_
#define SLIP_RADIO_H_
struct slip_radio_sensors {
/** Initialize the driver */
@ -38,4 +38,4 @@ struct slip_radio_sensors {
void (* send)(void);
};
#endif /* __SLIP_RADIO_H__ */
#endif /* SLIP_RADIO_H_ */

View file

@ -28,8 +28,8 @@
*
*/
#ifndef __PROJECT_RPL_WEB_CONF_H__
#define __PROJECT_RPL_WEB_CONF_H__
#ifndef PROJECT_RPL_WEB_CONF_H_
#define PROJECT_RPL_WEB_CONF_H_
#undef QUEUEBUF_CONF_NUM
#define QUEUEBUF_CONF_NUM 2
@ -46,4 +46,4 @@
#undef WITH_SERIAL_LINE_INPUT
#define WITH_SERIAL_LINE_INPUT 0
#endif /* __PROJECT_RPL_WEB_CONF_H__ */
#endif /* PROJECT_RPL_WEB_CONF_H_ */

View file

@ -1,7 +1,7 @@
#ifndef __WEBSERVER_AJAX_CONF_H__
#define __WEBSERVER_AJAX_CONF_H__
#ifndef WEBSERVER_AJAX_CONF_H_
#define WEBSERVER_AJAX_CONF_H_
#undef WITH_RIME
#define WITH_RIME 1
@ -21,4 +21,4 @@
#define UIP_CONF_UDP_CHECKSUMS 1
#endif /* __WEBSERVER_AJAX_CONF_H__ */
#endif /* WEBSERVER_AJAX_CONF_H_ */

View file

@ -29,8 +29,8 @@
*
*/
#ifndef __PROJECT_RPL_WEB_CONF_H__
#define __PROJECT_RPL_WEB_CONF_H__
#ifndef PROJECT_RPL_WEB_CONF_H_
#define PROJECT_RPL_WEB_CONF_H_
#ifndef QUEUEBUF_CONF_NUM
#define QUEUEBUF_CONF_NUM 6
@ -48,4 +48,4 @@
#define WEBSERVER_CONF_CFS_CONNS 2
#endif
#endif /* __PROJECT_RPL_WEB_CONF_H__ */
#endif /* PROJECT_RPL_WEB_CONF_H_ */

View file

@ -29,8 +29,8 @@
*
*/
#ifndef __PROJECT_RPL_WEB_CONF_H__
#define __PROJECT_RPL_WEB_CONF_H__
#ifndef PROJECT_RPL_WEB_CONF_H_
#define PROJECT_RPL_WEB_CONF_H_
#define SICSLOWPAN_CONF_FRAG 1
@ -49,4 +49,4 @@
#define COAP_MAX_OBSERVERS COAP_MAX_OPEN_TRANSACTIONS-1
#endif
#endif /* __PROJECT_RPL_WEB_CONF_H__ */
#endif /* PROJECT_RPL_WEB_CONF_H_ */

View file

@ -28,8 +28,8 @@
*
*/
#ifndef __PROJECT_H__
#define __PROJECT_H__
#ifndef PROJECT_H_
#define PROJECT_H_
/* Free some code and RAM space */
#define UIP_CONF_TCP 0
@ -49,4 +49,4 @@
/* Set a large (1 sector) default size for coffee files. */
#define COFFEE_CONF_DYN_SIZE (COFFEE_SECTOR_SIZE - COFFEE_PAGE_SIZE + 1)
#endif /* __PROJECT_H__ */
#endif /* PROJECT_H_ */

View file

@ -28,8 +28,8 @@
*
*/
#ifndef __PROJECT_RPL_WEB_CONF_H__
#define __PROJECT_RPL_WEB_CONF_H__
#ifndef PROJECT_RPL_WEB_CONF_H_
#define PROJECT_RPL_WEB_CONF_H_
#undef QUEUEBUF_CONF_NUM
#define QUEUEBUF_CONF_NUM 4
@ -43,4 +43,4 @@
#undef WEBSERVER_CONF_CFS_CONNS
#define WEBSERVER_CONF_CFS_CONNS 2
#endif /* __PROJECT_RPL_WEB_CONF_H__ */
#endif /* PROJECT_RPL_WEB_CONF_H_ */

View file

@ -36,8 +36,8 @@
* Joakim Eriksson <joakime@sics.se>
*/
#ifndef __WGET_H__
#define __WGET_H__
#ifndef WGET_H_
#define WGET_H_
#include "contiki.h"
@ -59,4 +59,4 @@ enum {
WGET_CLOSED
};
#endif /* __WGET_H__ */
#endif /* WGET_H_ */

View file

@ -28,8 +28,8 @@
*
*/
#ifndef __PROJECT_CONF_H__
#define __PROJECT_CONF_H__
#ifndef PROJECT_CONF_H_
#define PROJECT_CONF_H_
#undef NETSTACK_CONF_MAC
#define NETSTACK_CONF_MAC nullmac_driver
@ -43,4 +43,4 @@
#undef NETSTACK_RDC
#define NETSTACK_RDC nullrdc_driver
#endif /* __PROJECT_CONF_H__ */
#endif /* PROJECT_CONF_H_ */