Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(816)

Side by Side Diff: windows/mksyscall.pl

Issue 121520043: code review 121520043: go.sys: update package names (Closed)
Patch Set: diff -r ad63a19ca444543ec83ec030d1200b0510f3f192 https://code.google.com/p/go.sys Created 10 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « windows/mkall.sh ('k') | windows/mksyscall_windows.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env perl 1 #!/usr/bin/env perl
2 # Copyright 2009 The Go Authors. All rights reserved. 2 # Copyright 2009 The Go Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style 3 # Use of this source code is governed by a BSD-style
4 # license that can be found in the LICENSE file. 4 # license that can be found in the LICENSE file.
5 5
6 # This program reads a file containing function prototypes 6 # This program reads a file containing function prototypes
7 # (like syscall_darwin.go) and generates system call bodies. 7 # (like syscall_windows.go) and generates system call bodies.
8 # The prototypes are marked by lines beginning with "//sys" 8 # The prototypes are marked by lines beginning with "//sys"
9 # and read like func declarations if //sys is replaced by func, but: 9 # and read like func declarations if //sys is replaced by func, but:
10 # * The parameter lists must give a name for each argument. 10 # * The parameter lists must give a name for each argument.
11 # This includes return parameters. 11 # This includes return parameters.
12 # * The parameter lists must give a type for each argument: 12 # * The parameter lists must give a type for each argument:
13 # the (x, y, z int) shorthand is not allowed. 13 # the (x, y, z int) shorthand is not allowed.
14 # * If the return parameter is an error number, it must be named errno. 14 # * If the return parameter is an error number, it must be named errno.
15 15
16 # A line beginning with //sysnb is like //sys, except that the 16 # A line beginning with //sysnb is like //sys, except that the
17 # goroutine will not be suspended during the execution of the system 17 # goroutine will not be suspended during the execution of the system
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 chomp $text; 297 chomp $text;
298 298
299 if($errors) { 299 if($errors) {
300 exit 1; 300 exit 1;
301 } 301 }
302 302
303 print <<EOF; 303 print <<EOF;
304 // $cmdline 304 // $cmdline
305 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT 305 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
306 306
307 package syscall 307 package windows
308 308
309 import "unsafe" 309 import "unsafe"
310 310
311 $text 311 $text
312 EOF 312 EOF
313 exit 0; 313 exit 0;
OLDNEW
« no previous file with comments | « windows/mkall.sh ('k') | windows/mksyscall_windows.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b