1
0
forked from GitHub/gf-core

move the C sources to the subfolder pgf again for backwards compatibility

This commit is contained in:
krangelov
2021-08-08 18:29:16 +02:00
parent f70e1b8772
commit 91f183ca6a
17 changed files with 16 additions and 17 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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.

View File

@@ -25,7 +25,6 @@ library
extra-libraries: pgf
cc-options: -std=c99
c-sources: utils.c
test-suite basic
type: exitcode-stdio-1.0

View File

@@ -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;
}