Compare commits

...

6 Commits

Author SHA1 Message Date
seleznevae
41237162a9 [U] Update CI configs 2021-06-23 21:00:53 +03:00
seleznevae
8f83b51543 [F] Fix invalid enumeration values 2021-06-02 18:59:59 +03:00
seleznevae
b8acba058f [F] Fix library version in package tests 2020-12-01 20:16:25 +03:00
Seleznev Anton
8c4bc8cce9
Merge pull request #59 from seleznevae/issues-58
Fix `ft_printf_ln` when it is used for position which has empty cells before it.
2020-12-01 20:02:57 +03:00
seleznevae
96c27521fc Merge remote-tracking branch 'origin/develop' into issues-58 2020-11-30 21:52:25 +03:00
seleznevae
8f57a003b7 [F] Fix compilation for old C compilers 2020-11-30 20:23:43 +03:00
9 changed files with 36 additions and 18 deletions

View File

@ -1,7 +1,14 @@
freebsd_instance:
image_family: freebsd-12-1
main_task:
matrix:
- name: freebsd_12_1
freebsd_instance:
image_family: freebsd-12-1
- name: freebsd_13_0
freebsd_instance:
image_family: freebsd-13-0
install_script:
- uname -a
- pkg install -y cmake
@ -57,4 +64,4 @@ main_task:
- ls
- ctest -VV
- cd ..
- rm -r build/*
- rm -r build/*

View File

@ -1,4 +1,7 @@
---
# NOTE: there were some problems when we just used `alpine` image so we pinned the exaxt
# version. Consider returning to just `alpine` image when it will be fixed.
kind: pipeline
name: test-on-amd64
@ -7,7 +10,7 @@ platform:
steps:
- name: test
image: alpine
image: alpine:3.12.3
commands:
- apk add gcc g++ cmake make binutils-gold
- ls
@ -20,7 +23,7 @@ steps:
- ctest -VV
- name: test-tcc-compiler
image: alpine
image: alpine:3.12.3
commands:
- apk add gcc g++ cmake make binutils-gold
# tcc available only in in edge alpine repo
@ -47,7 +50,7 @@ platform:
steps:
- name: test
image: alpine
image: alpine:3.12.3
commands:
- apk add gcc g++ cmake make binutils-gold
- ls
@ -68,7 +71,7 @@ platform:
steps:
- name: test
image: alpine
image: alpine:3.12.3
commands:
- apk add gcc g++ cmake make binutils-gold
- ls

View File

@ -7,6 +7,11 @@
### Bug fixes
- Fix `ft_printf_ln` when it is used for position which have empty cells before it.
- Fix invalid `enum ft_color` values.
### Internal
- Update CI pipelines on different platforms.
## v0.4.2

View File

@ -1,6 +1,6 @@
# libfort (Library to create FORmatted Tables)
[![Build Status](https://travis-ci.org/seleznevae/libfort.svg?branch=master)](https://travis-ci.org/seleznevae/libfort)
[![Build Status](https://travis-ci.com/seleznevae/libfort.svg?branch=master)](https://travis-ci.com/seleznevae/libfort)
[![Build Status](https://api.cirrus-ci.com/github/seleznevae/libfort.svg)](https://cirrus-ci.com/github/seleznevae/libfort)
[![Build status](https://ci.appveyor.com/api/projects/status/ll1qygb56pho95xw/branch/master?svg=true)](https://ci.appveyor.com/project/seleznevae/libfort/branch/master)
[![Build Status](https://cloud.drone.io/api/badges/seleznevae/libfort/status.svg?ref=refs/heads/master)](https://cloud.drone.io/seleznevae/libfort)
@ -344,6 +344,7 @@ The following compilers are currently used in continuous integration at [Travis]
| AppleClang 8.1.0 | Darwin Kernel Version 16.7.0 |
| AppleClang 9.1.0 | Darwin Kernel Version 17.4.0 |
| Clang 8.0.1 | FreeBSD 12.1 |
| Clang 11.0.1 | FreeBSD 13.0 |
| Visual Studio 2017 | Windows Server 2016 |

View File

@ -2832,9 +2832,10 @@ size_t ft_row_count(const ft_table_t *table)
size_t ft_col_count(const ft_table_t *table)
{
assert(table && table->rows);
size_t i = 0;
size_t cols_n = 0;
size_t rows_n = vector_size(table->rows);
for (size_t i = 0; i < rows_n; ++i) {
for (i = 0; i < rows_n; ++i) {
f_row_t *row = VECTOR_AT(table->rows, i, f_row_t *);
size_t ncols = columns_in_row(row);
cols_n = MAX(cols_n, ncols);

View File

@ -820,9 +820,9 @@ enum ft_color {
FT_COLOR_LIGHT_GREEN = 11, /**< Light green color */
FT_COLOR_LIGHT_YELLOW = 12, /**< Light yellow color */
FT_COLOR_LIGHT_BLUE = 13, /**< Light blue color */
FT_COLOR_LIGHT_MAGENTA = 15, /**< Light magenta color */
FT_COLOR_LIGHT_CYAN = 16, /**< Light cyan color */
FT_COLOR_LIGHT_WHYTE = 17 /**< Light whyte color */
FT_COLOR_LIGHT_MAGENTA = 14, /**< Light magenta color */
FT_COLOR_LIGHT_CYAN = 15, /**< Light cyan color */
FT_COLOR_LIGHT_WHYTE = 16 /**< Light whyte color */
};
/**

View File

@ -820,9 +820,9 @@ enum ft_color {
FT_COLOR_LIGHT_GREEN = 11, /**< Light green color */
FT_COLOR_LIGHT_YELLOW = 12, /**< Light yellow color */
FT_COLOR_LIGHT_BLUE = 13, /**< Light blue color */
FT_COLOR_LIGHT_MAGENTA = 15, /**< Light magenta color */
FT_COLOR_LIGHT_CYAN = 16, /**< Light cyan color */
FT_COLOR_LIGHT_WHYTE = 17 /**< Light whyte color */
FT_COLOR_LIGHT_MAGENTA = 14, /**< Light magenta color */
FT_COLOR_LIGHT_CYAN = 15, /**< Light cyan color */
FT_COLOR_LIGHT_WHYTE = 16 /**< Light whyte color */
};
/**

View File

@ -236,9 +236,10 @@ size_t ft_row_count(const ft_table_t *table)
size_t ft_col_count(const ft_table_t *table)
{
assert(table && table->rows);
size_t i = 0;
size_t cols_n = 0;
size_t rows_n = vector_size(table->rows);
for (size_t i = 0; i < rows_n; ++i) {
for (i = 0; i < rows_n; ++i) {
f_row_t *row = VECTOR_AT(table->rows, i, f_row_t *);
size_t ncols = columns_in_row(row);
cols_n = MAX(cols_n, ncols);

View File

@ -14,7 +14,7 @@ endif()
if (NOT DEFINED libfort_LIBRARIES)
message(FATAL_ERROR "libfort_LIBRARIES are not defined")
endif()
if (NOT ${libfort_VERSION} EQUAL "0.4.1")
if (NOT ${libfort_VERSION} EQUAL "0.5.0")
message(FATAL_ERROR "libfort_VERSION is incorrect")
endif()