Skip to content

Commit

Permalink
A massive all-tree automated update of all double inclusion guard #de…
Browse files Browse the repository at this point in the history
…fines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix
  • Loading branch information
adamdunkels committed Nov 24, 2013
1 parent 42cae1c commit bb2dcaa
Show file tree
Hide file tree
Showing 572 changed files with 1,708 additions and 1,708 deletions.
6 changes: 3 additions & 3 deletions apps/about/about-dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
*
*
*/
#ifndef __ABOUT_DSC_H__
#define __ABOUT_DSC_H__
#ifndef ABOUT_DSC_H_
#define ABOUT_DSC_H_

#include "sys/dsc.h"

DSC_HEADER(about_dsc);

#endif /* __ABOUT_DSC_H__ */
#endif /* ABOUT_DSC_H_ */
6 changes: 3 additions & 3 deletions apps/calc/calc-dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
*
*
*/
#ifndef __CALC_DSC_H__
#define __CALC_DSC_H__
#ifndef CALC_DSC_H_
#define CALC_DSC_H_

#include "sys/dsc.h"

DSC_HEADER(calc_dsc);

#endif /* __CALC_DSC_H__ */
#endif /* CALC_DSC_H_ */
6 changes: 3 additions & 3 deletions apps/cmdd/cmdd.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef __CMDD_H__
#define __CMDD_H__
#ifndef CMDD_H_
#define CMDD_H_

#include "contiki.h"

PROCESS_NAME(cmdd_process);

#endif /* __CMDD_H__ */
#endif /* CMDD_H_ */
6 changes: 3 additions & 3 deletions apps/codeprop/codeprop-tmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* This file is part of the Contiki operating system.
*
*/
#ifndef __CODEPROP_H__
#define __CODEPROP_H__
#ifndef CODEPROP_H_
#define CODEPROP_H_

#include "contiki.h"

Expand All @@ -43,4 +43,4 @@ void codeprop_start_broadcast(unsigned int len);
void codeprop_exit_program(void);
int codeprop_start_program(void);

#endif /* __CODEPROP_H__ */
#endif /* CODEPROP_H_ */
6 changes: 3 additions & 3 deletions apps/codeprop/codeprop.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* This file is part of the Contiki operating system.
*
*/
#ifndef __CODEPROP_H__
#define __CODEPROP_H__
#ifndef CODEPROP_H_
#define CODEPROP_H_

#include "contiki.h"

Expand All @@ -50,4 +50,4 @@ void codeprop_set_rate(clock_time_t time);
void codeprop_start_broadcast(unsigned int len);
void codeprop_start_program(void);

#endif /* __CODEPROP_H__ */
#endif /* CODEPROP_H_ */
6 changes: 3 additions & 3 deletions apps/dhcp/dhcp-dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
*
*
*/
#ifndef __DHCP_DSC_H__
#define __DHCP_DSC_H__
#ifndef DHCP_DSC_H_
#define DHCP_DSC_H_

#include "sys/dsc.h"

DSC_HEADER(dhcp_dsc);

#endif /* __DHCP_DSC_H__ */
#endif /* DHCP_DSC_H_ */
6 changes: 3 additions & 3 deletions apps/directory/directory-dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
*
*
*/
#ifndef __DIRECTORY_DSC_H__
#define __DIRECTORY_DSC_H__
#ifndef DIRECTORY_DSC_H_
#define DIRECTORY_DSC_H_

#include "sys/dsc.h"

DSC_HEADER(directory_dsc);

#endif /* __DIRECTORY_DSC_H__ */
#endif /* DIRECTORY_DSC_H_ */
6 changes: 3 additions & 3 deletions apps/email/email-dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
*
*
*/
#ifndef __EMAIL_DSC_H__
#define __EMAIL_DSC_H__
#ifndef EMAIL_DSC_H_
#define EMAIL_DSC_H_

#include "sys/dsc.h"

DSC_HEADER(email_dsc);

#endif /* __EMAIL_DSC_H__ */
#endif /* EMAIL_DSC_H_ */
6 changes: 3 additions & 3 deletions apps/email/email.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
*
*
*/
#ifndef __EMAIL_H__
#define __EMAIL_H__
#ifndef EMAIL_H_
#define EMAIL_H_

PROCESS_NAME(email_process);

#endif /* __EMAIL_H__ */
#endif /* EMAIL_H_ */
6 changes: 3 additions & 3 deletions apps/email/smtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
*
*
*/
#ifndef __SMTP_H__
#define __SMTP_H__
#ifndef SMTP_H_
#define SMTP_H_

#include "contiki-net.h"

Expand Down Expand Up @@ -60,4 +60,4 @@ void smtp_appcall(void *state);

void smtp_init(void);

#endif /* __SMTP_H__ */
#endif /* SMTP_H_ */
6 changes: 3 additions & 3 deletions apps/ftp/ftp-dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
*
*
*/
#ifndef __FTP_DSC_H__
#define __FTP_DSC_H__
#ifndef FTP_DSC_H_
#define FTP_DSC_H_

#include "sys/dsc.h"

DSC_HEADER(ftp_dsc);

#endif /* __FTP_DSC_H__ */
#endif /* FTP_DSC_H_ */
6 changes: 3 additions & 3 deletions apps/ftp/ftp.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
*
*
*/
#ifndef __FTP_H__
#define __FTP_H__
#ifndef FTP_H_
#define FTP_H_

PROCESS_NAME(ftp_process);

#endif /* __FTP_H__ */
#endif /* FTP_H_ */
6 changes: 3 additions & 3 deletions apps/ftp/ftpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
* Author: Adam Dunkels <adam@sics.se>
*
*/
#ifndef __FTPC_H__
#define __FTPC_H__
#ifndef FTPC_H_
#define FTPC_H_

#include "contiki-net.h"

Expand Down Expand Up @@ -64,4 +64,4 @@ void ftpc_timedout(void);
void ftpc_list_file(char *filename);
void ftpc_data(uint8_t *data, uint16_t len);

#endif /* __FTPC_H__ */
#endif /* FTPC_H_ */
6 changes: 3 additions & 3 deletions apps/http-post-auth/http-post-auth.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
*
*/

#ifndef __HTTP_POST_AUTH_H__
#define __HTTP_POST_AUTH_H__
#ifndef HTTP_POST_AUTH_H_
#define HTTP_POST_AUTH_H_

#include "contiki-net.h"

PROCESS_NAME(http_post_auth_process);

int http_post_auth(const uint8_t *username_password, const char *message);

#endif /* __HTTP_POST_AUTH_H__ */
#endif /* HTTP_POST_AUTH_H_ */
6 changes: 3 additions & 3 deletions apps/httpd-ws/httpd-ws.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
* Joakim Eriksson <joakime@sics.se>
*/

#ifndef __HTTPD_WS_H__
#define __HTTPD_WS_H__
#ifndef HTTPD_WS_H_
#define HTTPD_WS_H_

#include "contiki-net.h"

Expand Down Expand Up @@ -122,4 +122,4 @@ httpd_ws_script_t httpd_ws_get_script(struct httpd_ws_state *s);

PROCESS_NAME(httpd_ws_process);

#endif /* __HTTPD_WS_H__ */
#endif /* HTTPD_WS_H_ */
6 changes: 3 additions & 3 deletions apps/irc/irc-dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
*
*
*/
#ifndef __IRC_DSC_H__
#define __IRC_DSC_H__
#ifndef IRC_DSC_H_
#define IRC_DSC_H_

#include "sys/dsc.h"

DSC_HEADER(irc_dsc);

#endif /* __IRC_DSC_H__ */
#endif /* IRC_DSC_H_ */
6 changes: 3 additions & 3 deletions apps/irc/irc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
*
*
*/
#ifndef __IRC_H__
#define __IRC_H__
#ifndef IRC_H_
#define IRC_H_

PROCESS_NAME(irc_process);

#endif /* __IRC_H__ */
#endif /* IRC_H_ */
6 changes: 3 additions & 3 deletions apps/irc/ircc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
* Author: Adam Dunkels <adam@sics.se>
*
*/
#ifndef __IRCC_H__
#define __IRCC_H__
#ifndef IRCC_H_
#define IRCC_H_

#include "contiki-net.h"

Expand Down Expand Up @@ -75,4 +75,4 @@ void ircc_closed(struct ircc_state *s);

void ircc_quit(struct ircc_state *s);

#endif /* __IRCC_H__ */
#endif /* IRCC_H_ */
6 changes: 3 additions & 3 deletions apps/json/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
* Joakim Eriksson <joakime@sics.se>
*/

#ifndef __JSON_H__
#define __JSON_H__
#ifndef JSON_H_
#define JSON_H_

#define JSON_TYPE_ARRAY '['
#define JSON_TYPE_OBJECT '{'
Expand Down Expand Up @@ -67,4 +67,4 @@ enum {

#define JSON_CONTENT_TYPE "application/json"

#endif /* __JSON_H__ */
#endif /* JSON_H_ */
6 changes: 3 additions & 3 deletions apps/json/jsonparse.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* This file is part of the Contiki operating system.
*/

#ifndef __JSONPARSE_H__
#define __JSONPARSE_H__
#ifndef JSONPARSE_H_
#define JSONPARSE_H_

#include "contiki-conf.h"
#include "json.h"
Expand Down Expand Up @@ -88,4 +88,4 @@ int jsonparse_get_type(struct jsonparse_state *state);
/* compare the JSON value with the specified string */
int jsonparse_strcmp_value(struct jsonparse_state *state, const char *str);

#endif /* __JSONPARSE_H__ */
#endif /* JSONPARSE_H_ */
6 changes: 3 additions & 3 deletions apps/json/jsontree.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
* Joakim Eriksson <joakime@sics.se>
*/

#ifndef __JSONTREE_H__
#define __JSONTREE_H__
#ifndef JSONTREE_H_
#define JSONTREE_H_

#include "contiki-conf.h"
#include "json.h"
Expand Down Expand Up @@ -132,4 +132,4 @@ int jsontree_print_next(struct jsontree_context *js_ctx);
struct jsontree_value *jsontree_find_next(struct jsontree_context *js_ctx,
int type);

#endif /* __JSONTREE_H__ */
#endif /* JSONTREE_H_ */
6 changes: 3 additions & 3 deletions apps/netconf/netconf-dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
*
*
*/
#ifndef __NETCONF_DSC_H__
#define __NETCONF_DSC_H__
#ifndef NETCONF_DSC_H_
#define NETCONF_DSC_H_

#include "sys/dsc.h"

DSC_HEADER(netconf_dsc);

#endif /* __NETCONF_DSC_H__ */
#endif /* NETCONF_DSC_H_ */
6 changes: 3 additions & 3 deletions apps/ping6/ping6.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef __PING6_H__
#define __PING6_H__
#ifndef PING6_H_
#define PING6_H_

#include "contiki.h"

PROCESS_NAME(ping6_process);

#endif /* __PING6_H__ */
#endif /* PING6_H_ */
6 changes: 3 additions & 3 deletions apps/process-list/process-list-dsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
*
*
*/
#ifndef __PROCESSES_DSC_H__
#define __PROCESSES_DSC_H__
#ifndef PROCESSES_DSC_H_
#define PROCESSES_DSC_H_

#include "sys/dsc.h"

DSC_HEADER(processes_dsc);

#endif /* __PROCESSES_DSC_H__ */
#endif /* PROCESSES_DSC_H_ */
6 changes: 3 additions & 3 deletions apps/program-handler/program-handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
*
*
*/
#ifndef __PROGRAM_HANDLER_H__
#define __PROGRAM_HANDLER_H__
#ifndef PROGRAM_HANDLER_H_
#define PROGRAM_HANDLER_H_

#include "sys/dsc.h"

Expand All @@ -48,4 +48,4 @@ void program_handler_setscreensaver(char *name);
void program_handler_add(struct dsc *dsc, char *menuname,
unsigned char desktop);

#endif /* __PROGRAM_HANDLER_H__ */
#endif /* PROGRAM_HANDLER_H_ */
6 changes: 3 additions & 3 deletions apps/serial-shell/serial-shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
* Adam Dunkels <adam@sics.se>
*/

#ifndef __SERIAL_SHELL_H__
#define __SERIAL_SHELL_H__
#ifndef SERIAL_SHELL_H_
#define SERIAL_SHELL_H_

#include "contiki.h"

void serial_shell_init(void);

#endif /* __SERIAL_SHELL_H__ */
#endif /* SERIAL_SHELL_H_ */
Loading

0 comments on commit bb2dcaa

Please sign in to comment.