summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-06-19 18:45:38 -0400
committerTavian Barnes <tavianator@tavianator.com>2016-06-19 18:45:38 -0400
commit814cccec0dfa7da0646dac0cc39f192d8a574cb8 (patch)
tree9880e07110e75f3d452018502d2577912268d36d /bfs.h
parentb0d923ffd5feb4a1d432082718857ead67c9b49d (diff)
downloadbfs-814cccec0dfa7da0646dac0cc39f192d8a574cb8.tar.xz
Use underscores.
Diffstat (limited to 'bfs.h')
-rw-r--r--bfs.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/bfs.h b/bfs.h
index a6c7264..1ebbf0d 100644
--- a/bfs.h
+++ b/bfs.h
@@ -52,7 +52,7 @@ typedef bool eval_fn(const struct expr *expr, struct eval_state *state);
/**
* Various debugging flags.
*/
-enum debugflags {
+enum debug_flags {
/** Print optimization details. */
DEBUG_OPT = 1 << 0,
/** Trace all stat() calls. */
@@ -88,7 +88,7 @@ struct cmdline {
/** Optimization level. */
int optlevel;
/** Debugging flags. */
- enum debugflags debug;
+ enum debug_flags debug;
/** The command line expression. */
struct expr *expr;
@@ -100,7 +100,7 @@ struct cmdline {
/**
* Possible types of numeric comparison.
*/
-enum cmpflag {
+enum cmp_flag {
/** Exactly n. */
CMP_EXACT,
/** Less than n. */
@@ -112,7 +112,7 @@ enum cmpflag {
/**
* Available struct stat time fields.
*/
-enum timefield {
+enum time_field {
/** Access time. */
ATIME,
/** Status change time. */
@@ -124,7 +124,7 @@ enum timefield {
/**
* Possible time units.
*/
-enum timeunit {
+enum time_unit {
/** Minutes. */
MINUTES,
/** Days. */
@@ -134,7 +134,7 @@ enum timeunit {
/**
* Possible file size units.
*/
-enum sizeunit {
+enum size_unit {
/** 512-byte blocks. */
SIZE_BLOCKS,
/** Single bytes. */
@@ -152,7 +152,7 @@ enum sizeunit {
/**
* Flags for the -exec actions.
*/
-enum execflags {
+enum exec_flags {
/** Prompt the user before executing (-ok, -okdir). */
EXEC_CONFIRM = 1 << 0,
/** Run the command in the file's parent directory (-execdir, -okdir). */
@@ -179,17 +179,17 @@ struct expr {
char **argv;
/** The optional comparison flag. */
- enum cmpflag cmpflag;
+ enum cmp_flag cmp_flag;
/** The optional reference time. */
struct timespec reftime;
/** The optional time field. */
- enum timefield timefield;
+ enum time_field time_field;
/** The optional time unit. */
- enum timeunit timeunit;
+ enum time_unit time_unit;
/** The optional size unit. */
- enum sizeunit sizeunit;
+ enum size_unit size_unit;
/** Optional device number for a target file. */
dev_t dev;
@@ -200,7 +200,7 @@ struct expr {
FILE *file;
/** Optional -exec flags. */
- enum execflags execflags;
+ enum exec_flags exec_flags;
/** Optional integer data for this expression. */
long long idata;