feat: add code style rules

This commit is contained in:
samsonium
2026-10-09 23:01:19 +03:00
parent 45206e3d07
commit 1d7cc88c22
11 changed files with 562 additions and 474 deletions
+15 -14
View File
@@ -1,25 +1,27 @@
#ifndef FZL_READER_H
#define FZL_READER_H
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <compiler/fzl_token.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
// Tokens linked list descriptor
typedef struct fzl_reader_ll {
fzl_token_t *token;
struct fzl_reader_ll *next;
typedef struct fzl_reader_ll
{
fzl_token_t *token;
struct fzl_reader_ll *next;
} fzl_reader_ll_t;
// Source reader description
typedef struct {
fzl_reader_ll_t *first;
fzl_reader_ll_t *last;
typedef struct
{
fzl_reader_ll_t *first;
fzl_reader_ll_t *last;
char *source;
size_t position;
bool at_end;
char *source;
size_t position;
bool at_end;
} fzl_reader_t;
// Allocate new reader
@@ -34,5 +36,4 @@ char *fzl_reader_geterror();
// Free reader
void fzl_freereader(fzl_reader_t *reader);
#endif//FZL_READER_H
#endif // FZL_READER_H