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

This commit is contained in:
krangelov committed 2021-08-08 18:29:16 +02:00
1 parent f70e1b8772
commit 91f183ca6a
17 files changed
+16 -17

No files matched your search

+12 -12
View File
@@ -3,21 +3,21 @@ lib_LTLIBRARIES = libpgf.la
pkgconfigdir = $(libdir)/pkgconfig pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libpgf.pc pkgconfig_DATA = libpgf.pc
pgfincludedir=$(includedir) pgfincludedir=$(includedir)/pgf
pgfinclude_HEADERS = \ pgfinclude_HEADERS = \
pgf.h pgf/pgf.h
libpgf_la_SOURCES = \ libpgf_la_SOURCES = \
db.cxx \ pgf/db.cxx \
db.h \ pgf/db.h \
text.cxx \ pgf/text.cxx \
text.h \ pgf/text.h \
pgf.cxx \ pgf/pgf.cxx \
reader.cxx \ pgf/reader.cxx \
reader.h \ pgf/reader.h \
data.h \ pgf/data.h \
expr.h \ pgf/expr.h \
namespace.h pgf/namespace.h
libpgf_la_LDFLAGS = "-no-undefined" 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.
+1 -1
View File
@@ -41,7 +41,7 @@ import Data.Typeable
import qualified Data.Map as Map import qualified Data.Map as Map
import Data.IORef import Data.IORef
#include <pgf.h> #include <pgf/pgf.h>
type AbsName = String -- ^ Name of abstract syntax type AbsName = String -- ^ Name of abstract syntax
type ConcName = String -- ^ Name of concrete syntax type ConcName = String -- ^ Name of concrete syntax
+1 -1
View File
@@ -9,7 +9,7 @@ import Foreign.Ptr
import Foreign.ForeignPtr import Foreign.ForeignPtr
import qualified Data.Map as Map import qualified Data.Map as Map
#include <pgf.h> #include <pgf/pgf.h>
-- | An abstract data type representing multilingual grammar -- | An abstract data type representing multilingual grammar
-- in Portable Grammar Format. -- in Portable Grammar Format.
-1
View File
@@ -25,7 +25,6 @@ library
extra-libraries: pgf extra-libraries: pgf
cc-options: -std=c99 cc-options: -std=c99
c-sources: utils.c
test-suite basic test-suite basic
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
+2 -2
View File
@@ -2,7 +2,7 @@
#include <Python.h> #include <Python.h>
#include "structmember.h" #include "structmember.h"
#include <pgf.h> #include <pgf/pgf.h>
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
#define PyIntObject PyLongObject #define PyIntObject PyLongObject
@@ -3521,7 +3521,7 @@ pgf_readPGF(PyObject *self, PyObject *args)
return NULL; return NULL;
} else if (err.type == PGF_EXN_PGF_ERROR) { } else if (err.type == PGF_EXN_PGF_ERROR) {
PyErr_SetString(PGFError, err.msg); PyErr_SetString(PGFError, err.msg);
free(err.msg); free((char*) err.msg);
Py_DECREF(py_pgf); Py_DECREF(py_pgf);
return NULL; return NULL;
} }