diff options
author | Ron Minnich <rminnich@gmail.com> | 2011-10-26 15:27:59 -0700 |
---|---|---|
committer | Ron Minnich <rminnich@gmail.com> | 2011-10-26 15:27:59 -0700 |
commit | 3650dbe0cf74b79a6bc5046ec0e3cd7fd321d6bf (patch) | |
tree | 4c40d8211ec879c820030cf36b785ebeec095bbb /src/cmd/6c | |
parent | 063c3ab8b5ce105cc8050133deab35407f002b0a (diff) | |
download | go-3650dbe0cf74b79a6bc5046ec0e3cd7fd321d6bf.tar.gz |
cc: change cas to newcase
Change the name of cas() in cc to newcase() to avoid a NIX conflict.
cas() is used in cc to create a new Case struct. There is a name
conflict in that cas() is a commonly-used
name for compare and swap. Since cas() is only used internally
in the compiler in 3 places, change the name to avoid a wider
conflict with the NIX runtime. This issue might well come up on
other OSes in the future anyway, as the name is fairly common.
R=rsc
CC=golang-dev
http://codereview.appspot.com/5294071
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/6c')
-rw-r--r-- | src/cmd/6c/gc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/6c/gc.h b/src/cmd/6c/gc.h index 0c23b115c..ed2338731 100644 --- a/src/cmd/6c/gc.h +++ b/src/cmd/6c/gc.h @@ -299,7 +299,7 @@ void gpseudo(int, Sym*, Node*); int swcmp(const void*, const void*); void doswit(Node*); void swit1(C1*, int, int32, Node*); -void cas(void); +void newcase(void); void bitload(Node*, Node*, Node*, Node*, Node*); void bitstore(Node*, Node*, Node*, Node*, Node*); int32 outstring(char*, int32); |