[A] Added debug info

This commit is contained in:
seleznevae
2018-05-06 18:50:19 +03:00
parent 1c86313069
commit c3e605354f
3 changed files with 24 additions and 12 deletions

View File

@@ -535,11 +535,9 @@ int ft_table_wwrite_ln(ft_table_t *table, size_t rows, size_t cols, const wchar_
const char *ft_to_string(const ft_table_t *table)
{
typedef char char_type;
// const char_type *empty_string = "";
const enum str_buf_type buf_type = CharBuf;
const char *space_char = " ";
const char *new_line_char = "\n";
#define cur_F_STRDUP F_STRDUP
#define EMPTY_STRING ""
int (*snprintf_row_)(const fort_row_t *, char *, size_t, size_t *, size_t, size_t, const context_t *) = snprintf_row;
int (*print_row_separator_)(char *, size_t,
@@ -630,7 +628,6 @@ clear:
F_FREE(row_height_arr);
// F_FREE(buffer);
return NULL;
#undef cur_F_STRDUP
#undef EMPTY_STRING
}
@@ -640,11 +637,9 @@ clear:
const wchar_t *ft_to_wstring(const ft_table_t *table)
{
typedef wchar_t char_type;
// const char_type *empty_string = L"";
const enum str_buf_type buf_type = WCharBuf;
const char *space_char = " ";
const char *new_line_char = "\n";
#define cur_F_STRDUP F_WCSDUP
#define EMPTY_STRING L""
int (*snprintf_row_)(const fort_row_t *, wchar_t *, size_t, size_t *, size_t, size_t, const context_t *) = wsnprintf_row;
int (*print_row_separator_)(wchar_t *, size_t,
@@ -737,7 +732,6 @@ clear:
F_FREE(row_height_arr);
// F_FREE(buffer);
return NULL;
#undef cur_F_STRDUP
#undef EMPTY_STRING
}