diff options
| author | Russ Cox <rsc@golang.org> | 2015-03-05 13:57:36 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-03-05 21:49:39 +0000 |
| commit | cdb7d7dcc22a2f09df0267641b73d45703ffc6e8 (patch) | |
| tree | c4eb0505b505287138c8cc05e3321f4c0b7277e8 /src/cmd/8l | |
| parent | d970bea88500b21c85d51199d6b0deb1e764950a (diff) | |
| download | go-cdb7d7dcc22a2f09df0267641b73d45703ffc6e8.tar.xz | |
cmd/5l etc: restore comments lost during C -> Go conversion
It appears that c2go dropped comments inside struct { ... } and enum { ... }.
Restore them.
Identified missing comments by checking for comments present
in the C code but not the Go code, made a list, and then reapplied
with some mechanical help.
Missing comment finder: http://play.golang.org/p/g6qNUAo1Y0
Change-Id: I323ab45c7ef9d51e28eab3b699eb14bee1eef66b
Reviewed-on: https://go-review.googlesource.com/6899
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/cmd/8l')
| -rw-r--r-- | src/cmd/8l/l.go | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/src/cmd/8l/l.go b/src/cmd/8l/l.go index fbeee984a3..60050857c4 100644 --- a/src/cmd/8l/l.go +++ b/src/cmd/8l/l.go @@ -1,37 +1,3 @@ -// Inferno utils/8l/asm.c -// http://code.google.com/p/inferno-os/source/browse/utils/8l/asm.c -// -// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. -// Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) -// Portions Copyright © 1997-1999 Vita Nuova Limited -// Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com) -// Portions Copyright © 2004,2006 Bruce Ellis -// Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) -// Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others -// Portions Copyright © 2009 The Go Authors. All rights reserved. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -package main - -// Writing object files. - // Inferno utils/8l/l.h // http://code.google.com/p/inferno-os/source/browse/utils/8l/l.h // @@ -62,12 +28,14 @@ package main // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. +package main + const ( thechar = '8' PtrSize = 4 IntSize = 4 RegSize = 4 - MaxAlign = 32 + MaxAlign = 32 // max data alignment FuncAlign = 16 MINLC = 1 ) |
