add compiler.h to abstract gcc attributes

This commit is contained in:
leitner
2020-11-08 00:29:35 +00:00
parent 51869a80f8
commit ddfdd4d077
45 changed files with 701 additions and 332 deletions

View File

@@ -1,6 +1,6 @@
#include "parse.h"
size_t bs_capacityleft(struct bytestream* bs) {
size_t bs_capacityleft(const struct bytestream* bs) {
if (bs->cur>=bs->max) // if EOF or error, return 0
return 0;
return bs->max - bs->cur;

View File

@@ -1,6 +1,6 @@
#include "parse.h"
int bs_err(struct bytestream* bs) {
int bs_err(const struct bytestream* bs) {
return (bs->cur > bs->max);
}