mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-04 08:42:50 -06:00
remove the dependency on the HAVE_STATEMENT_EXPRESSIONS flag. This reduces the dependency on the ./configure script
This commit is contained in:
@@ -76,8 +76,14 @@ pgf_read_len(PgfReader* rdr)
|
||||
// immediately.
|
||||
gu_return_on_exn(rdr->err, 0);
|
||||
if (len < 0) {
|
||||
gu_raise_i(rdr->err, PgfReadTagExn,
|
||||
.type = gu_type(GuLength), .tag = len);
|
||||
GuExnData* err_data = gu_raise(rdr->err, PgfReadTagExn);
|
||||
if (err_data) {
|
||||
PgfReadTagExn* rtag = gu_new(PgfReadTagExn, err_data->pool);
|
||||
rtag->type = gu_type(GuLength);
|
||||
rtag->tag = len;
|
||||
err_data->data = rtag;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
return (GuLength) len;
|
||||
|
||||
Reference in New Issue
Block a user