summaryrefslogtreecommitdiffstats
path: root/color.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-04 12:40:43 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-04 12:40:43 -0500
commit035dbc05163f897ad74487afbb9d6c778b683b61 (patch)
treee99dd0ccd3659b5b1e05e601115ee50e1f8301fe /color.h
parent70fadadf1fc7e1bd09c3d0f451614a678277409c (diff)
downloadbfs-035dbc05163f897ad74487afbb9d6c778b683b61.tar.xz
Don't use typedefs to avoid struct/enum tags.
Diffstat (limited to 'color.h')
-rw-r--r--color.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/color.h b/color.h
index e8d984c..d022d34 100644
--- a/color.h
+++ b/color.h
@@ -17,7 +17,7 @@
/**
* A lookup table for colors.
*/
-typedef struct color_table color_table;
+struct color_table;
/**
* Parse a color table.
@@ -26,7 +26,7 @@ typedef struct color_table color_table;
* A color table in the LS_COLORS environment variable format.
* @return The parsed color table.
*/
-color_table *parse_colors(char *ls_colors);
+struct color_table *parse_colors(char *ls_colors);
/**
* Pretty-print a file path.
@@ -36,7 +36,7 @@ color_table *parse_colors(char *ls_colors);
* @param ftwbuf
* The bftw() data for the current path.
*/
-void pretty_print(const color_table *colors, const struct BFTW *ftwbuf);
+void pretty_print(const struct color_table *colors, const struct BFTW *ftwbuf);
/**
* Pretty-print an error.
@@ -48,7 +48,7 @@ void pretty_print(const color_table *colors, const struct BFTW *ftwbuf);
* @param error
* The error code that occurred.
*/
-void print_error(const color_table *colors, const char *path, int error);
+void print_error(const struct color_table *colors, const char *path, int error);
/**
* Free a color table.
@@ -56,6 +56,6 @@ void print_error(const color_table *colors, const char *path, int error);
* @param colors
* The color table to free.
*/
-void free_colors(color_table *colors);
+void free_colors(struct color_table *colors);
#endif // BFS_COLOR_H