2022-06-29 10:58:49 +02:00
|
|
|
#ifndef HELPER_H
|
|
|
|
#define HELPER_H
|
|
|
|
|
2022-06-29 10:50:55 +02:00
|
|
|
#include <errno.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <getopt.h>
|
|
|
|
|
|
|
|
enum argumentParseResult {
|
|
|
|
RESULT_OK = 0,
|
|
|
|
RESULT_EXIT_SUCCESS,
|
|
|
|
RESULT_EXIT_FAILURE
|
|
|
|
};
|
|
|
|
|
|
|
|
struct configuration {
|
|
|
|
char* filename;
|
|
|
|
int implementationToUse;
|
|
|
|
int doBenchmark;
|
|
|
|
int benchmarkingCycles;
|
|
|
|
};
|
|
|
|
|
2022-06-29 10:58:49 +02:00
|
|
|
enum argumentParseResult parseArguments(int argc, char** argv, struct configuration* c);
|
|
|
|
|
|
|
|
#endif // HELPER_H
|