mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-05 03:35:27 -07:00
move the C sources to the subfolder pgf again for backwards compatibility
This commit is contained in:
1 parent
f70e1b8772
commit
91f183ca6a
17 files changed
+16
-17
No files matched your search
+12
-12
@@ -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"
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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