Skip to content

Commit 6fd2b39

Browse files
committed
Indent with TAB in .h files generated by gen_stub
1 parent e7f6acd commit 6fd2b39

26 files changed

+650
-650
lines changed

Zend/zend_constants_arginfo.h

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/gen_stub.php

+12-12
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ public function getOptimizerInfo(): ?string {
13811381
return null;
13821382
}
13831383

1384-
return " F" . $this->return->refcount . '("' . $this->name->__toString() . '", ' . $type->toOptimizerTypeMask() . "),\n";
1384+
return "\tF" . $this->return->refcount . '("' . $this->name->__toString() . '", ' . $type->toOptimizerTypeMask() . "),\n";
13851385
}
13861386

13871387
public function discardInfoForOldPhpVersions(): void {
@@ -1918,23 +1918,23 @@ private function getGlobalConstDeclaration(EvaluatedValue $value, iterable $allC
19181918
$flags .= " | CONST_DEPRECATED";
19191919
}
19201920
if ($value->type->isNull()) {
1921-
return " REGISTER_NULL_CONSTANT(\"$constName\", $flags);\n";
1921+
return "\tREGISTER_NULL_CONSTANT(\"$constName\", $flags);\n";
19221922
}
19231923

19241924
if ($value->type->isBool()) {
1925-
return " REGISTER_BOOL_CONSTANT(\"$constName\", " . ($cConstValue ?: ($constValue ? "true" : "false")) . ", $flags);\n";
1925+
return "\tREGISTER_BOOL_CONSTANT(\"$constName\", " . ($cConstValue ?: ($constValue ? "true" : "false")) . ", $flags);\n";
19261926
}
19271927

19281928
if ($value->type->isInt()) {
1929-
return " REGISTER_LONG_CONSTANT(\"$constName\", " . ($cConstValue ?: (int) $constValue) . ", $flags);\n";
1929+
return "\tREGISTER_LONG_CONSTANT(\"$constName\", " . ($cConstValue ?: (int) $constValue) . ", $flags);\n";
19301930
}
19311931

19321932
if ($value->type->isFloat()) {
1933-
return " REGISTER_DOUBLE_CONSTANT(\"$constName\", " . ($cConstValue ?: (float) $constValue) . ", $flags);\n";
1933+
return "\tREGISTER_DOUBLE_CONSTANT(\"$constName\", " . ($cConstValue ?: (float) $constValue) . ", $flags);\n";
19341934
}
19351935

19361936
if ($value->type->isString()) {
1937-
return " REGISTER_STRING_CONSTANT(\"$constName\", " . ($cConstValue ?: '"' . addslashes($constValue) . '"') . ", $flags);\n";
1937+
return "\tREGISTER_STRING_CONSTANT(\"$constName\", " . ($cConstValue ?: '"' . addslashes($constValue) . '"') . ", $flags);\n";
19381938
}
19391939

19401940
throw new Exception("Unimplemented constant type");}
@@ -1969,27 +1969,27 @@ private function getValueAssertion(EvaluatedValue $value): string
19691969
$constValue = $value->value;
19701970

19711971
if ($value->type->isNull()) {
1972-
return " ZEND_ASSERT($cName == NULL);\n";
1972+
return "\tZEND_ASSERT($cName == NULL);\n";
19731973
}
19741974

19751975
if ($value->type->isBool()) {
19761976
$cValue = $constValue ? "true" : "false";
1977-
return " ZEND_ASSERT($cName == $cValue);\n";
1977+
return "\tZEND_ASSERT($cName == $cValue);\n";
19781978
}
19791979

19801980
if ($value->type->isInt()) {
19811981
$cValue = (int) $constValue;
1982-
return " ZEND_ASSERT($cName == $cValue);\n";
1982+
return "\tZEND_ASSERT($cName == $cValue);\n";
19831983
}
19841984

19851985
if ($value->type->isFloat()) {
19861986
$cValue = (float) $constValue;
1987-
return " ZEND_ASSERT($cName == $cValue);\n";
1987+
return "\tZEND_ASSERT($cName == $cValue);\n";
19881988
}
19891989

19901990
if ($value->type->isString()) {
19911991
$cValue = '"' . addslashes($constValue) . '"';
1992-
return " ZEND_ASSERT(strcmp($cName, $cValue) == 0);\n";
1992+
return "\tZEND_ASSERT(strcmp($cName, $cValue) == 0);\n";
19931993
}
19941994

19951995
throw new Exception("Unimplemented constant type");
@@ -3777,7 +3777,7 @@ static function (FuncInfo $funcInfo) use (&$classEntriesWithSensitiveParams) {
37773777
$functionTable = "CG(function_table)";
37783778
}
37793779

3780-
$code .= " zend_mark_function_parameter_as_sensitive($functionTable, \"" . $funcInfo->name->getNameForAttributes() . "\", $index);\n";
3780+
$code .= "\tzend_mark_function_parameter_as_sensitive($functionTable, \"" . $funcInfo->name->getNameForAttributes() . "\", $index);\n";
37813781
}
37823782

37833783
return $code;

ext/calendar/calendar_arginfo.h

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/com_dotnet/com_extension_arginfo.h

+54-54
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)