mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
move the C sources to the subfolder pgf again for backwards compatibility
This commit is contained in:
@@ -3,21 +3,21 @@ lib_LTLIBRARIES = libpgf.la
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libpgf.pc
|
||||
|
||||
pgfincludedir=$(includedir)
|
||||
pgfincludedir=$(includedir)/pgf
|
||||
pgfinclude_HEADERS = \
|
||||
pgf.h
|
||||
pgf/pgf.h
|
||||
|
||||
libpgf_la_SOURCES = \
|
||||
db.cxx \
|
||||
db.h \
|
||||
text.cxx \
|
||||
text.h \
|
||||
pgf.cxx \
|
||||
reader.cxx \
|
||||
reader.h \
|
||||
data.h \
|
||||
expr.h \
|
||||
namespace.h
|
||||
pgf/db.cxx \
|
||||
pgf/db.h \
|
||||
pgf/text.cxx \
|
||||
pgf/text.h \
|
||||
pgf/pgf.cxx \
|
||||
pgf/reader.cxx \
|
||||
pgf/reader.h \
|
||||
pgf/data.h \
|
||||
pgf/expr.h \
|
||||
pgf/namespace.h
|
||||
|
||||
libpgf_la_LDFLAGS = "-no-undefined"
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import Data.Typeable
|
||||
import qualified Data.Map as Map
|
||||
import Data.IORef
|
||||
|
||||
#include <pgf.h>
|
||||
#include <pgf/pgf.h>
|
||||
|
||||
type AbsName = String -- ^ Name of abstract syntax
|
||||
type ConcName = String -- ^ Name of concrete syntax
|
||||
|
||||
@@ -9,7 +9,7 @@ import Foreign.Ptr
|
||||
import Foreign.ForeignPtr
|
||||
import qualified Data.Map as Map
|
||||
|
||||
#include <pgf.h>
|
||||
#include <pgf/pgf.h>
|
||||
|
||||
-- | An abstract data type representing multilingual grammar
|
||||
-- in Portable Grammar Format.
|
||||
|
||||
@@ -25,7 +25,6 @@ library
|
||||
|
||||
extra-libraries: pgf
|
||||
cc-options: -std=c99
|
||||
c-sources: utils.c
|
||||
|
||||
test-suite basic
|
||||
type: exitcode-stdio-1.0
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <Python.h>
|
||||
#include "structmember.h"
|
||||
|
||||
#include <pgf.h>
|
||||
#include <pgf/pgf.h>
|
||||
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
#define PyIntObject PyLongObject
|
||||
@@ -3521,7 +3521,7 @@ pgf_readPGF(PyObject *self, PyObject *args)
|
||||
return NULL;
|
||||
} else if (err.type == PGF_EXN_PGF_ERROR) {
|
||||
PyErr_SetString(PGFError, err.msg);
|
||||
free(err.msg);
|
||||
free((char*) err.msg);
|
||||
Py_DECREF(py_pgf);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user