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:
J. David Ibáñez
2013-03-29 20:23:28 +01:00
parent 83874bd2d1
commit 30e4367e91
38 changed files with 96 additions and 96 deletions

View File

@@ -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.");

View File

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

View File

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

View File

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

View File

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

View File

@@ -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) && \

View File

@@ -25,7 +25,7 @@
* Boston, MA 02110-1301, USA.
*/
#include <pygit2/error.h>
#include "error.h"
PyObject *GitError;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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.");

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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