diff --git a/arch_pkgs/c/.SRCINFO b/arch_pkgs/c/.SRCINFO index e6ffb20..2434d9d 100644 --- a/arch_pkgs/c/.SRCINFO +++ b/arch_pkgs/c/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = cism pkgdesc = C implementation of iSM - pkgver = 1.0.3 + pkgver = 1.0.4 pkgrel = 1 url = https://github.com/neferin12/iSM arch = x86_64 @@ -8,7 +8,7 @@ pkgbase = cism makedepends = cmake depends = glibc depends = openmpi - source = libism-1.0.3.tar.gz::https://github.com/neferin12/iSM/archive/v1.0.3/libism-1.0.3.tar.gz + source = libism-1.0.4.tar.gz::https://github.com/neferin12/iSM/archive/v1.0.4/libism-1.0.4.tar.gz sha256sums = c19929a4e563aff8783b57715df2ca6221704d3ade0480bd556ce55ad5fb6a23 pkgname = libism diff --git a/arch_pkgs/c/PKGBUILD b/arch_pkgs/c/PKGBUILD index 64b79cc..aeb19d8 100644 --- a/arch_pkgs/c/PKGBUILD +++ b/arch_pkgs/c/PKGBUILD @@ -2,7 +2,7 @@ pkgbase='cism' pkgname=('libism' 'cism') -pkgver=1.0.3 +pkgver=1.0.4 pkgrel=1 pkgdesc='C implementation of iSM' arch=('x86_64') diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt index 5f972a6..dfbef10 100644 --- a/c/CMakeLists.txt +++ b/c/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.5) -project(cISM VERSION 1.0.3 DESCRIPTION "C implementation of iSM") +project(cISM VERSION 1.0.4 DESCRIPTION "C implementation of iSM") include(GNUInstallDirs) diff --git a/c/src/CMakeLists.txt b/c/src/CMakeLists.txt index 20d2d3e..07ebcad 100644 --- a/c/src/CMakeLists.txt +++ b/c/src/CMakeLists.txt @@ -1,7 +1,7 @@ add_library(ism SHARED algorithm.c io.c log.c organization.c errorHandling.c constants.c) target_include_directories(ism PUBLIC ${PROJECT_SOURCE_DIR}/src/headers) -add_executable(cism main.c cismMPI.c headers/cismMPI.h) +add_executable(cism main.c cismMPI.c headers/cismMPI.h log.c headers/log.h) find_package(PkgConfig REQUIRED) find_package(MPI REQUIRED) diff --git a/c/src/log.c b/c/src/log.c index 2720c10..85337f8 100644 --- a/c/src/log.c +++ b/c/src/log.c @@ -20,7 +20,7 @@ * IN THE SOFTWARE. */ -#include "log.h" +#include "headers/log.h" #define MAX_CALLBACKS 32 @@ -55,7 +55,7 @@ static void stdout_callback(log_Event *ev) { buf[strftime(buf, sizeof(buf), "%H:%M:%S", ev->time)] = '\0'; #ifdef LOG_USE_COLOR fprintf( - ev->udata, "%s %s%-5s\x1b[0m \x1b[90m:\x1b[0m ", + ev->udata, "%s %s%-5s\x1b[0m\x1b[90m:\x1b[0m ", buf, level_colors[ev->level], level_strings[ev->level]); #else fprintf(