Linux LVM users
 help / color / mirror / Atom feed
* RE: what i need is a little attention-RE [linux-lvm] SoftRaid and LVM   Jean-Eric Cuendet
@ 2001-09-05  7:57 Jean-Eric Cuendet
  2001-09-05  8:33 ` svetljo
  0 siblings, 1 reply; 30+ messages in thread
From: Jean-Eric Cuendet @ 2001-09-05  7:57 UTC (permalink / raw)
  To: linux-lvm

> and one more question about the min-max
> i don't speak "C" can you tell me how to do it with pre
> linux-2.4.9patches wich i wont to aply to linux-2.4.10pre2 
> and they are giving me problems 
> with min-max definition

The min/max functions are simple functions that return the min/max of
two numbers.
Ex: min(3,4) return 3
Now, Linus has added a type to those functions in 2.4.8 (I think):
Ex: min(int, 3, 4) = 3
Or: min(float, -6.45, 4.5) = -6.45

So, either you change the call from:
min(a, b) to min(int,a,b)
Or you add the provided replacement functions:
#define min(a,b) (((a)<(b))?(a):(b)) 
#define max(a,b) (((a)>(b))?(a):(b)) 
At the *beginning* of the file (before anything else).

Note that these are not real functions but just macros. That's why it's
so simple (just add them and forget).

Bye
-jec

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2001-09-06  6:44 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3B8E3F0E.8050609@st-peter.stw.uni-erlangen.de>
     [not found] ` <20010830083546.A20989@sistina.com>
2001-08-30 23:03   ` [linux-lvm] Re: HELP changing md-device's partition-type to LVM svetljo
2001-08-31  8:35     ` [linux-lvm] Re: HELP changing md-device's partition-type to LVM(or may be LV's partition id) svetljo
2001-08-31 13:23       ` Lewis Bergman
2001-08-31 13:08     ` [linux-lvm] PBs with LVM over software RAID svetljo
2001-08-31 17:05       ` Andreas Dilger
2001-08-31 18:37         ` svetljo
2001-08-31 19:07           ` Andreas Dilger
2001-08-31 20:18             ` svetljo
2001-08-31 22:24             ` svetljo
2001-08-31 22:56               ` Andreas Dilger
2001-08-31 23:24                 ` svetljo
2001-09-01  8:58                   ` [linux-lvm] PBs with -ac kernels and LVM 1.0.1 rc1 and rc2 svetljo
2001-09-05 22:02               ` [linux-lvm] PBs with LVM over software RAID Olivier Sessink
2001-09-05 22:18                 ` svetljo
2001-08-31 22:27             ` svetljo
2001-09-01 11:42         ` [linux-lvm] PBs with LVM over software RAID ( and XFS ? ext2 reiserfs?) svetljo
2001-09-01 14:11           ` svetljo
2001-09-01 22:26             ` svetljo
2001-09-02  0:44               ` svetljo
2001-09-04  3:53             ` Andreas Dilger
2001-09-04  9:20               ` svetljo
2001-09-01 14:20           ` svetljo
2001-08-31 14:09   ` [linux-lvm] Re: HELP changing md-device's partition-type to LVM svetljo
2001-09-05  7:57 what i need is a little attention-RE [linux-lvm] SoftRaid and LVM Jean-Eric Cuendet Jean-Eric Cuendet
2001-09-05  8:33 ` svetljo
2001-09-05 18:05   ` Andreas Dilger
2001-09-05 18:18     ` [linux-lvm] PBs with LVM over software RAID ( and XFS ? ext2 reiserfs?) svetljo
2001-09-05 18:32       ` svetljo
2001-09-05 18:32       ` Andreas Dilger
2001-09-05 18:57         ` svetljo
2001-09-05 22:46           ` Andreas Dilger
2001-09-05 23:05             ` svetljo
2001-09-06  6:44           ` Luca Berra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox