Compare commits
6 Commits
15cd748016
...
41237162a9
Author | SHA1 | Date | |
---|---|---|---|
|
41237162a9 | ||
|
8f83b51543 | ||
|
b8acba058f | ||
|
8c4bc8cce9 | ||
|
96c27521fc | ||
|
8f57a003b7 |
15
.cirrus.yml
15
.cirrus.yml
@ -1,7 +1,14 @@
|
|||||||
freebsd_instance:
|
|
||||||
image_family: freebsd-12-1
|
|
||||||
|
|
||||||
main_task:
|
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:
|
install_script:
|
||||||
- uname -a
|
- uname -a
|
||||||
- pkg install -y cmake
|
- pkg install -y cmake
|
||||||
@ -57,4 +64,4 @@ main_task:
|
|||||||
- ls
|
- ls
|
||||||
- ctest -VV
|
- ctest -VV
|
||||||
- cd ..
|
- cd ..
|
||||||
- rm -r build/*
|
- rm -r build/*
|
||||||
|
11
.drone.yml
11
.drone.yml
@ -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
|
kind: pipeline
|
||||||
name: test-on-amd64
|
name: test-on-amd64
|
||||||
|
|
||||||
@ -7,7 +10,7 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: alpine
|
image: alpine:3.12.3
|
||||||
commands:
|
commands:
|
||||||
- apk add gcc g++ cmake make binutils-gold
|
- apk add gcc g++ cmake make binutils-gold
|
||||||
- ls
|
- ls
|
||||||
@ -20,7 +23,7 @@ steps:
|
|||||||
- ctest -VV
|
- ctest -VV
|
||||||
|
|
||||||
- name: test-tcc-compiler
|
- name: test-tcc-compiler
|
||||||
image: alpine
|
image: alpine:3.12.3
|
||||||
commands:
|
commands:
|
||||||
- apk add gcc g++ cmake make binutils-gold
|
- apk add gcc g++ cmake make binutils-gold
|
||||||
# tcc available only in in edge alpine repo
|
# tcc available only in in edge alpine repo
|
||||||
@ -47,7 +50,7 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: alpine
|
image: alpine:3.12.3
|
||||||
commands:
|
commands:
|
||||||
- apk add gcc g++ cmake make binutils-gold
|
- apk add gcc g++ cmake make binutils-gold
|
||||||
- ls
|
- ls
|
||||||
@ -68,7 +71,7 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: alpine
|
image: alpine:3.12.3
|
||||||
commands:
|
commands:
|
||||||
- apk add gcc g++ cmake make binutils-gold
|
- apk add gcc g++ cmake make binutils-gold
|
||||||
- ls
|
- ls
|
||||||
|
@ -7,6 +7,11 @@
|
|||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- Fix `ft_printf_ln` when it is used for position which have empty cells before it.
|
- 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
|
## v0.4.2
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# libfort (Library to create FORmatted Tables)
|
# 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://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://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)
|
[![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 8.1.0 | Darwin Kernel Version 16.7.0 |
|
||||||
| AppleClang 9.1.0 | Darwin Kernel Version 17.4.0 |
|
| AppleClang 9.1.0 | Darwin Kernel Version 17.4.0 |
|
||||||
| Clang 8.0.1 | FreeBSD 12.1 |
|
| Clang 8.0.1 | FreeBSD 12.1 |
|
||||||
|
| Clang 11.0.1 | FreeBSD 13.0 |
|
||||||
| Visual Studio 2017 | Windows Server 2016 |
|
| Visual Studio 2017 | Windows Server 2016 |
|
||||||
|
|
||||||
|
|
||||||
|
@ -2832,9 +2832,10 @@ size_t ft_row_count(const ft_table_t *table)
|
|||||||
size_t ft_col_count(const ft_table_t *table)
|
size_t ft_col_count(const ft_table_t *table)
|
||||||
{
|
{
|
||||||
assert(table && table->rows);
|
assert(table && table->rows);
|
||||||
|
size_t i = 0;
|
||||||
size_t cols_n = 0;
|
size_t cols_n = 0;
|
||||||
size_t rows_n = vector_size(table->rows);
|
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 *);
|
f_row_t *row = VECTOR_AT(table->rows, i, f_row_t *);
|
||||||
size_t ncols = columns_in_row(row);
|
size_t ncols = columns_in_row(row);
|
||||||
cols_n = MAX(cols_n, ncols);
|
cols_n = MAX(cols_n, ncols);
|
||||||
|
@ -820,9 +820,9 @@ enum ft_color {
|
|||||||
FT_COLOR_LIGHT_GREEN = 11, /**< Light green color */
|
FT_COLOR_LIGHT_GREEN = 11, /**< Light green color */
|
||||||
FT_COLOR_LIGHT_YELLOW = 12, /**< Light yellow color */
|
FT_COLOR_LIGHT_YELLOW = 12, /**< Light yellow color */
|
||||||
FT_COLOR_LIGHT_BLUE = 13, /**< Light blue color */
|
FT_COLOR_LIGHT_BLUE = 13, /**< Light blue color */
|
||||||
FT_COLOR_LIGHT_MAGENTA = 15, /**< Light magenta color */
|
FT_COLOR_LIGHT_MAGENTA = 14, /**< Light magenta color */
|
||||||
FT_COLOR_LIGHT_CYAN = 16, /**< Light cyan color */
|
FT_COLOR_LIGHT_CYAN = 15, /**< Light cyan color */
|
||||||
FT_COLOR_LIGHT_WHYTE = 17 /**< Light whyte color */
|
FT_COLOR_LIGHT_WHYTE = 16 /**< Light whyte color */
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -820,9 +820,9 @@ enum ft_color {
|
|||||||
FT_COLOR_LIGHT_GREEN = 11, /**< Light green color */
|
FT_COLOR_LIGHT_GREEN = 11, /**< Light green color */
|
||||||
FT_COLOR_LIGHT_YELLOW = 12, /**< Light yellow color */
|
FT_COLOR_LIGHT_YELLOW = 12, /**< Light yellow color */
|
||||||
FT_COLOR_LIGHT_BLUE = 13, /**< Light blue color */
|
FT_COLOR_LIGHT_BLUE = 13, /**< Light blue color */
|
||||||
FT_COLOR_LIGHT_MAGENTA = 15, /**< Light magenta color */
|
FT_COLOR_LIGHT_MAGENTA = 14, /**< Light magenta color */
|
||||||
FT_COLOR_LIGHT_CYAN = 16, /**< Light cyan color */
|
FT_COLOR_LIGHT_CYAN = 15, /**< Light cyan color */
|
||||||
FT_COLOR_LIGHT_WHYTE = 17 /**< Light whyte color */
|
FT_COLOR_LIGHT_WHYTE = 16 /**< Light whyte color */
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -236,9 +236,10 @@ size_t ft_row_count(const ft_table_t *table)
|
|||||||
size_t ft_col_count(const ft_table_t *table)
|
size_t ft_col_count(const ft_table_t *table)
|
||||||
{
|
{
|
||||||
assert(table && table->rows);
|
assert(table && table->rows);
|
||||||
|
size_t i = 0;
|
||||||
size_t cols_n = 0;
|
size_t cols_n = 0;
|
||||||
size_t rows_n = vector_size(table->rows);
|
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 *);
|
f_row_t *row = VECTOR_AT(table->rows, i, f_row_t *);
|
||||||
size_t ncols = columns_in_row(row);
|
size_t ncols = columns_in_row(row);
|
||||||
cols_n = MAX(cols_n, ncols);
|
cols_n = MAX(cols_n, ncols);
|
||||||
|
@ -14,7 +14,7 @@ endif()
|
|||||||
if (NOT DEFINED libfort_LIBRARIES)
|
if (NOT DEFINED libfort_LIBRARIES)
|
||||||
message(FATAL_ERROR "libfort_LIBRARIES are not defined")
|
message(FATAL_ERROR "libfort_LIBRARIES are not defined")
|
||||||
endif()
|
endif()
|
||||||
if (NOT ${libfort_VERSION} EQUAL "0.4.1")
|
if (NOT ${libfort_VERSION} EQUAL "0.5.0")
|
||||||
message(FATAL_ERROR "libfort_VERSION is incorrect")
|
message(FATAL_ERROR "libfort_VERSION is incorrect")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user