Herb C Reference
Loading...
Searching...
No Matches
position.h
Go to the documentation of this file.
1#ifndef HERB_POSITION_H
2#define HERB_POSITION_H
3
4#include <stdbool.h>
5#include <stddef.h>
6#include <stdint.h>
7
8typedef struct POSITION_STRUCT {
9 uint32_t line;
10 uint32_t column;
12
13position_T position_from_source_with_offset(const char* source, size_t offset);
15
16#endif
bool position_is_within_range(position_T position, position_T start, position_T end)
Definition position.c:19
struct POSITION_STRUCT position_T
position_T position_from_source_with_offset(const char *source, size_t offset)
Definition position.c:4
Definition position.h:8
uint32_t line
Definition position.h:9
uint32_t column
Definition position.h:10