mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
Minor
This commit is contained in:
parent
6900c4c9fa
commit
4ff1c04c80
@ -79,8 +79,8 @@ static int peekn_char(Lexer *ctx, unsigned int i)
|
||||
memmove(b->buf, b->buf + (b->len - i), i * sizeof(*b->buf));
|
||||
}
|
||||
|
||||
b->pos = 0;
|
||||
b->len = fread(b->buf + i, sizeof(*b->buf), LEN(b->buf) - i, b->f);
|
||||
b->pos = 0;
|
||||
|
||||
if (b->len != LEN(b->buf)) {
|
||||
if (feof(b->f))
|
||||
|
@ -10,7 +10,7 @@
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
#define MIN(a, b) ((a) < (b) ? (a) : (b))
|
||||
|
||||
#define STRINGIZE(x) STRINGIZE2(x)
|
||||
#define STRINGIZE(x) STRINGIZE2(x)
|
||||
#define STRINGIZE2(x) #x
|
||||
|
||||
#define FORMATTED_STRING(arr, format) \
|
||||
|
Loading…
Reference in New Issue
Block a user