version 1.3, 2002/01/07 06:25:32 |
version 1.4, 2002/01/07 06:54:10 |
|
|
dnl |
dnl |
ifelse($3,,,{-define(major_$1_b,$3)-})dnl |
ifelse($3,,,{-define(major_$1_b,$3)-})dnl |
dnl |
dnl |
|
dnl _DEV 'ifelse' .. $4 - step_$1 |
|
dnl |
|
ifelse($4,,,{-define(step_$1,{-$4-})-})dnl |
|
dnl |
dnl Some magic here, defining a devitem also defines another |
dnl Some magic here, defining a devitem also defines another |
dnl string so that later we can check if a particular devitem was |
dnl string so that later we can check if a particular devitem was |
dnl defined, and thus determine if the devices themselves are to |
dnl defined, and thus determine if the devices themselves are to |
|
|
dnl |
dnl |
define({-CasE-}, |
define({-CasE-}, |
{-ifdev({-$1-}, |
{-ifdev({-$1-}, |
{- $1*) n=$1 b=major_$1_b c=major_$1_c;; |
{- $1*) dodisk $1 $U major_$1_b major_$1_c $U 0{--}ifstep($1);; |
-})-})dnl |
-})-})dnl |
dnl |
dnl |
dnl |
dnl |
|
|
dnl ifstep(devstr) |
dnl ifstep(devstr) |
dnl .. if stepping is defined for the particular device, emit ' step', else |
dnl .. if stepping is defined for the particular device, emit ' step', else |
dnl nothing |
dnl nothing |
define({-ifstep-},{-ifdef({-step_$1-},{- -}step_$1)-})dnl |
define({-ifstep-},{-ifdef({-step_$1-},{- -}step_$1{--})-})dnl |