Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35ce44b

Browse files
committed
Add temporary placeholder arginfo for function bindings
The temporary arginfo will go away once we add the stubs for the bindings.
1 parent 83038e4 commit 35ce44b

43 files changed

Lines changed: 3179 additions & 1365 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

attr.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace php_git2
1111
{
1212
}
1313

14-
static constexpr auto ZIF_GIT_ATTR_ADD_MACRO = zif_php_git2_function<
14+
static constexpr auto ZIF_git_attr_add_macro = zif_php_git2_function<
1515
php_git2::func_wrapper<
1616
int,
1717
git_repository*,
@@ -24,7 +24,7 @@ static constexpr auto ZIF_GIT_ATTR_ADD_MACRO = zif_php_git2_function<
2424
>
2525
>;
2626

27-
static constexpr auto ZIF_GIT_ATTR_CACHE_FLUSH = zif_php_git2_function<
27+
static constexpr auto ZIF_git_attr_cache_flush = zif_php_git2_function<
2828
php_git2::func_wrapper<
2929
int,
3030
git_repository*>::func<git_attr_cache_flush>,
@@ -33,7 +33,7 @@ static constexpr auto ZIF_GIT_ATTR_CACHE_FLUSH = zif_php_git2_function<
3333
>
3434
>;
3535

36-
static constexpr auto ZIF_GIT_ATTR_FOREACH = zif_php_git2_function<
36+
static constexpr auto ZIF_git_attr_foreach = zif_php_git2_function<
3737
php_git2::func_wrapper<
3838
int,
3939
git_repository*,
@@ -53,7 +53,7 @@ static constexpr auto ZIF_GIT_ATTR_FOREACH = zif_php_git2_function<
5353
php_git2::sequence<0,1,2,3,4>
5454
>;
5555

56-
static constexpr auto ZIF_GIT_ATTR_GET = zif_php_git2_function<
56+
static constexpr auto ZIF_git_attr_get = zif_php_git2_function<
5757
php_git2::func_wrapper<
5858
int,
5959
const char**,
@@ -73,7 +73,7 @@ static constexpr auto ZIF_GIT_ATTR_GET = zif_php_git2_function<
7373
php_git2::sequence<0,1,2,3,4>
7474
>;
7575

76-
// static constexpr auto ZIF_GIT_ATTR_GET_MANY = zif_php_git2_function<
76+
// static constexpr auto ZIF_git_attr_get_many = zif_php_git2_function<
7777
// php_git2::func_wrapper<
7878

7979
// >::func<git_attr_get_many>,
@@ -86,7 +86,7 @@ static constexpr auto ZIF_GIT_ATTR_GET = zif_php_git2_function<
8686
// php_git2::sequence<>
8787
// >;
8888

89-
static constexpr auto ZIF_GIT_ATTR_VALUE = zif_php_git2_function<
89+
static constexpr auto ZIF_git_attr_value = zif_php_git2_function<
9090
php_git2::func_wrapper<
9191
git_attr_t,
9292
const char*>::func<git_attr_value>,
@@ -96,13 +96,13 @@ static constexpr auto ZIF_GIT_ATTR_VALUE = zif_php_git2_function<
9696
0
9797
>;
9898

99-
#define GIT_ATTR_FE \
100-
PHP_GIT2_FE(git_attr_add_macro,ZIF_GIT_ATTR_ADD_MACRO,NULL) \
101-
PHP_GIT2_FE(git_attr_cache_flush,ZIF_GIT_ATTR_CACHE_FLUSH,NULL) \
102-
PHP_GIT2_FE(git_attr_foreach,ZIF_GIT_ATTR_FOREACH,NULL) \
103-
PHP_GIT2_FE(git_attr_get,ZIF_GIT_ATTR_GET,NULL) \
104-
PHP_GIT2_UNIMPLEMENTED(git_attr_get_many,ZIF_GIT_ATTR_GET_MANY,NULL) \
105-
PHP_GIT2_FE(git_attr_value,ZIF_GIT_ATTR_VALUE,NULL)
99+
#define GIT_ATTR_FE \
100+
PHP_GIT2_FE(git_attr_add_macro) \
101+
PHP_GIT2_FE(git_attr_cache_flush) \
102+
PHP_GIT2_FE(git_attr_foreach) \
103+
PHP_GIT2_FE(git_attr_get) \
104+
PHP_GIT2_UNIMPLEMENTED(git_attr_get_many) \
105+
PHP_GIT2_FE(git_attr_value)
106106

107107
#endif
108108

blame.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace php_git2
7070

7171
// Functions:
7272

73-
static constexpr auto ZIF_GIT_BLAME_FILE = zif_php_git2_function_setdeps<
73+
static constexpr auto ZIF_git_blame_file = zif_php_git2_function_setdeps<
7474
php_git2::func_wrapper<
7575
int,
7676
git_blame**,
@@ -90,7 +90,7 @@ static constexpr auto ZIF_GIT_BLAME_FILE = zif_php_git2_function_setdeps<
9090
php_git2::sequence<0,1,2,3>
9191
>;
9292

93-
static constexpr auto ZIF_GIT_BLAME_GET_HUNK_BYINDEX = zif_php_git2_function_rethandler<
93+
static constexpr auto ZIF_git_blame_get_hunk_byindex = zif_php_git2_function_rethandler<
9494
php_git2::func_wrapper<
9595
const git_blame_hunk*,
9696
git_blame*,
@@ -105,7 +105,7 @@ static constexpr auto ZIF_GIT_BLAME_GET_HUNK_BYINDEX = zif_php_git2_function_ret
105105
php_git2::php_long_cast<size_t> >
106106
>;
107107

108-
static constexpr auto ZIF_GIT_BLAME_GET_HUNK_BYLINE = zif_php_git2_function_rethandler<
108+
static constexpr auto ZIF_git_blame_get_hunk_byline = zif_php_git2_function_rethandler<
109109
php_git2::func_wrapper<
110110
const git_blame_hunk*,
111111
git_blame*,
@@ -120,7 +120,7 @@ static constexpr auto ZIF_GIT_BLAME_GET_HUNK_BYLINE = zif_php_git2_function_reth
120120
php_git2::php_long_cast<size_t> >
121121
>;
122122

123-
static constexpr auto ZIF_GIT_BLAME_GET_HUNK_COUNT = zif_php_git2_function<
123+
static constexpr auto ZIF_git_blame_get_hunk_count = zif_php_git2_function<
124124
php_git2::func_wrapper<
125125
uint32_t,
126126
git_blame*
@@ -131,7 +131,7 @@ static constexpr auto ZIF_GIT_BLAME_GET_HUNK_COUNT = zif_php_git2_function<
131131
0
132132
>;
133133

134-
static constexpr auto ZIF_GIT_BLAME_BUFFER = zif_php_git2_function_setdeps<
134+
static constexpr auto ZIF_git_blame_buffer = zif_php_git2_function_setdeps<
135135
php_git2::func_wrapper<
136136
int,
137137
git_blame**,
@@ -151,21 +151,21 @@ static constexpr auto ZIF_GIT_BLAME_BUFFER = zif_php_git2_function_setdeps<
151151
php_git2::sequence<0,1,3,2>
152152
>;
153153

154-
static constexpr auto ZIF_GIT_BLAME_FREE = zif_php_git2_function_free<
154+
static constexpr auto ZIF_git_blame_free = zif_php_git2_function_free<
155155
php_git2::local_pack<
156156
php_git2::php_resource_cleanup<php_git2::php_git_blame>
157157
>
158158
>;
159159

160160
// Function Entries:
161161

162-
#define GIT_BLAME_FE \
163-
PHP_GIT2_FE(git_blame_file,ZIF_GIT_BLAME_FILE,NULL) \
164-
PHP_GIT2_FE(git_blame_buffer,ZIF_GIT_BLAME_BUFFER,NULL) \
165-
PHP_GIT2_FE(git_blame_get_hunk_byindex,ZIF_GIT_BLAME_GET_HUNK_BYINDEX,NULL) \
166-
PHP_GIT2_FE(git_blame_get_hunk_byline,ZIF_GIT_BLAME_GET_HUNK_BYLINE,NULL) \
167-
PHP_GIT2_FE(git_blame_get_hunk_count,ZIF_GIT_BLAME_GET_HUNK_COUNT,NULL) \
168-
PHP_GIT2_FE(git_blame_free,ZIF_GIT_BLAME_FREE,NULL)
162+
#define GIT_BLAME_FE \
163+
PHP_GIT2_FE(git_blame_file) \
164+
PHP_GIT2_FE(git_blame_buffer) \
165+
PHP_GIT2_FE(git_blame_get_hunk_byindex) \
166+
PHP_GIT2_FE(git_blame_get_hunk_byline) \
167+
PHP_GIT2_FE(git_blame_get_hunk_count) \
168+
PHP_GIT2_FE(git_blame_free)
169169

170170
#endif
171171

blob.h

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ namespace php_git2
106106

107107
#endif
108108

109-
static constexpr auto ZIF_GIT_BLOB_CREATE_FROMBUFFER = zif_php_git2_function<
109+
static constexpr auto ZIF_git_blob_create_frombuffer = zif_php_git2_function<
110110
php_git2::func_wrapper<
111111
int,
112112
git_oid*,
@@ -125,7 +125,7 @@ static constexpr auto ZIF_GIT_BLOB_CREATE_FROMBUFFER = zif_php_git2_function<
125125
php_git2::sequence<0,1,3,2>
126126
>;
127127

128-
static constexpr auto ZIF_GIT_BLOB_CREATE_FROMDISK = zif_php_git2_function<
128+
static constexpr auto ZIF_git_blob_create_fromdisk = zif_php_git2_function<
129129
php_git2::func_wrapper<
130130
int,
131131
git_oid*,
@@ -142,7 +142,7 @@ static constexpr auto ZIF_GIT_BLOB_CREATE_FROMDISK = zif_php_git2_function<
142142
php_git2::sequence<0,1,2>
143143
>;
144144

145-
static constexpr auto ZIF_GIT_BLOB_CREATE_FROMWORKDIR = zif_php_git2_function<
145+
static constexpr auto ZIF_git_blob_create_fromworkdir = zif_php_git2_function<
146146
php_git2::func_wrapper<
147147
int,
148148
git_oid*,
@@ -159,7 +159,7 @@ static constexpr auto ZIF_GIT_BLOB_CREATE_FROMWORKDIR = zif_php_git2_function<
159159
php_git2::sequence<0,1,2>
160160
>;
161161

162-
static constexpr auto ZIF_GIT_BLOB_FILTERED_CONTENT = zif_php_git2_function<
162+
static constexpr auto ZIF_git_blob_filtered_content = zif_php_git2_function<
163163
php_git2::func_wrapper<
164164
int,
165165
git_buf*,
@@ -178,13 +178,13 @@ static constexpr auto ZIF_GIT_BLOB_FILTERED_CONTENT = zif_php_git2_function<
178178
php_git2::sequence<0,1,2,3>
179179
>;
180180

181-
static constexpr auto ZIF_GIT_BLOB_FREE = zif_php_git2_function_free<
181+
static constexpr auto ZIF_git_blob_free = zif_php_git2_function_free<
182182
php_git2::local_pack<
183183
php_git2::php_resource_cleanup<php_git2::php_git_blob>
184184
>
185185
>;
186186

187-
static constexpr auto ZIF_GIT_BLOB_ID = zif_php_git2_function<
187+
static constexpr auto ZIF_git_blob_id = zif_php_git2_function<
188188
php_git2::func_wrapper<
189189
const git_oid*,
190190
const git_blob*
@@ -195,7 +195,7 @@ static constexpr auto ZIF_GIT_BLOB_ID = zif_php_git2_function<
195195
0
196196
>;
197197

198-
static constexpr auto ZIF_GIT_BLOB_IS_BINARY = zif_php_git2_function_rethandler<
198+
static constexpr auto ZIF_git_blob_is_binary = zif_php_git2_function_rethandler<
199199
php_git2::func_wrapper<
200200
int,
201201
const git_blob*
@@ -206,7 +206,7 @@ static constexpr auto ZIF_GIT_BLOB_IS_BINARY = zif_php_git2_function_rethandler<
206206
php_git2::php_boolean_rethandler<int>
207207
>;
208208

209-
static constexpr auto ZIF_GIT_BLOB_LOOKUP = zif_php_git2_function_setdeps<
209+
static constexpr auto ZIF_git_blob_lookup = zif_php_git2_function_setdeps<
210210
php_git2::func_wrapper<
211211
int,
212212
git_blob**,
@@ -224,7 +224,7 @@ static constexpr auto ZIF_GIT_BLOB_LOOKUP = zif_php_git2_function_setdeps<
224224
php_git2::sequence<0,1,2>
225225
>;
226226

227-
static constexpr auto ZIF_GIT_BLOB_LOOKUP_PREFIX = zif_php_git2_function_setdeps<
227+
static constexpr auto ZIF_git_blob_lookup_prefix = zif_php_git2_function_setdeps<
228228
php_git2::func_wrapper<
229229
int,
230230
git_blob**,
@@ -245,7 +245,7 @@ static constexpr auto ZIF_GIT_BLOB_LOOKUP_PREFIX = zif_php_git2_function_setdeps
245245
php_git2::sequence<0,1,3,2>
246246
>;
247247

248-
static constexpr auto ZIF_GIT_BLOB_OWNER = zif_php_git2_function_rethandler<
248+
static constexpr auto ZIF_git_blob_owner = zif_php_git2_function_rethandler<
249249
php_git2::func_wrapper<
250250
git_repository*,
251251
const git_blob*
@@ -259,7 +259,7 @@ static constexpr auto ZIF_GIT_BLOB_OWNER = zif_php_git2_function_rethandler<
259259
php_git2::sequence<0>
260260
>;
261261

262-
static constexpr auto ZIF_GIT_BLOB_RAWCONTENT = zif_php_git2_function_rethandler<
262+
static constexpr auto ZIF_git_blob_rawcontent = zif_php_git2_function_rethandler<
263263
php_git2::func_wrapper<
264264
const void*,
265265
const git_blob*
@@ -270,7 +270,7 @@ static constexpr auto ZIF_GIT_BLOB_RAWCONTENT = zif_php_git2_function_rethandler
270270
php_git2::php_git_blob_rawcontent_rethandler
271271
>;
272272

273-
static constexpr auto ZIF_GIT_BLOB_RAWSIZE = zif_php_git2_function<
273+
static constexpr auto ZIF_git_blob_rawsize = zif_php_git2_function<
274274
php_git2::func_wrapper<
275275
git_object_size_t,
276276
const git_blob*
@@ -281,7 +281,7 @@ static constexpr auto ZIF_GIT_BLOB_RAWSIZE = zif_php_git2_function<
281281
0
282282
>;
283283

284-
static constexpr auto ZIF_GIT_BLOB_DUP = zif_php_git2_function_setdeps<
284+
static constexpr auto ZIF_git_blob_dup = zif_php_git2_function_setdeps<
285285
php_git2::func_wrapper<
286286
int,
287287
git_blob**,
@@ -297,7 +297,7 @@ static constexpr auto ZIF_GIT_BLOB_DUP = zif_php_git2_function_setdeps<
297297
php_git2::sequence<0,1>
298298
>;
299299

300-
static constexpr auto ZIF_GIT_BLOB_CREATE_FROMSTREAM = zif_php_git2_function<
300+
static constexpr auto ZIF_git_blob_create_fromstream = zif_php_git2_function<
301301
php_git2::func_wrapper<
302302
int,
303303
git_writestream**,
@@ -314,7 +314,7 @@ static constexpr auto ZIF_GIT_BLOB_CREATE_FROMSTREAM = zif_php_git2_function<
314314
php_git2::sequence<0,1,2>
315315
>;
316316

317-
static constexpr auto ZIF_GIT_BLOB_CREATE_FROMSTREAM_COMMIT = zif_php_git2_function<
317+
static constexpr auto ZIF_git_blob_create_fromstream_commit = zif_php_git2_function<
318318
php_git2::func_wrapper<
319319
int,
320320
git_oid*,
@@ -329,22 +329,22 @@ static constexpr auto ZIF_GIT_BLOB_CREATE_FROMSTREAM_COMMIT = zif_php_git2_funct
329329
php_git2::sequence<0,1>
330330
>;
331331

332-
#define GIT_BLOB_FE \
333-
PHP_GIT2_FE(git_blob_create_frombuffer,ZIF_GIT_BLOB_CREATE_FROMBUFFER,NULL) \
334-
PHP_GIT2_FE(git_blob_create_fromdisk,ZIF_GIT_BLOB_CREATE_FROMDISK,NULL) \
335-
PHP_GIT2_FE(git_blob_create_fromworkdir,ZIF_GIT_BLOB_CREATE_FROMWORKDIR,NULL) \
336-
PHP_GIT2_FE(git_blob_filtered_content,ZIF_GIT_BLOB_FILTERED_CONTENT,NULL) \
337-
PHP_GIT2_FE(git_blob_free,ZIF_GIT_BLOB_FREE,NULL) \
338-
PHP_GIT2_FE(git_blob_id,ZIF_GIT_BLOB_ID,NULL) \
339-
PHP_GIT2_FE(git_blob_is_binary,ZIF_GIT_BLOB_IS_BINARY,NULL) \
340-
PHP_GIT2_FE(git_blob_lookup,ZIF_GIT_BLOB_LOOKUP,NULL) \
341-
PHP_GIT2_FE(git_blob_lookup_prefix,ZIF_GIT_BLOB_LOOKUP_PREFIX,NULL) \
342-
PHP_GIT2_FE(git_blob_owner,ZIF_GIT_BLOB_OWNER,NULL) \
343-
PHP_GIT2_FE(git_blob_rawcontent,ZIF_GIT_BLOB_RAWCONTENT,NULL) \
344-
PHP_GIT2_FE(git_blob_rawsize,ZIF_GIT_BLOB_RAWSIZE,NULL) \
345-
PHP_GIT2_FE(git_blob_dup,ZIF_GIT_BLOB_DUP,NULL) \
346-
PHP_GIT2_FE(git_blob_create_fromstream,ZIF_GIT_BLOB_CREATE_FROMSTREAM,NULL) \
347-
PHP_GIT2_FE(git_blob_create_fromstream_commit,ZIF_GIT_BLOB_CREATE_FROMSTREAM_COMMIT,NULL)
332+
#define GIT_BLOB_FE \
333+
PHP_GIT2_FE(git_blob_create_frombuffer) \
334+
PHP_GIT2_FE(git_blob_create_fromdisk) \
335+
PHP_GIT2_FE(git_blob_create_fromworkdir) \
336+
PHP_GIT2_FE(git_blob_filtered_content) \
337+
PHP_GIT2_FE(git_blob_free) \
338+
PHP_GIT2_FE(git_blob_id) \
339+
PHP_GIT2_FE(git_blob_is_binary) \
340+
PHP_GIT2_FE(git_blob_lookup) \
341+
PHP_GIT2_FE(git_blob_lookup_prefix) \
342+
PHP_GIT2_FE(git_blob_owner) \
343+
PHP_GIT2_FE(git_blob_rawcontent) \
344+
PHP_GIT2_FE(git_blob_rawsize) \
345+
PHP_GIT2_FE(git_blob_dup) \
346+
PHP_GIT2_FE(git_blob_create_fromstream) \
347+
PHP_GIT2_FE(git_blob_create_fromstream_commit)
348348

349349
/*
350350
* Local Variables:

0 commit comments

Comments
 (0)