Skip to content

Commit

Permalink
libschedutil: use preprocessor symbols for flags
Browse files Browse the repository at this point in the history
Problem: its laborious to test flux-core for the existance
of schedutil flags because they are anonymous enums.

Convert to preprocessor symbols that can be easily checked
with an #ifdef in the scheduler.
  • Loading branch information
garlick committed Dec 17, 2024
1 parent 09d70fa commit 895d490
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/libschedutil/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 895d490

Please sign in to comment.