Browse Source

Use PREFIX_OBJECT to give the init_fn table variables meaningful names.

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
d2d4978f4f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/init.h

+ 1
- 1
src/include/init.h View File

47
 
47
 
48
 /* Macro for creating an initialisation function table entry */
48
 /* Macro for creating an initialisation function table entry */
49
 #define INIT_FN( init_order, init_func, reset_func, exit_func )		      \
49
 #define INIT_FN( init_order, init_func, reset_func, exit_func )		      \
50
-	static struct init_fn init_functions				      \
50
+	static struct init_fn PREFIX_OBJECT(init_fn__)			      \
51
 	    __attribute__ (( used, __table_section(init_fn,init_order) )) = { \
51
 	    __attribute__ (( used, __table_section(init_fn,init_order) )) = { \
52
 		.init = init_func,					      \
52
 		.init = init_func,					      \
53
 		.reset = reset_func,					      \
53
 		.reset = reset_func,					      \

Loading…
Cancel
Save