Dear Heiko Schocher, In message <4ba85e53.90...@denx.de> you wrote: > > > I see function prototypes like: > > static int > > mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char > > *argv[]) > > > > and also > > int do_i2c_probe (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) > > > > A few questions on this: > > > > is the preferred place of the type on a separate line (like for > > mod_i2c_mem) or on the same line as the function (as for > > do_i2c_probe)? > > Hmm.. I prefer to have this in one line, and think, this is the > way to go ...
If possible, yes. But in the example above you cannot get it in one line due to the line length restrictions. And instead of splitting the arguments on two lines, I tend to believe that the example above is "looking better". YMMV. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de If something is different, it's either better or worse, and usually both. - Larry Wall _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot