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
..
2021-05-20 10:37:22 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-06-28 09:24:07 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-06-30 22:51:02 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-03-25 14:25:46 +01:00
2021-08-10 16:54:21 +02:00
2021-06-28 09:24:07 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-07-02 15:19:38 +01:00
2021-07-09 14:27:04 +02:00
2021-08-10 16:54:21 +02:00
2021-06-17 21:46:29 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-06-28 09:24:07 +01:00
2021-06-03 18:10:04 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-06-28 09:28:33 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-07-02 15:19:38 +01:00
2021-08-10 16:54:21 +02:00
2021-06-28 09:24:07 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-04-07 12:45:35 +01:00
2021-03-29 14:20:18 +01:00
2021-08-10 16:54:21 +02:00
2021-03-29 14:20:18 +01:00
2021-04-07 12:45:35 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-06-28 09:24:07 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-06-29 09:43:17 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-04-07 16:03:31 +02:00
2021-08-10 16:54:21 +02:00
2021-06-29 19:55:24 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-06-29 19:48:59 +02:00
2021-08-10 16:54:21 +02:00
2021-02-18 15:45:12 +01:00
2021-08-10 16:54:21 +02:00
2021-04-19 10:51:59 +02:00
2021-06-28 09:24:07 +01:00
2020-11-25 13:10:50 +01:00
2021-08-10 16:54:21 +02:00
2021-05-10 11:29:13 +02:00
2021-02-16 18:55:05 +01:00
2021-08-10 16:54:21 +02:00
2021-02-18 15:45:06 +01:00
2021-08-10 16:54:21 +02:00
2021-06-28 09:24:07 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-02-15 14:26:44 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-06-28 09:24:07 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2020-08-25 14:35:55 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-05-26 04:47:29 +01:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00
2021-08-10 16:54:21 +02:00