~emersion/mrsh

5e0da688be2dd52d41be298c76556de84d32d7b3 — emersion 3 years ago f1d361e
Don't use reserved identifiers for include guards
M include/ast.h => include/ast.h +2 -2
@@ 1,5 1,5 @@
#ifndef _AST_H
#define _AST_H
#ifndef AST_H
#define AST_H

#include <mrsh/ast.h>


M include/builtin.h => include/builtin.h +2 -2
@@ 1,5 1,5 @@
#ifndef _BUILTIN_H
#define _BUILTIN_H
#ifndef BUILTIN_H
#define BUILTIN_H

struct mrsh_state;


M include/frontend.h => include/frontend.h +3 -2
@@ 1,5 1,6 @@
#ifndef _FRONTEND_H
#define _FRONTEND_H
#ifndef FRONTEND_H
#define FRONTEND_H

#include <stddef.h>
#include <stdio.h>


M include/mrsh/arithm.h => include/mrsh/arithm.h +2 -2
@@ 1,5 1,5 @@
#ifndef _MRSH_AST_ARITHM_H
#define _MRSH_AST_ARITHM_H
#ifndef MRSH_AST_ARITHM_H
#define MRSH_AST_ARITHM_H

enum mrsh_arithm_expr_type {
	MRSH_ARITHM_LITERAL,

M include/mrsh/array.h => include/mrsh/array.h +2 -2
@@ 1,5 1,5 @@
#ifndef _MRSH_ARRAY_H
#define _MRSH_ARRAY_H
#ifndef MRSH_ARRAY_H
#define MRSH_ARRAY_H

#include <stdbool.h>
#include <stddef.h>

M include/mrsh/ast.h => include/mrsh/ast.h +2 -2
@@ 1,5 1,5 @@
#ifndef _MRSH_AST_H
#define _MRSH_AST_H
#ifndef MRSH_AST_H
#define MRSH_AST_H

#include <mrsh/array.h>
#include <stdbool.h>

M include/mrsh/buffer.h => include/mrsh/buffer.h +2 -2
@@ 1,5 1,5 @@
#ifndef _BUFFER_H
#define _BUFFER_H
#ifndef MRSH_BUFFER_H
#define MRSH_BUFFER_H

#include <stdbool.h>
#include <stddef.h>

M include/mrsh/builtin.h => include/mrsh/builtin.h +2 -2
@@ 1,5 1,5 @@
#ifndef _MRSH_BUILTIN_H
#define _MRSH_BUILTIN_H
#ifndef MRSH_BUILTIN_H
#define MRSH_BUILTIN_H

#include <mrsh/shell.h>


M include/mrsh/hashtable.h => include/mrsh/hashtable.h +2 -2
@@ 1,5 1,5 @@
#ifndef _MRSH_HASHTABLE_H
#define _MRSH_HASHTABLE_H
#ifndef MRSH_HASHTABLE_H
#define MRSH_HASHTABLE_H

#define MRSH_HASHTABLE_BUCKETS 256


M include/mrsh/parser.h => include/mrsh/parser.h +2 -2
@@ 1,5 1,5 @@
#ifndef _MRSH_PARSER_H
#define _MRSH_PARSER_H
#ifndef MRSH_PARSER_H
#define MRSH_PARSER_H

#include <mrsh/ast.h>
#include <stdio.h>

M include/mrsh/shell.h => include/mrsh/shell.h +2 -2
@@ 1,5 1,5 @@
#ifndef _MRSH_SHELL_H
#define _MRSH_SHELL_H
#ifndef MRSH_SHELL_H
#define MRSH_SHELL_H

#include <mrsh/arithm.h>
#include <mrsh/ast.h>

M include/parser.h => include/parser.h +2 -2
@@ 1,5 1,5 @@
#ifndef _PARSER_H
#define _PARSER_H
#ifndef PARSER_H
#define PARSER_H

#include <stdio.h>
#include <mrsh/buffer.h>

M include/shell/path.h => include/shell/path.h +2 -2
@@ 1,5 1,5 @@
#ifndef _SHELL_PATH_H
#define _SHELL_PATH_H
#ifndef SHELL_PATH_H
#define SHELL_PATH_H

#include <mrsh/shell.h>
#include <stdbool.h>

M include/shell/process.h => include/shell/process.h +2 -2
@@ 1,5 1,5 @@
#ifndef _SHELL_PROCESS_H
#define _SHELL_PROCESS_H
#ifndef SHELL_PROCESS_H
#define SHELL_PROCESS_H

#include <stdbool.h>
#include <sys/types.h>

M include/shell/shell.h => include/shell/shell.h +2 -2
@@ 1,5 1,5 @@
#ifndef _SHELL_SHELL_H
#define _SHELL_SHELL_H
#ifndef SHELL_SHELL_H
#define SHELL_SHELL_H

#include <mrsh/shell.h>


M include/shell/shm.h => include/shell/shm.h +2 -2
@@ 1,5 1,5 @@
#ifndef _SHELL_SHM_H
#define _SHELL_SHM_H
#ifndef SHELL_SHM_H
#define SHELL_SHM_H

#include <stdbool.h>


M include/shell/task.h => include/shell/task.h +2 -2
@@ 1,5 1,5 @@
#ifndef _SHELL_TASK_H
#define _SHELL_TASK_H
#ifndef SHELL_TASK_H
#define SHELL_TASK_H

#include "shell/shell.h"
#include "shell/word.h"

M include/shell/task_command.h => include/shell/task_command.h +2 -2
@@ 1,5 1,5 @@
#ifndef _SHELL_TASK_COMMAND_H
#define _SHELL_TASK_COMMAND_H
#ifndef SHELL_TASK_COMMAND_H
#define SHELL_TASK_COMMAND_H

#include "shell/process.h"
#include "shell/task.h"

M include/shell/word.h => include/shell/word.h +2 -2
@@ 1,5 1,5 @@
#ifndef _SHELL_WORD_H
#define _SHELL_WORD_H
#ifndef SHELL_WORD_H
#define SHELL_WORD_H

#include <mrsh/shell.h>