Commit 8758aaf5 authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Logger can be independant of python

parent 482c49e8
......@@ -42,8 +42,7 @@ lib_LTLIBRARIES = libswiftlogger.la
include_HEADERS = header.h io.h particle.h timeline.h logger_tools.h
# Common source files
AM_SOURCES = header.c io.c logger_loader.c particle.c \
timeline.c
AM_SOURCES = header.c io.c particle.c timeline.c
if HAVEPYTHON
AM_SOURCES += logger_loader.c
endif
......
#include "io.h"
#include "header.h"
#include "logger_tools.h"
/* file size */
#include <sys/stat.h>
/* mapping */
#include <sys/mman.h>
/* open */
#include <fcntl.h>
#include <unistd.h>
#include "io.h"
#include "header.h"
#include "logger_tools.h"
int io_get_file_size(int fd, size_t *size) {
struct stat s;
......
......@@ -11,6 +11,7 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STRING_SIZE 200
......
......@@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
void particle_print(const struct particle *p) {
printf("ID: %lu\n", p->id);
......
......@@ -5,7 +5,7 @@ double time_convert_to_double(const integertime_t ti, const double timeBase) {
return ti * timeBase; // should add timebegin
}
integertime_t time_convert_to_integer(const double_t ti,
integertime_t time_convert_to_integer(const double ti,
const double timeBase) {
return ti / timeBase; // should add timebegin
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment