From 79e0d037718f161003be3854c0dca2b2eb94ea1f Mon Sep 17 00:00:00 2001 From: "Kai T. Ohlhus" Date: Thu, 28 Oct 2021 14:22:35 +0900 Subject: [PATCH] Test release v0.1.5 --- DESCRIPTION | 4 ++-- README.md | 10 +++++----- doc/MEX_INTERFACE.md | 8 ++++---- inst/install_apa.m | 2 +- inst/mex/mex_apa_interface.c | 2 ++ 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index ff22447..2032fbb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ name: apa -version: 0.1.4 -date: 2021-10-26 +version: 0.1.5 +date: 2021-10-28 author: Kai T. Ohlhus maintainer: Kai T. Ohlhus title: Octave/Matlab arbitrary precision arithmetic. diff --git a/README.md b/README.md index cf957e1..73e93f6 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ From the Octave command-line run: ```octave -pkg install 'https://github.com/gnu-octave/apa/releases/download/v0.1.4/apa-0.1.4.zip' +pkg install 'https://github.com/gnu-octave/apa/releases/download/v0.1.5/apa-0.1.5.zip' pkg load apa pkg test apa ``` @@ -13,10 +13,10 @@ pkg test apa From the Matlab command-line run (also works for Octave): ```matlab -urlwrite ('https://github.com/gnu-octave/apa/releases/download/v0.1.4/apa-0.1.4.zip', ... - 'apa-0.1.4.zip'); -unzip ('apa-0.1.4.zip'); -cd (fullfile ('apa-0.1.4', 'inst')) +urlwrite ('https://github.com/gnu-octave/apa/releases/download/v0.1.5/apa-0.1.5.zip', ... + 'apa-0.1.5.zip'); +unzip ('apa-0.1.5.zip'); +cd (fullfile ('apa-0.1.5', 'inst')) install_apa test_apa ``` diff --git a/doc/MEX_INTERFACE.md b/doc/MEX_INTERFACE.md index fd2a3c2..b17fae7 100644 --- a/doc/MEX_INTERFACE.md +++ b/doc/MEX_INTERFACE.md @@ -10,10 +10,10 @@ If those pre-compiled libraries are missing or not working, please read below. From the Octave/Matlab command-line run: ```matlab -urlwrite ('https://github.com/gnu-octave/apa/releases/download/v0.1.4/apa-0.1.4.zip', ... - 'apa-0.1.4.zip'); -unzip ('apa-0.1.4.zip'); -cd (fullfile ('apa-0.1.4', 'inst')) +urlwrite ('https://github.com/gnu-octave/apa/releases/download/v0.1.5/apa-0.1.5.zip', ... + 'apa-0.1.5.zip'); +unzip ('apa-0.1.5.zip'); +cd (fullfile ('apa-0.1.5', 'inst')) install_apa test_apa ``` diff --git a/inst/install_apa.m b/inst/install_apa.m index 3b6e994..60ab804 100644 --- a/inst/install_apa.m +++ b/inst/install_apa.m @@ -27,7 +27,7 @@ function install_apa (cmd) cflags = {'--std=c99', '-Wall', '-Wextra'}; if (ismac ()) cflags = [cflags, {'-Xpreprocessor', '-fopenmp'}]; - if (exist('OCTAVE_VERSION', 'builtin') == 5) + if (exist ('OCTAVE_VERSION', 'builtin') == 5) ldflags = {'-lomp'}; else % Matlab crashes when `gomp` is linked, use omp shipped with Matlab. diff --git a/inst/mex/mex_apa_interface.c b/inst/mex/mex_apa_interface.c index 191ff38..60e678e 100644 --- a/inst/mex/mex_apa_interface.c +++ b/inst/mex/mex_apa_interface.c @@ -195,4 +195,6 @@ FILE * __cdecl __acrt_iob_func (unsigned index) typedef FILE *__cdecl (*_f__acrt_iob_func)(unsigned index); _f__acrt_iob_func __MINGW_IMP_SYMBOL (__acrt_iob_func) = __acrt_iob_func; + #endif +