]> Cypherpunks repositories - gostls13.git/commitdiff
gc: shuffle #includes
authorRuss Cox <rsc@golang.org>
Thu, 25 Aug 2011 20:25:10 +0000 (16:25 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 25 Aug 2011 20:25:10 +0000 (16:25 -0400)
#include "go.h" (or "gg.h")

becomes

#include <u.h>
#include <libc.h>
#include "go.h"

so that go.y can #include <stdio.h>
after <u.h> but before "go.h".
This is necessary on Plan 9.

R=ken2
CC=golang-dev
https://golang.org/cl/4971041

58 files changed:
src/cmd/5g/cgen.c
src/cmd/5g/cgen64.c
src/cmd/5g/galign.c
src/cmd/5g/gg.h
src/cmd/5g/ggen.c
src/cmd/5g/gobj.c
src/cmd/5g/gsubr.c
src/cmd/5g/list.c
src/cmd/5g/peep.c
src/cmd/5g/reg.c
src/cmd/6g/cgen.c
src/cmd/6g/galign.c
src/cmd/6g/gg.h
src/cmd/6g/ggen.c
src/cmd/6g/gobj.c
src/cmd/6g/gsubr.c
src/cmd/6g/list.c
src/cmd/6g/peep.c
src/cmd/6g/reg.c
src/cmd/8g/cgen.c
src/cmd/8g/cgen64.c
src/cmd/8g/galign.c
src/cmd/8g/gg.h
src/cmd/8g/ggen.c
src/cmd/8g/gobj.c
src/cmd/8g/gsubr.c
src/cmd/8g/list.c
src/cmd/8g/peep.c
src/cmd/8g/reg.c
src/cmd/gc/align.c
src/cmd/gc/bits.c
src/cmd/gc/closure.c
src/cmd/gc/const.c
src/cmd/gc/cplx.c
src/cmd/gc/dcl.c
src/cmd/gc/esc.c
src/cmd/gc/export.c
src/cmd/gc/gen.c
src/cmd/gc/go.h
src/cmd/gc/go.y
src/cmd/gc/init.c
src/cmd/gc/lex.c
src/cmd/gc/md5.c
src/cmd/gc/mparith1.c
src/cmd/gc/mparith2.c
src/cmd/gc/mparith3.c
src/cmd/gc/obj.c
src/cmd/gc/pgen.c
src/cmd/gc/print.c
src/cmd/gc/range.c
src/cmd/gc/reflect.c
src/cmd/gc/select.c
src/cmd/gc/sinit.c
src/cmd/gc/subr.c
src/cmd/gc/swt.c
src/cmd/gc/typecheck.c
src/cmd/gc/unsafe.c
src/cmd/gc/walk.c

index 6e2fbe20ff84c112a1c1756cc2260c2f5a99159e..3d98191aa658c1ef990f68a8eac76f45332957a3 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 /*
index b56df765baaae5d0b616031337908dca464eea33..9ac4aa3ed15c0b949d8fc41fd05f4f12249b8ed2 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 /*
index 12766102f1e1d5c8be1751d44ca249e3a8f05b87..0708042179136b21bb80632812becca1fd58efaa 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 int    thechar = '5';
index b4667a3f6ab39ea7cc34e02c451dce095d5f88fd..08e1e037bee7b03baf4794b2c668e174334a2f2e 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#include <u.h>
-#include <libc.h>
-
 #ifndef        EXTERN
 #define        EXTERN  extern
 #endif
index 3f5f47e7bdccf79771dacf444604b99de205dc46..c03825aad480c25649bb8496d36c2d21c3295d3e 100644 (file)
@@ -4,6 +4,8 @@
 
 #undef EXTERN
 #define        EXTERN
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 #include "opt.h"
 
index 27c8be67d7e33f45fffce2949279c2835cbced6f..4d1566a49c35c3c015b16e2e1d6a6f22e0690fa3 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 void
index ddaf52a8821a95a00dc75f36d5192b63a8e176a2..d133c6a90cf91291fdd08ccd7bd1955ce27c8b51 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 // TODO(kaib): Can make this bigger if we move
index 0c6dbbf718908e491b4f5d0e72d9f0d0a5a3f459..fef9c85435fd96e51117ccd59a1b338462aca62f 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 // TODO(kaib): make 5g/list.c congruent with 5l/list.c
index 6cc93db12c5448d9bd3bf690fbafa17200bf4728..dddad5bd964416561b76dfb6ed4286286d91738a 100644 (file)
@@ -29,6 +29,8 @@
 // THE SOFTWARE.
 
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 #include "opt.h"
 
index 2d2a6d01af439a92bcf2001661f8d51e6c2dce52..da8e1e16744c4f4a8d63fe7a592e0fce9ab3d313 100644 (file)
@@ -29,6 +29,8 @@
 // THE SOFTWARE.
 
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 #include "opt.h"
 
index 24f88a416ed33dfd389c0421dbce35756aa50158..a4820cf2e3aad91915154ce396b7b54b4a155b37 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 /*
index e366362b30fe9f4e4cdbe13f7896216ccd1a1eaf..b03ac1ed674fff6979f8238e120ac8da04c10762 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 int    thechar = '6';
index 3af8d3707f1efc4ef337beed58c128de4a510872..47a92ad64923b350fc9f833f7fa5dbecd57e3b8f 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#include <u.h>
-#include <libc.h>
-
 #ifndef        EXTERN
 #define        EXTERN  extern
 #endif
index a5f2783845cedea75fa836fec33e042a525089b7..48e2588ded692db4e15486d5769c01129c5917d4 100644 (file)
@@ -4,6 +4,8 @@
 
 #undef EXTERN
 #define        EXTERN
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 #include "opt.h"
 
index 5e57568c3ec83f208f298ee21375b8b18aa10c71..5e704ce01f2adf85e94ab078626e942bbb666f1b 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 void
index 88c7b132a1f80580ba15069baca9fb2d57a9bbd9..546d69139faa5be3557cf59fa97b41acc045e909 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 // TODO(rsc): Can make this bigger if we move
index c8077c97a1c33a09ae397fd6089be24f8b6fefbd..4381a178a8bb4bef4dffb3442d83fd2d1d7fc653 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 static int     sconsize;
index 4432203f2f58bcc1f2b1a85e8d4a401de883a752..3fac3b7d16261727d83b520dd83c540e286557ed 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 #include "opt.h"
 
index 5d6bfb3ada6034f487b5a6da0241383b166fa27b..9006cf2b6678e17d908b055585239099631d6c8e 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 #include "opt.h"
 
index b316e6e345a58641009d77f2d652bd795509f13e..27c75eda9da61e595f571b554b285c5f2dc1eb19 100644 (file)
@@ -5,6 +5,8 @@
 // TODO(rsc):
 //     assume CLD?
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 void
index ba99cec743356628bc2c25962708ddd2772086cd..8e568a0f9169b600b11051351e1b21b5b698dd05 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 /*
index 7734603c4b0044b462ec69843f4cc60671bb44da..4526a2efbe3b5a026c3c589339fdd4bfa58b0a8e 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 int    thechar = '8';
index 506345ef46d197b0b4528ae8cd8fdf896dc5583e..8a6ffdbfb9a73393e6bde7be596eb0a5db1536ab 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#include <u.h>
-#include <libc.h>
-
 #ifndef        EXTERN
 #define        EXTERN  extern
 #endif
index 108c493aa382afd1ab1b8fba635cd742450befee..0d29c05c52125de4ba7c15f9a20f985aae764158 100644 (file)
@@ -4,6 +4,8 @@
 
 #undef EXTERN
 #define        EXTERN
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 #include "opt.h"
 
index 31c42a3f27b7d4a2c8eef2e7a104b28c058239c1..2cf622830a9e727b370c9344d458a5aa825e6376 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 void
index a35c81eb108f3122dc2a8843d1c148dc1a165996..b5238755044aab38637ded315d086afcb94fe874 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 // TODO(rsc): Can make this bigger if we move
index edb1ece84ac4c7c0e2b39daf8c4174e491394097..efd9dbbc488828f213435f515961bb54a30993c5 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 static int     sconsize;
index 5ad29e1b219b8d307f987bc0094e1a92d3cbd1a8..89c2a7ae744a0beb9a4d0a12d2f60b38af7d2c68 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 #include "opt.h"
 
index 4fb274fe04400a0601acee802d17c574f2546524..70640ab04b892898bfe013917bb92e2a867d3e17 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 #include "opt.h"
 
index 14c1c4a8d2d852ba264a198c850d56597283782f..f316c19e011966cb408b788598344f777676edb8 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 /*
index 7188ac4111280532679cd8b067d86ab861ec3f79..ed695e9087e3ea83cb2390034c3eab122519f0fd 100644 (file)
@@ -28,6 +28,8 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 /*
index 7b21bf3ab19f1a1d894a5152b8268e40366c1b0b..af42685564331d740a1cc07bb7c600603540b744 100644 (file)
@@ -6,6 +6,8 @@
  * function literals aka closures
  */
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 void
index 36a64cb97c2706afa02daf05badbe9ec25d14d49..e66056bb98bf8ebe29d7675987663329bed23fc9 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 #define        TUP(x,y)        (((x)<<16)|(y))
 
index 890cf7f10c29d6daaf2c8804e55785da0e2f7d91..5bc8d64aa2abe593855e831909c0671150ea5901 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "gg.h"
 
 static void    subnode(Node *nr, Node *ni, Node *nc);
index 0c593dac4500466f575e448bc2f717862701aab6..315f291a637333c8cd95d47a9f65343aef0eab3d 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 #include       "y.tab.h"
 
index d83a7f75b989e2ad57f7d3c8cdbf43218a9c047a..2cc7d7a486c74498aa52213e5abcda9adb334531 100644 (file)
@@ -29,6 +29,8 @@
 // unsafe with -m, more detailed analysis output with -mm
 //
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 static void escfunc(Node *func);
index 014f0c5f07ab7614b2bafbb41c23a49f32211182..421afda8b4098e3d8d74c6dca46ec3cbd6aa25ed 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 #include       "y.tab.h"
 
index 9c1a2a9b1299498657729700621c847d3a4802c5..ddd6cae6d281dfb495524f2df229fdb897f94c28 100644 (file)
@@ -7,6 +7,8 @@
  * mainly statements and control flow.
  */
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 static void    cgen_dcl(Node *n);
index 6252864ed83f0b83c5f1053a41662c120f9ac66b..f5c2c3875011c7635d086d303b28a06859c1f48c 100644 (file)
@@ -2,8 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-#include       <u.h>
-#include       <libc.h>
 #include       <bio.h>
 
 #undef OAPPEND
index 4c7fe6068b2653a1b445b2fe7ecaea2975297978..373d42f136526c57437741d6dae072873e8a3550 100644 (file)
@@ -18,7 +18,9 @@
  */
 
 %{
+#include <u.h>
 #include <stdio.h>     /* if we don't, bison will, and go.h re-#defines getc */
+#include <libc.h>
 #include "go.h"
 
 static void fixlbrace(int);
index 8818db08c72c37383c0519fea8922fe1259dd403..da69e41ae318a803f8a1723e4430e1fb6488ab54 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 /*
index 77667579fb2be36fa2798cf3720a70b03b69209d..4d30dcde8b7145d65969ca0bf9fa4c720b9176f4 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 #include       "y.tab.h"
 #include       <ar.h>
index 7cea1a6cfa30df2e2041c1d23e9dc9fcdadb7613..5856aab511c1ef426bc2cab04c0d2c273b0f5ea1 100644 (file)
@@ -5,6 +5,8 @@
 // 64-bit MD5 (does full MD5 but returns 64 bits only).
 // Translation of ../../pkg/crypto/md5/md5*.go.
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 #include "md5.h"
 
index 6cd4e25000a4e8d79856fa658f049f7911c4c2fc..2b7307e1a41623127229d8a91b36a59b14736b8e 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 
 /// uses arithmetic
index 40325500566b1272ff4ee96fb00b3aa1eface4f6..16eb4abaa27927150ef7d4f3f41edf6e21d173c6 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 
 //
index b11a4f5f1a7c4ec245df96e22d577d3c6b7f51df..0c6c5a03b9de2d73342e4dd9016f794ece69a3a0 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 
 /*
index 456aabb885b76ccc2ce1d9fc4880fefbb3428318..23b5e03b0d0b4110916a35ffe7f2883019a223fc 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 /*
index abe8ea89253282bdbe5e86e5456fa410cabd5844..78288e2223f4b640551602747c1691acb9c7103a 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "gg.h"
 #include       "opt.h"
 
index 18b8e129803a5cb6a67ec7cedab91a6579f5eb0e..37e3e7ac05496f3832e546fc2e6b0ed0b047d84c 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 enum
index 5ce693ae35cc60f7438f37d5886642a98948432c..26edf8c3a7cd9251f6f48c3e184bae6852686747 100644 (file)
@@ -6,6 +6,8 @@
  * range
  */
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 void
index 016722b7a130c2a6fa3740f92a4be2db35f9a9a6..4daa1499b8dc7cf174ee1b22c17a7dc3cd167877 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 /*
index 973e9fe07c6f7ebd744308edd0f7842fbf9e85b1..cd6741ec8b3c78bec5478cbdf32289291347b314 100644 (file)
@@ -6,6 +6,8 @@
  * select
  */
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 void
index 917e2ae6d5c7543c21fc037e3b7e6d224f7c31ce..2f5a44b404751215b073f4eee7f51339bb47be69 100644 (file)
@@ -6,6 +6,8 @@
  * static initialization
  */
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 
 static NodeList *initlist;
index c5d0ad8a731a4b2accec30d939e1cf3f78741170..2b7f5e1c9129a8dbe0fa4f68e3fa2724c513c5ce 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 #include       "md5.h"
 #include       "y.tab.h"
index c2968c44bcf9f5e34b968f71077a477a2a7befbb..6f2028c7fca3212f4ea44d7e3ed2d0ca3ba5c695 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 
 enum
index ef900d0d419bab949476413dd25d27d55430f87b..7d67e1e73ee92eba730771102841ce70662a0fa6 100644 (file)
@@ -10,6 +10,8 @@
  * rewrites n->op to be more specific in some cases.
  */
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 static void    implicitstar(Node**);
index d304077c8e1bb5addb1e9da958b7912d3a291021..6435492e02fcba0e514dff850deacbaf0525cc1f 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include <u.h>
+#include <libc.h>
 #include "go.h"
 
 /*
index 3a26b3988a5a35e91f187ac5a9ae06fe30c4a729..b172013aa8b58e9cf4818f01e1224af40507d210 100644 (file)
@@ -2,6 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+#include       <u.h>
+#include       <libc.h>
 #include       "go.h"
 
 static Node*   walkprint(Node*, NodeList**, int);