Skip to content

Commit f249af5

Browse files
committed
FIX: preferring (void) instead of () for functions without any arguments
1 parent 6ea0800 commit f249af5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tools/make-os-ext.r

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ memit: func [d /nol] [
5858
]
5959

6060
count: func [s c /local n] [
61-
if find ["()" "(void)"] s [return "()"]
61+
if find ["()" "(void)"] s [return "(void)"]
6262
out: copy "(a"
6363
n: 1
6464
while [s: find/tail s c][

src/tools/make-reb-lib.r

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ memit: func [d /nol] [
5555
]
5656

5757
count: func [s c /local n] [
58-
if find ["()" "(void)"] s [return "()"]
58+
if find ["()" "(void)"] s [return "(void)"]
5959
out: copy "(a"
6060
n: 1
6161
while [s: find/tail s c][

0 commit comments

Comments
 (0)