Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
3c7daa80
Commit
3c7daa80
authored
22 years ago
by
Mark Grondona
Browse files
Options
Downloads
Patches
Plain Diff
o remove duplicate MAX definition from slurmctld.h
o define MIN in macros.h
parent
931090e7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/macros.h
+7
-3
7 additions, 3 deletions
src/common/macros.h
src/slurmctld/slurmctld.h
+1
-3
1 addition, 3 deletions
src/slurmctld/slurmctld.h
with
8 additions
and
6 deletions
src/common/macros.h
+
7
−
3
View file @
3c7daa80
...
...
@@ -46,15 +46,19 @@ typedef enum {false, true} bool;
#include
"src/common/log.h"
/* for error() */
#ifndef FALSE
#define FALSE false
#
define FALSE false
#endif
#ifndef TRUE
#define TRUE true
#
define TRUE true
#endif
#ifndef MAX
#define MAX(a,b) ((a) > (b) ? (a) : (b))
# define MAX(a,b) ((a) > (b) ? (a) : (b))
#endif
#ifndef MIN
# define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
#define SLURM_IO_KEY_SIZE 8
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/slurmctld.h
+
1
−
3
View file @
3c7daa80
...
...
@@ -40,7 +40,7 @@
#endif
#include
<pthread.h>
#include
<stdlib.h>
/*
#include <stdlib.h>
*/
#include
<time.h>
#include
<sys/types.h>
...
...
@@ -71,8 +71,6 @@
((_X->job_state & (~JOB_COMPLETING)) > JOB_RUNNING)
#define IS_JOB_PENDING(_X) \
((_X->job_state & (~JOB_COMPLETING)) == JOB_PENDING)
#define MAX(x,y) (((x)>(y))?(x):(y))
#define MIN(x,y) (((x)<(y))?(x):(y))
/*****************************************************************************\
* GENERAL CONFIGURATION parameters and data structures
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment