fixing parsing

This commit is contained in:
Ellen Arvidsson 2025-06-28 00:20:00 +02:00
parent 0aa49cfe9b
commit 333534a8d1
8 changed files with 95 additions and 47 deletions

28
include/msph/msph.h Normal file
View file

@ -0,0 +1,28 @@
#ifndef _MSPH_H
#define _MSPH_H
#include "msph/err.h"
#include "spho/ctx.h"
#define MSPH_IDENT_LEN 128
#define MSPH_NAME_LEN 1024
struct msph_ctx {
int err;
int err_info;
char errbuf[SPHO_ERR_BUF_LEN];
struct spho_ctx *spho;
#ifdef SPHO_DEBUG
char filebuf[SPHO_ERR_FILEBUF_LEN];
int errline;
#endif
};
struct msph_text_pos {
unsigned int line;
unsigned int col;
};
#endif /* ifndef _MSPH_H */