Skip to content

Commit 4b26110

Browse files
committed
Change macro guard to not have double underscores
I've learned that double underscores are mostly used in standard libraries. So just to be safe, I will just put these guards under a `LACO_` namespace.
1 parent ab0dbf3 commit 4b26110

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

src/commands.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#ifndef __COMMANDS_H
2-
#define __COMMANDS_H
1+
#ifndef LACO_COMMANDS_H
2+
#define LACO_COMMANDS_H
33

44
struct LacoState;
55

66
void handle_command(struct LacoState* laco, char* line);
77

8-
#endif /* __COMMANDS_H */
8+
#endif /* LACO_COMMANDS_H */

src/flags.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __FLAGS_H
2-
#define __FLAGS_H
1+
#ifndef LACO_FLAGS_H
2+
#define LACO_FLAGS_H
33

44
struct LacoState;
55

@@ -11,4 +11,4 @@ struct LacoState;
1111
*/
1212
void laco_handle_flag(struct LacoState* laco);
1313

14-
#endif /* __FLAGS_H */
14+
#endif /* LACO_FLAGS_H */

src/laco.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __LACO_H
2-
#define __LACO_H
1+
#ifndef LACO_H
2+
#define LACO_H
33

44
struct lua_State;
55

@@ -70,4 +70,4 @@ int laco_get_laco_status(LacoState* laco);
7070
*/
7171
void laco_set_laco_status(LacoState* laco, int status);
7272

73-
#endif /* __LACO_H */
73+
#endif /* LACO_H */

src/util.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __UTIL_H
2-
#define __UTIL_H
1+
#ifndef LACO_UTIL_H
2+
#define LACO_UTIL_H
33

44
struct LacoState;
55

@@ -31,4 +31,4 @@ void laco_kill(struct LacoState* laco, int status, const char* message);
3131

3232
int laco_is_match(const char** matches, const char* test_string);
3333

34-
#endif /* __UTIL_H */
34+
#endif /* LACO_UTIL_H */

src/util/print.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __PRINT_H
2-
#define __PRINT_H
1+
#ifndef LACO_PRINT_H
2+
#define LACO_PRINT_H
33

44
struct lua_State;
55

@@ -22,4 +22,4 @@ int laco_print_type(struct lua_State* L);
2222
*/
2323
void laco_report_error(struct lua_State* L, int status);
2424

25-
#endif /* __PRINT_H */
25+
#endif /* LACO_PRINT_H */

0 commit comments

Comments
 (0)