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

Issue 7058054: code review 7058054: lib9: declare __fixargv0 before use in flag.c (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by akumar
Modified:
11 years, 5 months ago
Reviewers:
CC:
rsc, ality, iant2, golang-dev
Visibility:
Public.

Description

lib9: declare __fixargv0 before use in flag.c The Plan 9 compilers complain about not having type information for the function, which sets off type signature problems during the linking stage.

Patch Set 1 #

Patch Set 2 : diff -r 66b0356aa14c https://code.google.com/p/go #

Patch Set 3 : diff -r 66b0356aa14c https://code.google.com/p/go #

Patch Set 4 : diff -r 43203aa69a8a https://code.google.com/p/go #

Total comments: 2

Patch Set 5 : diff -r 3c2980f1aa44 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -36 lines) Patch
R src/lib9/argv0.c View 1 2 3 1 chunk +0 lines, -35 lines 0 comments Download
M src/lib9/flag.c View 1 2 3 4 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 18
akumar
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 6 months ago (2013-01-08 02:58:45 UTC) #1
lucio
I was going to include a declaration of __fixargv0() in "include/plan9/libc.h", then thought that it ...
11 years, 6 months ago (2013-01-08 03:59:29 UTC) #2
akumar
It seems too specific. We're only building one file from lib9 that needs the function ...
11 years, 6 months ago (2013-01-08 04:11:55 UTC) #3
lucio
Good enough for me, then. Lucio. On 1/8/13, Akshat Kumar <seed@mail.nanosouffle.net> wrote: > It seems ...
11 years, 6 months ago (2013-01-08 04:14:04 UTC) #4
rsc
Copy and paste the char *argv0; and fixargv0 definitions into flag.c and delete argv0.c entirely. ...
11 years, 6 months ago (2013-01-09 19:03:20 UTC) #5
akumar
sysfatal.c uses argv0/fixargv0 as well, iirc. Should perhaps argv0 go into a header file that ...
11 years, 6 months ago (2013-01-09 20:25:42 UTC) #6
rsc
sysfatal was already working. This is only about the complexities added by flag.c. They go ...
11 years, 6 months ago (2013-01-09 20:43:25 UTC) #7
ality
Akshat Kumar <seed@mail.nanosouffle.net> once said: > On 9 January 2013 11:03, Russ Cox <rsc@golang.org> wrote: ...
11 years, 6 months ago (2013-01-09 23:19:21 UTC) #8
akumar
PTAL. I've just added __fixargv0 into flag.c and removed argv0.c for now. I can also ...
11 years, 6 months ago (2013-01-10 02:58:01 UTC) #9
rsc
Yes, please do NOT remove __fixargv0 from lib9. It's there for a reason (there's a ...
11 years, 6 months ago (2013-01-10 15:33:28 UTC) #10
rsc
https://codereview.appspot.com/7058054/diff/2002/src/lib9/argv0.c File src/lib9/argv0.c (left): https://codereview.appspot.com/7058054/diff/2002/src/lib9/argv0.c#oldcode32 src/lib9/argv0.c:32: * Mac OS can't deal with files that only ...
11 years, 6 months ago (2013-01-10 15:34:14 UTC) #11
ality
Russ Cox <rsc@golang.org> once said: > Yes, please do NOT remove __fixargv0 from lib9. It's ...
11 years, 6 months ago (2013-01-11 05:06:44 UTC) #12
rsc
> How is it relevant now that the argv0 declaration is > in a file ...
11 years, 5 months ago (2013-01-18 20:18:20 UTC) #13
akumar
PTAL. Removed the call to __fixargv0 in flag.c . https://codereview.appspot.com/7058054/diff/2002/src/lib9/argv0.c File src/lib9/argv0.c (left): https://codereview.appspot.com/7058054/diff/2002/src/lib9/argv0.c#oldcode32 src/lib9/argv0.c:32: ...
11 years, 5 months ago (2013-01-18 23:15:50 UTC) #14
iant2
On Fri, Jan 18, 2013 at 12:18 PM, Russ Cox <rsc@golang.org> wrote: >> How is ...
11 years, 5 months ago (2013-01-19 00:12:46 UTC) #15
rsc
On Fri, Jan 18, 2013 at 7:12 PM, Ian Lance Taylor <iant@google.com> wrote: > That ...
11 years, 5 months ago (2013-01-22 18:30:04 UTC) #16
rsc
LGTM
11 years, 5 months ago (2013-01-22 22:23:06 UTC) #17
rsc
11 years, 5 months ago (2013-01-22 22:23:40 UTC) #18
*** Submitted as https://code.google.com/p/go/source/detail?r=4adf815d56df ***

lib9: declare __fixargv0 before use in flag.c

The Plan 9 compilers complain about not
having type information for the function,
which sets off type signature problems
during the linking stage.

R=rsc, ality, iant
CC=golang-dev
https://codereview.appspot.com/7058054

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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