Re: HEADS UP: UFS2 now the default creation type on 5.0-CURRENT

From: Terry Lambert <tlambert2_at_mindspring.com>
Date: Mon, 21 Apr 2003 11:09:17 -0700
Alexander Pohoyda wrote:
> > +ufs2_daddr_t
> > +__cgbase(struct fs *fs, int32_t c)
> > +{
> > +     return cgbase(fs, c);
> > +}
> >  #undef cgbase
> > -#define cgbase(fs, c)   ((ufs2_daddr_t)((fs)->fs_fpg * (c)))
> > +#define      cgbase  __cgbase
> 
> Looks like recursion here.

It's not.  In the C language, "#define" values are only in
scope after their definition.  The effect of the above code
is to wrap the implicit cast of (ufs2_daddr_t).  The cgbase()
that gets called in __cgbase() is not the cgbase() #defined
later.

-- Terry
Received on Mon Apr 21 2003 - 09:10:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:04 UTC