summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-01-08 21:39:21 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-01-08 21:39:21 -0500
commit7d68aac4a50ab4d4881832bc7de568c2b5d4ea8b (patch)
tree5ed8c3c1958138daefd31d035945432d54088f79
parent51da1abc549a6642a721371427b31f5990959fad (diff)
downloadbfs-7d68aac4a50ab4d4881832bc7de568c2b5d4ea8b.tar.xz
Minor header cleanups
-rw-r--r--bftw.h3
-rw-r--r--cmdline.h6
-rw-r--r--eval.h6
-rw-r--r--expr.h6
4 files changed, 12 insertions, 9 deletions
diff --git a/bftw.h b/bftw.h
index 253c346..77148f1 100644
--- a/bftw.h
+++ b/bftw.h
@@ -92,6 +92,9 @@ struct BFTW {
int at_flags;
};
+/**
+ * Walk actions returned by the bftw() callback.
+ */
enum bftw_action {
/** Keep walking. */
BFTW_CONTINUE,
diff --git a/cmdline.h b/cmdline.h
index e9731f9..b8d22d8 100644
--- a/cmdline.h
+++ b/cmdline.h
@@ -14,8 +14,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
****************************************************************************/
-#ifndef CMDLINE_H
-#define CMDLINE_H
+#ifndef BFS_CMDLINE_H
+#define BFS_CMDLINE_H
#include "color.h"
@@ -129,4 +129,4 @@ int eval_cmdline(const struct cmdline *cmdline);
*/
int free_cmdline(struct cmdline *cmdline);
-#endif // CMDLINE_H
+#endif // BFS_CMDLINE_H
diff --git a/eval.h b/eval.h
index f190703..5bf1682 100644
--- a/eval.h
+++ b/eval.h
@@ -14,8 +14,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
****************************************************************************/
-#ifndef EVAL_H
-#define EVAL_H
+#ifndef BFS_EVAL_H
+#define BFS_EVAL_H
#include "expr.h"
@@ -70,4 +70,4 @@ bool eval_and(const struct expr *expr, struct eval_state *state);
bool eval_or(const struct expr *expr, struct eval_state *state);
bool eval_comma(const struct expr *expr, struct eval_state *state);
-#endif // EVAL_H
+#endif // BFS_EVAL_H
diff --git a/expr.h b/expr.h
index 0cd08ce..5eff72f 100644
--- a/expr.h
+++ b/expr.h
@@ -14,8 +14,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
****************************************************************************/
-#ifndef EXPR_H
-#define EXPR_H
+#ifndef BFS_EXPR_H
+#define BFS_EXPR_H
#include "color.h"
#include "exec.h"
@@ -229,4 +229,4 @@ void dump_expr(CFILE *cfile, const struct expr *expr, bool verbose);
*/
void free_expr(struct expr *expr);
-#endif // EXPR_H
+#endif // BFS_EXPR_H