Remove redundant middle newlines in "Autotools" related files

This syncs few minor left-overs in "Autotools" related files:
- redundant middle newlines removed (in man pages the duplicate newlines
  are also ignored and are not visible in the man page anyway)
- Minor mixed indentation synced

[skip ci]
This commit is contained in:
Peter Kokot 2024-08-12 13:18:32 +02:00
parent 634708a14f
commit 9fcc1bca8a
No known key found for this signature in database
GPG key ID: A94800907AA79B36
7 changed files with 2 additions and 25 deletions

View file

@ -20,14 +20,11 @@ define('REPORT_LEVEL', 1); // 0 reports less false-positives. up to level 5.
define('VERSION', '7.0'); // minimum is 7.0
define('PHPDIR', realpath(dirname(__FILE__) . '/../..'));
// be sure you have enough memory and stack for PHP. pcre will push the limits!
ini_set('pcre.backtrack_limit', 10000000);
// ------------------------ end of config ----------------------------
$API_params = array(
'a' => array('zval**'), // array
'A' => array('zval**'), // array or object
@ -64,7 +61,6 @@ function error($str, $level = 0)
}
}
/** this updates the global var $line (for error reporting) */
function update_lineno($offset)
{
@ -99,7 +95,6 @@ function update_lineno($offset)
} while (true);
}
/** parses the sources and fetches its vars name, type and if they are initialized or not */
function get_vars($txt)
{
@ -124,7 +119,6 @@ function get_vars($txt)
return $ret;
}
/** run diagnostic checks against one var. */
function check_param($db, $idx, $exp, $optional, $allow_uninit = false)
{
@ -184,7 +178,6 @@ function get_params($vars, $str)
return $ret;
}
/** run tests on a function. the code is passed in $txt */
function check_function($name, $txt, $offset)
{
@ -291,7 +284,6 @@ function check_function($name, $txt, $offset)
}
}
/** the main recursion function. splits files in functions and calls the other functions */
function recurse($path)
{
@ -319,7 +311,6 @@ function recurse($path)
if (count($split) < 2) continue; // no functions defined on this file
array_shift($split); // the first part isn't relevant
// generate the line offsets array
$j = 0;
$lines = preg_split("/(\r\n?|\n)/S", $txt, -1, PREG_SPLIT_DELIM_CAPTURE);
@ -333,7 +324,6 @@ function recurse($path)
$GLOBALS['lines_offset'] = $lines_offset;
$GLOBALS['current_file'] = $file;
for ($i = 0; $i < count($split); $i+=2) {
// if the /* }}} */ comment is found use it to reduce false positives
// TODO: check the other indexes