Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
cfe3a027
Commit
cfe3a027
authored
Jan 15, 2010
by
Ramsay Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a 64 bit off_t throughout the library and tests on POSIX
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
parent
960ca1d7
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
14 deletions
+11
-14
src/common.h
+3
-0
src/fileops.h
+0
-3
tests/t0001-errno.c
+0
-1
tests/t0020-dirent.c
+0
-1
tests/t0101-oid.c
+0
-1
tests/t0201-existsloose.c
+0
-1
tests/t0202-readloose.c
+0
-1
tests/t0203-readloose.c
+0
-1
tests/test_helpers.c
+1
-0
tests/test_lib.c
+1
-4
tests/test_lib.h
+6
-1
No files found.
src/common.h
View file @
cfe3a027
#ifndef INCLUDE_common_h__
#define INCLUDE_common_h__
/** Force 64 bit off_t size on POSIX. */
#define _FILE_OFFSET_BITS 64
#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
#define GIT_WIN32 1
#endif
...
...
src/fileops.h
View file @
cfe3a027
...
...
@@ -6,9 +6,6 @@
#ifndef INCLUDE_fileops_h__
#define INCLUDE_fileops_h__
/** Force 64 bit off_t size on POSIX. */
#define _FILE_OFFSET_BITS 64
#include "common.h"
#include "map.h"
#include "dir.h"
...
...
tests/t0001-errno.c
View file @
cfe3a027
#include "test_lib.h"
#include "errors.h"
#include <string.h>
BEGIN_TEST
(
errno_zero_on_init
)
must_be_true
(
git_errno
==
0
);
...
...
tests/t0020-dirent.c
View file @
cfe3a027
#include <stdarg.h>
#include "test_lib.h"
#include "fileops.h"
...
...
tests/t0101-oid.c
View file @
cfe3a027
#include "test_lib.h"
#include <git/oid.h>
#include <stdlib.h>
BEGIN_TEST
(
oid_szs
)
git_oid
out
;
...
...
tests/t0201-existsloose.c
View file @
cfe3a027
#include "test_lib.h"
#include "test_helpers.h"
#include <git/odb.h>
#include "fileops.h"
static
char
*
odb_dir
=
"test-objects"
;
...
...
tests/t0202-readloose.c
View file @
cfe3a027
...
...
@@ -2,7 +2,6 @@
#include "test_lib.h"
#include "test_helpers.h"
#include <git/odb.h>
#include "fileops.h"
/*
* read loose objects from the object directory. The objects are
...
...
tests/t0203-readloose.c
View file @
cfe3a027
...
...
@@ -2,7 +2,6 @@
#include "test_lib.h"
#include "test_helpers.h"
#include <git/odb.h>
#include "fileops.h"
/*
* read loose objects from the object directory. The objects are
...
...
tests/test_helpers.c
View file @
cfe3a027
...
...
@@ -23,6 +23,7 @@
* Boston, MA 02110-1301, USA.
*/
#include "common.h"
#include "test_helpers.h"
#include "fileops.h"
...
...
tests/test_lib.c
View file @
cfe3a027
...
...
@@ -23,10 +23,7 @@
* Boston, MA 02110-1301, USA.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#define GIT__NO_HIDE_MALLOC
#include "test_lib.h"
struct
test_info
...
...
tests/test_lib.h
View file @
cfe3a027
...
...
@@ -23,9 +23,14 @@
* Boston, MA 02110-1301, USA.
*/
#include
<stdio.h>
#include
"common.h"
#include <git/common.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
/** Declare a function never returns to the caller. */
#ifdef __GNUC__
# define NORETURN __attribute__((__noreturn__))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment