Updated to not have headers in source directories

This commit is contained in:
Maieul BOYER 2024-08-04 15:48:08 +00:00
parent 0c435ed040
commit 91bb0a7533
33 changed files with 3668 additions and 4101 deletions

View file

@ -0,0 +1,26 @@
#ifndef LENGTH_H
#define LENGTH_H
#include "parser/api.h"
#include "me/types.h"
struct Length
{
t_u32 bytes;
TSPoint extent;
};
typedef struct Length Length;
static const Length LENGTH_UNDEFINED = {0, {0, 1}};
static const Length LENGTH_MAX = {UINT32_MAX, {UINT32_MAX, UINT32_MAX}};
Length length_saturating_sub(Length len1, Length len2);
Length length_zero(void);
Length length_sub(Length len1, Length len2);
Length length_add(Length len1, Length len2);
Length length_min(Length len1, Length len2);
Length length_max(Length len1, Length len2);
bool length_is_undefined(Length length);
#endif