add compiler.h to abstract gcc attributes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user