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. -- TerryReceived 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