Mateusz Starzyk e36f5b1c11 Fix parantheses on return and sizeof statements.
Used script:
```
import re
import sys

for arg in sys.argv[1:]:
    print(arg)
    with open(arg, 'r') as file:
        content = file.read()
        content = re.sub(r"return\s?\((?!.*\).*\()\s*\n?(.*)\n?\);", r"return \1;", \
            content, flags = re.M)
        content = re.sub(r"sizeof ([^\(][a-zA-Z0-9_\[\]]*)", r"sizeof(\1)",\
            content, flags = re.M)
    with open(arg, 'w') as file:
        file.write(content)

```
Executed with:
` find . -regextype posix-egrep -regex ".*\.([hc]|fmt|function)" | xargs -L1 python script.py`

Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
2021-08-10 16:54:21 +02:00
..
error.fmt Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
query_config.fmt Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
version_features.fmt Fix parantheses on return and sizeof statements. 2021-08-10 16:54:21 +02:00
vs6-app-template.dsp Add missing VS project files, generated by script 2013-09-18 14:34:33 +02:00
vs6-main-template.dsp Systematically use Windows line endings in Windows files 2020-04-01 13:42:24 +02:00
vs6-workspace-template.dsw Add VS6 workspace to update-vs-apps.pl 2014-05-22 13:52:50 +02:00
vs2010-app-template.vcxproj Remove definitions and settings that are never used or duplicate MSVC 2020-05-21 17:19:56 +03:00
vs2010-main-template.vcxproj Remove definitions and settings that are never used or duplicate MSVC 2020-05-21 17:19:56 +03:00
vs2010-sln-template.sln Systematically use Windows line endings in Windows files 2020-04-01 13:42:24 +02:00