Skip to content

Commit

Permalink
syscall: add empty line before marker comments in zsyscall_darwin_*.go
Browse files Browse the repository at this point in the history
This was spotted during the review of the corresponding CL 154179 for
x/sys/unix. Let's change it in syscall as well to be consistent.

Change-Id: I33f25db1f6ba941b694c2aa276336448cc2b9b51
Reviewed-on: https://go-review.googlesource.com/c/154719
Run-TryBot: Tobias Klauser <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
tklauser authored and bradfitz committed Feb 26, 2019
1 parent 8d057f3 commit 38a4b37
Show file tree
Hide file tree
Showing 5 changed files with 475 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/syscall/mksyscall.pl
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ ($)
$text .= "//go:linkname $funcname $funcname\n";
# Tell the linker that funcname can be found in libSystem using varname without the libc_ prefix.
my $basename = substr $funcname, 5;
$text .= "//go:cgo_import_dynamic $funcname $basename \"/usr/lib/libSystem.B.dylib\"\n";
$text .= "//go:cgo_import_dynamic $funcname $basename \"/usr/lib/libSystem.B.dylib\"\n\n";
}
}
}
Expand Down
Loading

0 comments on commit 38a4b37

Please sign in to comment.