Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
623dfd1b
Commit
623dfd1b
authored
Mar 24, 2010
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
depricate panicln
R=rsc CC=golang-dev
https://golang.org/cl/743041
parent
325cf8ef
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
13 deletions
+4
-13
go.h
src/cmd/gc/go.h
+1
-1
lex.c
src/cmd/gc/lex.c
+0
-1
print.c
src/cmd/gc/print.c
+0
-2
subr.c
src/cmd/gc/subr.c
+0
-1
typecheck.c
src/cmd/gc/typecheck.c
+0
-1
walk.c
src/cmd/gc/walk.c
+3
-7
No files found.
src/cmd/gc/go.h
View file @
623dfd1b
...
...
@@ -376,7 +376,7 @@ enum
ONEW
,
ONOT
,
OCOM
,
OPLUS
,
OMINUS
,
OOROR
,
OPANIC
,
OP
ANICN
,
OP
RINT
,
OPRINTN
,
OPANIC
,
OPRINT
,
OPRINTN
,
OSEND
,
OSENDNB
,
OSLICE
,
OSLICEARR
,
OSLICESTR
,
ORECV
,
...
...
src/cmd/gc/lex.c
View file @
623dfd1b
...
...
@@ -1305,7 +1305,6 @@ static struct
"make"
,
LNAME
,
Txxx
,
OMAKE
,
"new"
,
LNAME
,
Txxx
,
ONEW
,
"panic"
,
LNAME
,
Txxx
,
OPANIC
,
"panicln"
,
LNAME
,
Txxx
,
OPANICN
,
"print"
,
LNAME
,
Txxx
,
OPRINT
,
"println"
,
LNAME
,
Txxx
,
OPRINTN
,
"real"
,
LNAME
,
Txxx
,
OREAL
,
...
...
src/cmd/gc/print.c
View file @
623dfd1b
...
...
@@ -48,7 +48,6 @@ exprfmt(Fmt *f, Node *n, int prec)
case
OMAKE
:
case
ONEW
:
case
OPANIC
:
case
OPANICN
:
case
OPRINT
:
case
OPRINTN
:
case
OCALL
:
...
...
@@ -351,7 +350,6 @@ exprfmt(Fmt *f, Node *n, int prec)
case
OMAKE
:
case
ONEW
:
case
OPANIC
:
case
OPANICN
:
case
OPRINT
:
case
OPRINTN
:
fmtprint
(
f
,
"%#O("
,
n
->
op
);
...
...
src/cmd/gc/subr.c
View file @
623dfd1b
...
...
@@ -832,7 +832,6 @@ goopnames[] =
[
ONOT
]
=
"!"
,
[
OOROR
]
=
"||"
,
[
OOR
]
=
"|"
,
[
OPANICN
]
=
"panicln"
,
[
OPANIC
]
=
"panic"
,
[
OPLUS
]
=
"+"
,
[
OPRINTN
]
=
"println"
,
...
...
src/cmd/gc/typecheck.c
View file @
623dfd1b
...
...
@@ -1013,7 +1013,6 @@ reswitch:
goto
ret
;
case
OPANIC
:
case
OPANICN
:
case
OPRINT
:
case
OPRINTN
:
ok
|=
Etop
;
...
...
src/cmd/gc/walk.c
View file @
623dfd1b
...
...
@@ -54,7 +54,6 @@ loop:
case
OGOTO
:
case
ORETURN
:
case
OPANIC
:
case
OPANICN
:
return
0
;
break
;
}
...
...
@@ -374,7 +373,6 @@ walkstmt(Node **np)
case
OPRINT
:
case
OPRINTN
:
case
OPANIC
:
case
OPANICN
:
case
OEMPTY
:
if
(
n
->
typecheck
==
0
)
fatal
(
"missing typecheck"
);
...
...
@@ -411,7 +409,6 @@ walkstmt(Node **np)
case
OPRINT
:
case
OPRINTN
:
case
OPANIC
:
case
OPANICN
:
walkexprlist
(
n
->
left
->
list
,
&
n
->
ninit
);
n
->
left
=
walkprint
(
n
->
left
,
&
n
->
ninit
,
1
);
break
;
...
...
@@ -612,7 +609,6 @@ walkexpr(Node **np, NodeList **init)
case
OPRINT
:
case
OPRINTN
:
case
OPANIC
:
case
OPANICN
:
walkexprlist
(
n
->
list
,
init
);
n
=
walkprint
(
n
,
init
,
0
);
goto
ret
;
...
...
@@ -1712,7 +1708,7 @@ walkprint(Node *nn, NodeList **init, int defer)
else
calls
=
list
(
calls
,
mkcall
(
"printsp"
,
T
,
init
));
}
notfirst
=
op
==
OPRINTN
||
op
==
OPANICN
;
notfirst
=
op
==
OPRINTN
;
n
=
l
->
n
;
if
(
n
->
op
==
OLITERAL
)
{
...
...
@@ -1828,7 +1824,7 @@ walkprint(Node *nn, NodeList **init, int defer)
if
(
defer
)
{
if
(
op
==
OPRINTN
)
fmtprint
(
&
fmt
,
"
\n
"
);
if
(
op
==
OPANIC
||
op
==
OPANICN
)
if
(
op
==
OPANIC
)
fmtprint
(
&
fmt
,
"%%!"
);
on
=
syslook
(
"printf"
,
1
);
on
->
type
=
functype
(
nil
,
intypes
,
nil
);
...
...
@@ -1845,7 +1841,7 @@ walkprint(Node *nn, NodeList **init, int defer)
typechecklist
(
calls
,
Etop
);
walkexprlist
(
calls
,
init
);
if
(
op
==
OPANIC
||
op
==
OPANICN
)
if
(
op
==
OPANIC
)
r
=
mkcall
(
"panicl"
,
T
,
nil
);
else
r
=
nod
(
OEMPTY
,
N
,
N
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment