]> Cypherpunks repositories - gostls13.git/commit
cc: change cas to newcase
authorRon Minnich <rminnich@gmail.com>
Wed, 26 Oct 2011 22:27:59 +0000 (15:27 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 26 Oct 2011 22:27:59 +0000 (15:27 -0700)
commit1bc1caa802e9ec8170f6e971712579d0c2d321f6
treebbb7974180a56435a7752e7a35b0c72791b6f97e
parent8658b36ba2cab730e1717d61a88f72d92b27a286
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
https://golang.org/cl/5294071
src/cmd/5c/gc.h
src/cmd/6c/gc.h
src/cmd/8c/gc.h
src/cmd/cc/pgen.c
src/cmd/cc/pswt.c