File tree Expand file tree Collapse file tree 2 files changed +141
-147
lines changed
Expand file tree Collapse file tree 2 files changed +141
-147
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,8 @@ public function getZendType()
193193 return "long " ;
194194 } else if (preg_match ("/git_oid/ " , $ this ->type )) {
195195 return "char " ;
196+ } else if (preg_match ("/git_otype/ " , $ this ->type )) {
197+ return "long " ;
196198 } else if (preg_match ("/^git_/ " , $ this ->type )) {
197199 return "zval " ;
198200 } else if (preg_match ("/payload/ " , $ this ->name )) {
@@ -457,6 +459,8 @@ public function generateProto(Printer $printer, Func $f)
457459 $ printer ->put ("array " );
458460 } else if (preg_match ("/_cb$/ " , $ arg ->getType ())) {
459461 $ printer ->put ("Callable " );
462+ } else if (preg_match ("/git_otype/ " , $ arg ->getType ())) {
463+ $ printer ->put ("long " );
460464 } else {
461465 error_log (sprintf ("# unknown type (%s) " , $ arg ->getType ()));
462466 }
You can’t perform that action at this time.
0 commit comments