Commit 2bcfe8b9 authored by David du Colombier's avatar David du Colombier

cmd/gc: replace NULL by nil

In CL 3964, NULL was used instead of nil.
However, Plan 9 doesn't declare NULL.

Change-Id: Ied3850aca5c8bca5974105129a37d575df33f6ec
Reviewed-on: https://go-review.googlesource.com/5150Reviewed-by: 's avatarMinux Ma <minux@golang.org>
parent 3a0fbfab
...@@ -140,8 +140,8 @@ closurename(Node *n) ...@@ -140,8 +140,8 @@ closurename(Node *n)
if(n->sym != S) if(n->sym != S)
return n->sym; return n->sym;
gen = 0; gen = 0;
outer = NULL; outer = nil;
prefix = NULL; prefix = nil;
if(n->outerfunc == N) { if(n->outerfunc == N) {
// Global closure. // Global closure.
outer = "glob"; outer = "glob";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment