mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-26 16:53:17 -06:00
try an implementation for writePGF_ on macOS
This commit is contained in:
1 parent
fc23e8b9fe
commit
d49ef33054
4 files changed
+76
-8
No files matched your search
@@ -291,13 +291,21 @@ void pgf_write_pgf(const char* fpath,
|
||||
PgfText **langs, // null terminated list or null
|
||||
PgfExn* err);
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
#if defined(__linux__)
|
||||
PGF_API_DECL
|
||||
void pgf_write_pgf_cookie
|
||||
(void *cookie, cookie_io_functions_t *io_funcs,
|
||||
PgfDB *db, PgfRevision revision,
|
||||
PgfText **langs, // null terminated list or null
|
||||
PgfExn* err);
|
||||
#elif defined(__APPLE__)
|
||||
PGF_API_DECL
|
||||
void pgf_write_pgf_cookie
|
||||
(void *cookie, int (*writefn)(void *, const char *, int),
|
||||
int (*closefn)(void *),
|
||||
PgfDB *db, PgfRevision revision,
|
||||
PgfText **langs, // null terminated list or null
|
||||
PgfExn* err);
|
||||
#endif
|
||||
|
||||
PGF_API_DECL
|
||||
|
||||
Reference in new issue
Block a user