From 323e0b8e1c41be09af5255a43fb9bde78057e16f Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Tue, 17 Dec 2024 13:51:25 -0800 Subject: [PATCH] libschedutil: use preprocessor symbols for flags Problem: its laborious to test flux-core for the existence of schedutil flags because they are anonymous enums. Convert to preprocessor symbols that can be easily checked with an #ifdef in the scheduler. --- src/common/libschedutil/init.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/libschedutil/init.h b/src/common/libschedutil/init.h index d7e6b4148459..ce770f4fa9d0 100644 --- a/src/common/libschedutil/init.h +++ b/src/common/libschedutil/init.h @@ -21,10 +21,10 @@ extern "C" { typedef struct schedutil_ctx schedutil_t; -enum schedutil_flags { - SCHEDUTIL_FREE_NOLOOKUP = 1, // now the default so this flag is ignored - SCHEDUTIL_HELLO_PARTIAL_OK = 2, -}; +/* schedutil_creawte() flags values + */ +#define SCHEDUTIL_FREE_NOLOOKUP 1 // now the default so this flag is ignored +#define SCHEDUTIL_HELLO_PARTIAL_OK 2 /* Create a handle for the schedutil convenience library. *