a question about minix
Posted: Sat Sep 13, 2008 9:35 am
I’ve have been looking into the minix kernel to help me with my microkernel.
Declarations of this kind keep being made
After a while I have found that
And
does this mean for the above declarations
why is this done this way, is it just a feature of the ack compiler??
Declarations of this kind keep being made
Code: Select all
FORWARD _PROTOTYPE( void create_env, (struct proc *pp) );
FORWARD _PROTOTYPE( void k_printenv, (void) );
Code: Select all
#define FORWARD static
Code: Select all
#define _PROTOTYPE(function, params) function params
Code: Select all
static void create_env(struct proc *pp);
static void k_printenv(void);