******************* task.h ****************** #ifndef __TASK_H__ #define __TASK_H__ # include "SDA55XX.H" # include "RC_CODES.H" # include "CONSTANT.H" # include "inouts.h" # include "osd.h" # include "video.h" # include "tuning.h" # include "sound.h" # include "teletext.h" # include "i2crout.h" # include "timer.h" # include "service.h" # include "mains.h" extern void Red_Marktask_IR(void); extern void Menu_Marktask_IR(void); extern void GDW_OSD_MODE(void); extern void Text_Off(void); extern void Text_Marktask_IR(void); extern void TV_Marktask_IR(void); extern void MarkTaskIR (void); extern void OK_Marktask_IR(void); extern void Volume_Up_Aiwa(void); extern void Up_Down_Hiz_Control(void); extern void Volume_Up_Marktask_IR(void); extern void Volume_Down_Aiwa(void); extern void Volume_Down_Marktask_IR(void); extern void Page_Down_Marktask_IR(void); extern void Page_Down_Aiwa(void); extern void Page_Up_Marktask_IR(void); extern void Page_Up_Aiwa(void); #endif ******************mains.h******************* #ifndef __MAINS_H__ #define __MAINS_H__ # include <SDA55XX.H> # include <RC_CODES.H> # include <CONSTANT.H> # include <string.h> # include "INTRINS.H" # include "inouts.h" # include "osd.h" # include "video.h" # include "tuning.h" # include "sound.h" # include "i2crout.h" # include "timer.h" # include "task.h" # include "ints.h" .... ******************************************
task.h inludes mains.h, which then repeats some of the includes from task.h! This may work in your case, but it's not the best of designs...
thx adrew in fact this code come to me from somebody i didnt write it i try to make some adjustment, how can i resolve cross appeal problem for headers between task.h and mains.h with an elegant way !
If it's not giving you any errors or warnings, leave it - just don't take it as good example for your own work!
View all questions in Keil forum