Skip to content

Commit ab2b961

Browse files
committed
simlib: min, max are already available
Find which C standard library does not provide them And if there is one, see if grass support that compiler/platform combination To be discussed
1 parent 898c134 commit ab2b961

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

raster/r.sim/simlib/utils.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,3 @@ double amin1(double arg1, double arg2)
2929

3030
return res;
3131
}
32-
33-
int min(int arg1, int arg2)
34-
{
35-
int res;
36-
37-
if (arg1 <= arg2) {
38-
res = arg1;
39-
}
40-
else {
41-
res = arg2;
42-
}
43-
44-
return res;
45-
}
46-
47-
int max(int arg1, int arg2)
48-
{
49-
int res;
50-
51-
if (arg1 >= arg2) {
52-
res = arg1;
53-
}
54-
else {
55-
res = arg2;
56-
}
57-
58-
return res;
59-
}
60-

raster/r.sim/simlib/waterglobs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ extern double gasdev(void);
7676
extern void gasdev_for_paralel(double *, double *);
7777
extern double amax1(double, double);
7878
extern double amin1(double, double);
79-
extern int min(int, int);
80-
extern int max(int, int);
8179
extern void create_observation_points();
8280

8381
extern double xmin, ymin, xmax, ymax;

0 commit comments

Comments
 (0)