Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
c0e7ee4e
Unverified
Commit
c0e7ee4e
authored
Jul 18, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small stuff
parent
c143a722
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
7 deletions
+20
-7
changelog
+1
-0
include/cif++/matrix.hpp
+2
-0
include/cif++/utilities.hpp
+1
-1
src/utilities.cpp
+16
-6
No files found.
changelog
View file @
c0e7ee4e
Version
5.1.1
-
Added
missing
include
<
compare
>
in
symmetry
.
hpp
-
Added
empty
()
to
matrix
Version
5.1
-
New
parser
,
optimised
for
speed
...
...
include/cif++/matrix.hpp
View file @
c0e7ee4e
...
...
@@ -47,6 +47,8 @@ class matrix_expression
constexpr
uint32_t
dim_m
()
const
{
return
static_cast
<
const
M
&>
(
*
this
).
dim_m
();
}
constexpr
uint32_t
dim_n
()
const
{
return
static_cast
<
const
M
&>
(
*
this
).
dim_n
();
}
constexpr
bool
empty
()
const
{
return
dim_m
()
==
0
or
dim_n
()
==
0
;
}
constexpr
auto
&
operator
()(
uint32_t
i
,
uint32_t
j
)
{
return
static_cast
<
M
&>
(
*
this
).
operator
()(
i
,
j
);
...
...
include/cif++/utilities.hpp
View file @
c0e7ee4e
...
...
@@ -34,7 +34,7 @@
#define STDOUT_FILENO 1
#endif
#if _
MSC_VER
#if _
WIN32
#include <io.h>
#define isatty _isatty
#else
...
...
src/utilities.cpp
View file @
c0e7ee4e
...
...
@@ -43,7 +43,7 @@
#include <sstream>
#include <thread>
#if not defined(_
MSC_VER
)
#if not defined(_
WIN32
)
#include <sys/ioctl.h>
#include <termios.h>
#endif
...
...
@@ -68,7 +68,7 @@ std::string get_version_nr()
// --------------------------------------------------------------------
#ifdef _
MSC_VER
#ifdef _
WIN32
}
#include <Windows.h>
#include <libloaderapi.h>
...
...
@@ -411,11 +411,19 @@ struct rsrc_imp
};
}
// namespace mrsrc
#if _
MSC_VER
#if _
WIN32
extern
"C"
CIFPP_EXPORT
const
mrsrc
::
rsrc_imp
*
gResourceIndexDefault
[
1
]
=
{};
extern
"C"
CIFPP_EXPORT
const
char
*
gResourceDataDefault
[
1
]
=
{};
extern
"C"
CIFPP_EXPORT
const
char
*
gResourceNameDefault
[
1
]
=
{};
#if __MINGW32__
extern
"C"
__attribute__
((
weak
,
alias
(
"gResourceIndexDefault"
)))
const
mrsrc
::
rsrc_imp
gResourceIndex
[];
extern
"C"
__attribute__
((
weak
,
alias
(
"gResourceDataDefault"
)))
const
char
gResourceData
[];
extern
"C"
__attribute__
((
weak
,
alias
(
"gResourceNameDefault"
)))
const
char
gResourceName
[];
#else
extern
"C"
const
mrsrc
::
rsrc_imp
*
gResourceIndexDefault
[
1
]
=
{};
extern
"C"
const
char
*
gResourceDataDefault
[
1
]
=
{};
extern
"C"
const
char
*
gResourceNameDefault
[
1
]
=
{};
extern
"C"
const
mrsrc
::
rsrc_imp
gResourceIndex
[];
extern
"C"
const
char
gResourceData
[];
...
...
@@ -425,6 +433,8 @@ extern "C" const char gResourceName[];
#pragma comment(linker, "/alternatename:gResourceData=gResourceDataDefault")
#pragma comment(linker, "/alternatename:gResourceName=gResourceNameDefault")
#endif
#else
extern
const
__attribute__
((
weak
))
mrsrc
::
rsrc_imp
gResourceIndex
[];
extern
const
__attribute__
((
weak
))
char
gResourceData
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment