Move header files to src/
This is not a C library, so we don't have a public C API to expose.
This commit is contained in:
@@ -27,9 +27,9 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/object.h>
|
||||
#include <pygit2/blob.h>
|
||||
#include "utils.h"
|
||||
#include "object.h"
|
||||
#include "blob.h"
|
||||
|
||||
|
||||
PyDoc_STRVAR(Blob_size__doc__, "Size.");
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
PyObject* Blob_get_size(Blob *self);
|
||||
|
@@ -27,10 +27,10 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/signature.h>
|
||||
#include <pygit2/commit.h>
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
#include "signature.h"
|
||||
#include "commit.h"
|
||||
|
||||
extern PyTypeObject TreeType;
|
||||
|
||||
|
@@ -27,10 +27,10 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/config.h>
|
||||
#include "error.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
#include "config.h"
|
||||
|
||||
extern PyTypeObject ConfigType;
|
||||
|
||||
|
@@ -28,10 +28,10 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <structmember.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/diff.h>
|
||||
#include "error.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
#include "diff.h"
|
||||
|
||||
extern PyObject *GitError;
|
||||
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
#define DIFF_CHECK_TYPES(_x, _y, _type_x, _type_y) \
|
||||
PyObject_TypeCheck(_x, _type_x) && \
|
@@ -25,7 +25,7 @@
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include <pygit2/error.h>
|
||||
#include "error.h"
|
||||
|
||||
PyObject *GitError;
|
||||
|
||||
|
10
src/index.c
10
src/index.c
@@ -27,11 +27,11 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/index.h>
|
||||
#include "error.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
#include "oid.h"
|
||||
#include "index.h"
|
||||
|
||||
extern PyTypeObject IndexType;
|
||||
extern PyTypeObject TreeType;
|
||||
|
10
src/note.c
10
src/note.c
@@ -28,11 +28,11 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <structmember.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/note.h>
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
#include "types.h"
|
||||
#include "oid.h"
|
||||
#include "note.h"
|
||||
|
||||
extern PyTypeObject SignatureType;
|
||||
|
||||
|
12
src/object.c
12
src/object.c
@@ -27,12 +27,12 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/repository.h>
|
||||
#include <pygit2/object.h>
|
||||
#include "error.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
#include "oid.h"
|
||||
#include "repository.h"
|
||||
#include "object.h"
|
||||
|
||||
extern PyTypeObject TreeType;
|
||||
extern PyTypeObject CommitType;
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
PyObject* Object_get_oid(Object *self);
|
||||
PyObject* Object_get_hex(Object *self);
|
@@ -28,9 +28,9 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include "utils.h"
|
||||
#include "error.h"
|
||||
#include "oid.h"
|
||||
|
||||
int
|
||||
py_str_to_git_oid(PyObject *py_str, git_oid *oid)
|
||||
|
10
src/pygit2.c
10
src/pygit2.c
@@ -28,12 +28,12 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <osdefs.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/repository.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <git2.h>
|
||||
#include "error.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
#include "repository.h"
|
||||
#include "oid.h"
|
||||
|
||||
extern PyObject *GitError;
|
||||
|
||||
|
@@ -29,12 +29,12 @@
|
||||
#include <Python.h>
|
||||
#include <string.h>
|
||||
#include <structmember.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/signature.h>
|
||||
#include <pygit2/reference.h>
|
||||
#include "error.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
#include "oid.h"
|
||||
#include "signature.h"
|
||||
#include "reference.h"
|
||||
|
||||
|
||||
extern PyObject *GitError;
|
||||
|
@@ -28,10 +28,10 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <structmember.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/remote.h>
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
#include "types.h"
|
||||
#include "remote.h"
|
||||
|
||||
extern PyObject *GitError;
|
||||
extern PyTypeObject RepositoryType;
|
||||
|
@@ -27,15 +27,15 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/reference.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/object.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/note.h>
|
||||
#include <pygit2/repository.h>
|
||||
#include <pygit2/remote.h>
|
||||
#include "error.h"
|
||||
#include "types.h"
|
||||
#include "reference.h"
|
||||
#include "utils.h"
|
||||
#include "object.h"
|
||||
#include "oid.h"
|
||||
#include "note.h"
|
||||
#include "repository.h"
|
||||
#include "remote.h"
|
||||
|
||||
extern PyObject *GitError;
|
||||
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
int Repository_init(Repository *self, PyObject *args, PyObject *kwds);
|
||||
int Repository_traverse(Repository *self, visitproc visit, void *arg);
|
@@ -27,11 +27,11 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/signature.h>
|
||||
#include "error.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
#include "oid.h"
|
||||
#include "signature.h"
|
||||
|
||||
int
|
||||
Signature_init(Signature *self, PyObject *args, PyObject *kwds)
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
PyObject* Signature_get_encoding(Signature *self);
|
||||
PyObject* Signature_get_raw_name(Signature *self);
|
12
src/tag.c
12
src/tag.c
@@ -27,12 +27,12 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/types.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/signature.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/tag.h>
|
||||
#include "error.h"
|
||||
#include "types.h"
|
||||
#include "utils.h"
|
||||
#include "signature.h"
|
||||
#include "oid.h"
|
||||
#include "tag.h"
|
||||
|
||||
|
||||
PyDoc_STRVAR(Tag_target__doc__, "Tagged object.");
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
PyObject* Tag_get_target(Tag *self);
|
||||
PyObject* Tag_get_name(Tag *self);
|
10
src/tree.c
10
src/tree.c
@@ -28,11 +28,11 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <string.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/repository.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/tree.h>
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
#include "repository.h"
|
||||
#include "oid.h"
|
||||
#include "tree.h"
|
||||
|
||||
extern PyTypeObject TreeType;
|
||||
extern PyTypeObject DiffType;
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
PyObject* TreeEntry_get_filemode(TreeEntry *self);
|
||||
PyObject* TreeEntry_get_name(TreeEntry *self);
|
@@ -28,10 +28,10 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <string.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/treebuilder.h>
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
#include "oid.h"
|
||||
#include "treebuilder.h"
|
||||
|
||||
|
||||
void
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
PyObject* TreeBuilder_insert(TreeBuilder *self, PyObject *args);
|
||||
PyObject* TreeBuilder_write(TreeBuilder *self);
|
@@ -27,8 +27,8 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
|
||||
extern PyTypeObject ReferenceType;
|
||||
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
/* Python 2 support */
|
||||
#if PY_MAJOR_VERSION == 2
|
10
src/walker.c
10
src/walker.c
@@ -27,11 +27,11 @@
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <pygit2/error.h>
|
||||
#include <pygit2/utils.h>
|
||||
#include <pygit2/oid.h>
|
||||
#include <pygit2/tree.h>
|
||||
#include <pygit2/walker.h>
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
#include "oid.h"
|
||||
#include "tree.h"
|
||||
#include "walker.h"
|
||||
|
||||
extern PyTypeObject CommitType;
|
||||
|
||||
|
@@ -31,7 +31,7 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <git2.h>
|
||||
#include <pygit2/types.h>
|
||||
#include "types.h"
|
||||
|
||||
void Walker_dealloc(Walker *self);
|
||||
PyObject* Walker_hide(Walker *self, PyObject *py_hex);
|
Reference in New Issue
Block a user