Commit d1cc9528 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Marko Mikulicic

Add a tool to fix header guards, apply globally

Identifiers starting with _ are reserved, fix those.
Wrote a tool to do it and applied it globally, why not.

PUBLISHED_FROM=db0fa27c90cbfb06ed06469406f9867c5a5bd3c4
parent f56c5b20
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* All rights reserved * All rights reserved
*/ */
#ifndef DB_PLUGIN_HEADER_DEFINED #ifndef CS_MONGOOSE_EXAMPLES_API_SERVER_DB_PLUGIN_H_
#define DB_PLUGIN_HEADER_DEFINED #define CS_MONGOOSE_EXAMPLES_API_SERVER_DB_PLUGIN_H_
#include "../../mongoose.h" #include "../../mongoose.h"
...@@ -16,4 +16,4 @@ enum { API_OP_GET, API_OP_SET, API_OP_DEL }; ...@@ -16,4 +16,4 @@ enum { API_OP_GET, API_OP_SET, API_OP_DEL };
void db_op(struct mg_connection *nc, const struct http_message *hm, void db_op(struct mg_connection *nc, const struct http_message *hm,
const struct mg_str *key, void *db, int op); const struct mg_str *key, void *db, int op);
#endif /* DB_PLUGIN_HEADER_DEFINED */ #endif /* CS_MONGOOSE_EXAMPLES_API_SERVER_DB_PLUGIN_H_ */
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
** the version number) and changes its name to "sqlite3.h" as ** the version number) and changes its name to "sqlite3.h" as
** part of the build process. ** part of the build process.
*/ */
#ifndef _SQLITE3_H_ #ifndef CS_MONGOOSE_EXAMPLES_API_SERVER_SQLITE3_H_
#define _SQLITE3_H_ #define CS_MONGOOSE_EXAMPLES_API_SERVER_SQLITE3_H_
#include <stdarg.h> /* Needed for the definition of va_list */ #include <stdarg.h> /* Needed for the definition of va_list */
/* /*
...@@ -7241,5 +7241,5 @@ struct sqlite3_rtree_geometry { ...@@ -7241,5 +7241,5 @@ struct sqlite3_rtree_geometry {
} /* end of the 'extern "C"' block */ } /* end of the 'extern "C"' block */
#endif #endif
#endif /* ifndef _SQLITE3RTREE_H_ */ #endif /* CS_MONGOOSE_EXAMPLES_API_SERVER_SQLITE3_H_ */
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
* All rights reserved * All rights reserved
*/ */
#ifndef MG_INTERNAL_HEADER_INCLUDED #ifndef CS_MONGOOSE_SRC_INTERNAL_H_
#define MG_INTERNAL_HEADER_INCLUDED #define CS_MONGOOSE_SRC_INTERNAL_H_
#ifndef MG_MALLOC #ifndef MG_MALLOC
#define MG_MALLOC malloc #define MG_MALLOC malloc
...@@ -122,7 +122,7 @@ struct ctl_msg { ...@@ -122,7 +122,7 @@ struct ctl_msg {
extern void *(*test_malloc)(size_t size); extern void *(*test_malloc)(size_t size);
extern void *(*test_calloc)(size_t count, size_t size); extern void *(*test_calloc)(size_t count, size_t size);
#endif /* MG_INTERNAL_HEADER_INCLUDED */ #endif /* CS_MONGOOSE_SRC_INTERNAL_H_ */
#ifdef MG_MODULE_LINES #ifdef MG_MODULE_LINES
#line 1 "./src/../../common/base64.c" #line 1 "./src/../../common/base64.c"
#endif #endif
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment