mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-25 20:42:50 -06:00
Refactor modules in Python bindings. Start work on grammar-update functions, but without transactions.
This commit is contained in:
38
src/runtime/python/transactions.h
Normal file
38
src/runtime/python/transactions.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifndef PYPGF_TRANSACTIONS_H_
|
||||
#define PYPGF_TRANSACTIONS_H_
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
|
||||
#include <pgf/pgf.h>
|
||||
|
||||
// typedef struct {
|
||||
// PyObject_HEAD
|
||||
// PyObject *thing;
|
||||
// } TransactionObject;
|
||||
|
||||
// modifyPGF
|
||||
//
|
||||
// branchPGF
|
||||
//
|
||||
// checkoutPGF
|
||||
|
||||
PyObject *
|
||||
PGF_createFunction(PGFObject *self, PyObject *args);
|
||||
|
||||
PyObject *
|
||||
PGF_dropFunction(PGFObject *self, PyObject *args);
|
||||
|
||||
PyObject *
|
||||
PGF_createCategory(PGFObject *self, PyObject *args);
|
||||
|
||||
PyObject *
|
||||
PGF_dropCategory(PGFObject *self, PyObject *args);
|
||||
|
||||
// setGlobalFlag
|
||||
//
|
||||
// setAbstractFlag
|
||||
|
||||
|
||||
|
||||
#endif // PYPGF_TRANSACTIONS_H_
|
||||
Reference in New Issue
Block a user