Skip to content

Commit

Permalink
FIX: preferring (void) instead of () for functions without any arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jan 2, 2019
1 parent 6ea0800 commit f249af5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tools/make-os-ext.r
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ memit: func [d /nol] [
]

count: func [s c /local n] [
if find ["()" "(void)"] s [return "()"]
if find ["()" "(void)"] s [return "(void)"]
out: copy "(a"
n: 1
while [s: find/tail s c][
Expand Down
2 changes: 1 addition & 1 deletion src/tools/make-reb-lib.r
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ memit: func [d /nol] [
]

count: func [s c /local n] [
if find ["()" "(void)"] s [return "()"]
if find ["()" "(void)"] s [return "(void)"]
out: copy "(a"
n: 1
while [s: find/tail s c][
Expand Down

0 comments on commit f249af5

Please sign in to comment.