comparison libgo/misc/cgo/life/main.go @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // cmpout 1 // run -tags=use_go_run
2 2
3 // Copyright 2010 The Go Authors. All rights reserved. 3 // Copyright 2010 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file. 5 // license that can be found in the LICENSE file.
6 6
9 // Run the game of life in C using Go for parallelization. 9 // Run the game of life in C using Go for parallelization.
10 10
11 package main 11 package main
12 12
13 import ( 13 import (
14 "."
15 "flag" 14 "flag"
16 "fmt" 15 "fmt"
16
17 "."
17 ) 18 )
18 19
19 const MAXDIM = 100 20 const MAXDIM = 100
20 21
21 var dim = flag.Int("dim", 16, "board dimensions") 22 var dim = flag.Int("dim", 16, "board dimensions")