[R] Removed debug code

This commit is contained in:
seleznevae 2018-05-06 22:51:41 +03:00
parent c3e605354f
commit b994e90a3d
2 changed files with 2 additions and 14 deletions

View File

@ -81,13 +81,13 @@ set(EXAMPLE_SOURCES
example/main.c) example/main.c)
add_executable(${PROJECT_NAME}_example add_executable(${PROJECT_NAME}_example
${EXAMPLE_SOURCES} ${EXAMPLE_SOURCES}
${FORT_DEV_SOURCES}) lib/fort.c)
set(EXAMPLE_CPP_SOURCES set(EXAMPLE_CPP_SOURCES
example/main.cpp) example/main.cpp)
add_executable(${PROJECT_NAME}_example_cpp add_executable(${PROJECT_NAME}_example_cpp
${EXAMPLE_CPP_SOURCES} ${EXAMPLE_CPP_SOURCES}
${FORT_DEV_SOURCES}) lib/fort.c)
set(TEST_SOURCES_DEV set(TEST_SOURCES_DEV
tests/main_test.c tests/main_test.c

View File

@ -113,73 +113,61 @@ int main(void)
ft_set_default_border_style(FT_BASIC_STYLE); ft_set_default_border_style(FT_BASIC_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_SIMPLE_STYLE); ft_set_default_border_style(FT_SIMPLE_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_PLAIN_STYLE); ft_set_default_border_style(FT_PLAIN_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_DOT_STYLE); ft_set_default_border_style(FT_DOT_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_EMPTY_STYLE); ft_set_default_border_style(FT_EMPTY_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_SOLID_STYLE); ft_set_default_border_style(FT_SOLID_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_SOLID_ROUND_STYLE); ft_set_default_border_style(FT_SOLID_ROUND_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_DOUBLE_STYLE); ft_set_default_border_style(FT_DOUBLE_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_DOUBLE2_STYLE); ft_set_default_border_style(FT_DOUBLE2_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_BOLD_STYLE); ft_set_default_border_style(FT_BOLD_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_BOLD2_STYLE); ft_set_default_border_style(FT_BOLD2_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
ft_set_default_border_style(FT_FRAME_STYLE); ft_set_default_border_style(FT_FRAME_STYLE);
table = create_basic_table(); table = create_basic_table();
printf("Table:\n%s\n", ft_to_string(table)); printf("Table:\n%s\n", ft_to_string(table));
print_char_str(ft_to_string(table));
ft_destroy_table(table); ft_destroy_table(table);
/* Debug */ /* Debug */