1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00
stedolan-jq/locfile.h
Brendan Macmillan 40378a18f7 locfile.h -> locfile.h + locfile.c
clean up includes of a few files
2013-05-29 15:17:01 +10:00

24 lines
416 B
C

#ifndef _LOCFILE_H
#define _LOCFILE_H
typedef struct {
int start, end;
} location;
static const location UNKNOWN_LOCATION = {-1, -1};
struct locfile {
const char* data;
int length;
int* linemap;
int nlines;
};
void locfile_init(struct locfile* l, const char* data, int length);
void locfile_free(struct locfile* l);
void locfile_locate(struct locfile* l, location loc, const char* fmt, ...);
#endif