Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give Git2.Index a proper home and list all the current subsystems in …
…setup.winxed
- Loading branch information
Showing
5 changed files
with
48 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ src/Git2/Cache.pir | |
src/Git2/Common.pir | ||
src/Git2/RefCache.pir | ||
src/Git2/Repository.pir | ||
src/Git2/Index.pir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
$include_const 'datatypes.pasm'; | ||
$include_const "iglobals.pasm"; | ||
const int DATATYPE_SIZE_T = DATATYPE_LONG; // TODO: probe for appropriate type | ||
const int DATATYPE_GIT_TIME_T = DATATYPE_INT64; // TODO: probe for support | ||
|
||
namespace Git2 { | ||
class Index { | ||
function get_sv() { | ||
/* | ||
struct git_index { | ||
git_repository *repository; | ||
char *index_file_path; | ||
|
||
time_t last_modified; | ||
git_vector entries; | ||
|
||
unsigned int on_disk:1; | ||
git_index_tree *tree; | ||
|
||
git_vector unmerged; | ||
}; | ||
*/ | ||
|
||
var sv = 'StructView'([ DATATYPE_STRUCT, 3, | ||
DATATYPE_PTR, | ||
DATATYPE_PTR, | ||
DATATYPE_GIT_TIME_T, | ||
DATATYPE_PTR, | ||
DATATYPE_UINT, | ||
DATATYPE_PTR, | ||
DATATYPE_PTR | ||
]); | ||
|
||
while (1) { yield(sv); } | ||
} | ||
var ptr; | ||
function Index() { | ||
self.ptr = self.get_sv().alloc(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters