Herb C Reference
Loading...
Searching...
No Matches
location.h
Go to the documentation of this file.
1#ifndef HERB_LOCATION_H
2#define HERB_LOCATION_H
3
4#include <stdint.h>
5#include <stdlib.h>
6
7#include "position.h"
8#include "util/hb_allocator.h"
9
14
15void location_from(
16 location_T* location,
17 uint32_t start_line,
18 uint32_t start_column,
19 uint32_t end_line,
20 uint32_t end_column
21);
22
24
25location_T* location_create(position_T start, position_T end, hb_allocator_T* allocator);
26
27#endif
void location_from_positions(location_T *location, position_T start, position_T end)
Definition location.c:15
struct LOCATION_STRUCT location_T
location_T * location_create(position_T start, position_T end, hb_allocator_T *allocator)
Definition location.c:20
void location_from(location_T *location, uint32_t start_line, uint32_t start_column, uint32_t end_line, uint32_t end_column)
Definition location.c:4
Definition location.h:10
position_T end
Definition location.h:12
position_T start
Definition location.h:11
Definition position.h:8