mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-09 03:02:50 -06:00
More changes to compile on macOS (incomplete)
This commit is contained in:
@@ -430,7 +430,7 @@ void PgfReader::read_abstract(ref<PgfAbstr> abstract)
|
||||
|
||||
ref<PgfPGF> PgfReader::read_pgf()
|
||||
{
|
||||
ref<PgfPGF> pgf = PgfDB::malloc<PgfPGF>(master.size+1);
|
||||
ref<PgfPGF> pgf = PgfDB::malloc<PgfPGF>(master_size+1);
|
||||
|
||||
pgf->ref_count = 1;
|
||||
pgf->major_version = read_u16be();
|
||||
@@ -448,7 +448,8 @@ ref<PgfPGF> PgfReader::read_pgf()
|
||||
pgf->prev = 0;
|
||||
pgf->next = 0;
|
||||
|
||||
memcpy(&pgf->name, &master, sizeof(PgfText)+master.size+1);
|
||||
pgf->name.size = master_size;
|
||||
memcpy(&pgf->name.text, master_text, master_size+1);
|
||||
|
||||
return pgf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user