Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
70b766d1
Commit
70b766d1
authored
Oct 31, 2018
by
Loic Hausammann
Browse files
Move some definitions from logger.h to logger.c
parent
163a00aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/logger.c
View file @
70b766d1
...
...
@@ -40,6 +40,23 @@
#include
"part.h"
#include
"units.h"
/* header constants
* Thoses are definitions from the format and therefore should not be changed!
* Size in bytes
*/
/* size of a mask */
#define logger_mask_size 1
/* size of an offset */
#define logger_offset_size 7
/* size of the version information */
#define logger_version_size 20
/* size of the size information */
#define logger_header_number_size 2
char
logger_version
[
logger_version_size
]
=
"0.1"
;
const
unsigned
int
logger_datatype_size
[
logger_data_count
]
=
{
...
...
src/logger.h
View file @
70b766d1
...
...
@@ -72,11 +72,6 @@ struct engine;
* indicated that this is the first message for the given particle/timestamp.
*/
/* header constants
* Thoses are definitions from the format and therefore should not be changed!
* Size in bytes
*/
/* Some constants. */
#define logger_mask_x 1
#define logger_mask_v 2
...
...
@@ -87,21 +82,8 @@ struct engine;
#define logger_mask_consts 64
#define logger_mask_timestamp 128
/* size of a mask */
#define logger_mask_size 1
/* size of an offset */
#define logger_offset_size 7
/* size of the version information */
#define logger_version_size 20
/* size of the size information */
#define logger_header_number_size 2
extern
char
logger_version
[
logger_version_size
];
#define LOGGER_STRING_LENGTH 200
/* Size of the strings. */
#define logger_string_length 200
/* parameters of the logger */
struct
logger_parameters
{
...
...
@@ -142,7 +124,7 @@ struct logger {
short
int
delta_step
;
/* Logger basename */
char
base_name
[
LOGGER_STRING_LENGTH
];
char
base_name
[
logger_string_length
];
/* File name of the dump file */
struct
dump
*
dump
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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