STASIS
A pipeline delivery generator
Loading...
Searching...
No Matches
version_compare.h
1#ifndef STASIS_VERSION_COMPARE_H
2#define STASIS_VERSION_COMPARE_H
3
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7#include <ctype.h>
8#include "str.h"
9
10#define GT 1 << 1
11#define LT 1 << 2
12#define EQ 1 << 3
13#define NOT 1 << 4
14#define EPOCH_MOD 10000
15
16int version_sum(const char *str);
17int version_parse_operator(const char *str);
18int version_compare(int flags, const char *aa, const char *bb);
19
20#endif //STASIS_VERSION_COMPARE_H