Subject: c-style question
To: None <tech-kern@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 11/19/2001 15:13:31
Hi,
In KNF, do we prefer either
(*platform.cons_init)();
or
platform.cons_init();
when cons_init is a function pointer?
Related is why in the above example we get an error in the later case
but not the former. "cons_init" is a macro in <dev/cons.h>, but for
some reason it doesn't get expanded in the first case. Any clue sticks
available for something simple I might have overlooked?
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD CDs, Support and Service: http://www.wasabisystems.com/