summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFCmd.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2025-09-10 14:14:47 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2025-09-10 14:14:47 (GMT)
commit68375bf1e810ecbfbbac11c946894309b217412a (patch)
tree1dfd2c9cd7a16800a96591d7cc8d898d81e0f7ed /unix/tclUnixFCmd.c
parent0c7a28ef7ae29fa3c91cb824d4aed8d0e43cf267 (diff)
downloadtcl-68375bf1e810ecbfbbac11c946894309b217412a.zip
tcl-68375bf1e810ecbfbbac11c946894309b217412a.tar.gz
tcl-68375bf1e810ecbfbbac11c946894309b217412a.tar.bz2
Turn some things into enums that really should have been that all along
Diffstat (limited to 'unix/tclUnixFCmd.c')
-rw-r--r--unix/tclUnixFCmd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index 87d0185..2d455a4 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.c
@@ -54,10 +54,11 @@
* The following constants specify the type of callback when
* TraverseUnixTree() calls the traverseProc()
*/
-
-#define DOTREE_PRED 1 /* pre-order directory */
-#define DOTREE_POSTD 2 /* post-order directory */
-#define DOTREE_F 3 /* regular file */
+enum TraverseProcCallbackType {
+ DOTREE_PRED = 1, /* pre-order directory */
+ DOTREE_POSTD = 2, /* post-order directory */
+ DOTREE_F = 3 /* regular file */
+};
/*
* Fallback temporary file location the temporary file generation code. Can be