feat: add code style rules
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user