| 21 | } |
| 22 | |
| 23 | static bool create_master_fiber(file_tmpl& tmpl) |
| 24 | { |
| 25 | string file(tmpl.get_project_name()); |
| 26 | file << ".cf"; |
| 27 | if (!tmpl.copy_and_replace("master_fiber.cf", file.c_str())) { |
| 28 | return false; |
| 29 | } |
| 30 | |
| 31 | const char* name = "master_fiber"; |
| 32 | const FILE_FROM_TO tab[] = { |
| 33 | { "main_fiber.cpp", "main.cpp" }, |
| 34 | { "master_fiber.h", "master_service.h" }, |
| 35 | { "master_fiber.cpp", "master_service.cpp" }, |
| 36 | { "stdafx_fiber.h", "stdafx.h" }, |
| 37 | { NULL, NULL } |
| 38 | }; |
| 39 | |
| 40 | return tmpl.files_copy(name, tab) |
| 41 | && tmpl.copy_and_replace("Makefile_fiber", "Makefile") |
| 42 | && tmpl.file_copy("tmpl/Makefile_fiber.in", |
| 43 | "Makefile.in"); |
| 44 | } |
| 45 | |
| 46 | static bool create_master_proc(file_tmpl& tmpl) |
| 47 | { |
no test coverage detected
searching dependent graphs…