Mercurial
comparison mrjunejune/main.c @ 89:b5e65b01f0a3
Seobeo Tests.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Thu, 01 Jan 2026 14:37:37 -0800 |
| parents | a3962e681490 |
| children | 655ea0b661fd |
comparison
equal
deleted
inserted
replaced
| 88:a3962e681490 | 89:b5e65b01f0a3 |
|---|---|
| 39 memcpy(include_name, start_tag + token_len, name_len); | 39 memcpy(include_name, start_tag + token_len, name_len); |
| 40 include_name[name_len] = '\0'; | 40 include_name[name_len] = '\0'; |
| 41 | 41 |
| 42 size_t sub_file_size = 0; | 42 size_t sub_file_size = 0; |
| 43 char *sub_content = Seobeo_Web_LoadFile(include_name, &sub_file_size); | 43 char *sub_content = Seobeo_Web_LoadFile(include_name, &sub_file_size); |
| 44 printf("sub_content %s", sub_content); | |
| 45 if (sub_content) | 44 if (sub_content) |
| 46 { | 45 { |
| 47 memcpy(final_body + current_offset, sub_content, sub_file_size); | 46 memcpy(final_body + current_offset, sub_content, sub_file_size); |
| 48 current_offset += sub_file_size; | 47 current_offset += sub_file_size; |
| 49 free(sub_content); | 48 free(sub_content); |
| 123 Seobeo_Router_Register("GET", "/tools/index.html", GetRedirectTools); | 122 Seobeo_Router_Register("GET", "/tools/index.html", GetRedirectTools); |
| 124 | 123 |
| 125 Seobeo_Router_Register("GET", "/tools/markdown_to_html", GetMDToHTML); | 124 Seobeo_Router_Register("GET", "/tools/markdown_to_html", GetMDToHTML); |
| 126 Seobeo_Router_Register("GET", "/tools/markdown_to_html/index.html", GetRedirectMarkDownToHtml); | 125 Seobeo_Router_Register("GET", "/tools/markdown_to_html/index.html", GetRedirectMarkDownToHtml); |
| 127 | 126 |
| 128 Seobeo_Web_Server_Start("mrjunejune/src", "6969", SEOBEO_MODE_EDGE, 2); | 127 Seobeo_Web_Server_Start("mrjunejune/src", "6969", SEOBEO_MODE_EDGE, 3); |
| 129 } | 128 } |