Subversion Repositories HomeAutomation

Rev

Rev 820 | Rev 824 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 820 Rev 822
Line 80... Line 80...
80
		pos_list = main_c_template_line.find('%LIST')
80
		pos_list = main_c_template_line.find('%LIST')
81
		pos_handlemsg = main_c_template_line.find('%HANDLEMSG')
81
		pos_handlemsg = main_c_template_line.find('%HANDLEMSG')
82
		
82
		
83
		if pos_include != -1:
83
		if pos_include != -1:
84
			for moduleName in modules:
84
			for moduleName in modules:
85
				main_c.write(main_c_template_line[:pos_include] + "#include \"../modules/" + moduleName + "/" + moduleName + ".h\n")
85
				main_c.write(main_c_template_line[:pos_include] + "#include \"../modules/" + moduleName + "/" + moduleName + ".h\"\n")
86
		elif pos_init != -1:
86
		elif pos_init != -1:
87
			for moduleName in modules:
87
			for moduleName in modules:
88
				main_c.write(main_c_template_line[:pos_init] + moduleName + "_Init();\n")
88
				main_c.write(main_c_template_line[:pos_init] + moduleName + "_Init();\n")
89
		elif pos_process != -1:
89
		elif pos_process != -1:
90
			for moduleName in modules:
90
			for moduleName in modules: