global: DRY includes of assert.h

This commit is contained in:
Etienne Samson
2019-11-06 11:08:23 +01:00
parent 882220bf11
commit cd5e33fbc2
10 changed files with 4 additions and 14 deletions

View File

@@ -13,7 +13,6 @@
*/
#include "common.h"
#include <assert.h>
/**
* The following example demonstrates how to add files with libgit2.

View File

@@ -13,7 +13,6 @@
*/
#include "common.h"
#include <assert.h>
/* Define the printf format specifer to use for size_t output */
#if defined(_MSC_VER) || defined(__MINGW32__)

View File

@@ -12,7 +12,9 @@
* <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#include <assert.h>
#include "common.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -25,7 +27,6 @@
#include <string.h>
#include <errno.h>
#include "common.h"
void check_lg2(int error, const char *message, const char *extra)
{

View File

@@ -14,6 +14,7 @@
#ifndef INCLUDE_examples_common_h__
#define INCLUDE_examples_common_h__
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>

View File

@@ -13,7 +13,6 @@
*/
#include "common.h"
#include <assert.h>
/**
* The following example partially reimplements the `git describe` command

View File

@@ -13,7 +13,6 @@
*/
#include "common.h"
#include <assert.h>
/** The following example demonstrates how to do merges with libgit2.
*

View File

@@ -7,8 +7,6 @@
#include "apply.h"
#include <assert.h>
#include "git2/apply.h"
#include "git2/patch.h"
#include "git2/filter.h"

View File

@@ -7,8 +7,6 @@
#include "checkout.h"
#include <assert.h>
#include "git2/repository.h"
#include "git2/refs.h"
#include "git2/tree.h"

View File

@@ -7,8 +7,6 @@
#include "clone.h"
#include <assert.h>
#include "git2/clone.h"
#include "git2/remote.h"
#include "git2/revparse.h"

View File

@@ -7,8 +7,6 @@
#include "common.h"
#include <assert.h>
#include "buffer.h"
#include "tree.h"
#include "refdb.h"