diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-07-12 00:01:09 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2014-07-12 00:01:09 +0000 |
commit | 2fa39ad859e59a5ad5796e522a4842717b2f6e0c (patch) | |
tree | 783acf11ed4625d6499f731501d984f25fa103fc /libgo/runtime/go-getgoroot.c | |
parent | ca76ae5c35f58f0ea40f656d3e555f2c740cf4ec (diff) | |
download | gcc-2fa39ad859e59a5ad5796e522a4842717b2f6e0c.zip gcc-2fa39ad859e59a5ad5796e522a4842717b2f6e0c.tar.gz gcc-2fa39ad859e59a5ad5796e522a4842717b2f6e0c.tar.bz2 |
runtime: Merge master revision 19185.
This revision renames several files in the runtime directory
from .c to .goc.
From-SVN: r212472
Diffstat (limited to 'libgo/runtime/go-getgoroot.c')
-rw-r--r-- | libgo/runtime/go-getgoroot.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/libgo/runtime/go-getgoroot.c b/libgo/runtime/go-getgoroot.c deleted file mode 100644 index 1b52d44..0000000 --- a/libgo/runtime/go-getgoroot.c +++ /dev/null @@ -1,26 +0,0 @@ -/* go-getgoroot.c -- getgoroot function for runtime package. - - Copyright 2010 The Go Authors. All rights reserved. - Use of this source code is governed by a BSD-style - license that can be found in the LICENSE file. */ - -#include <stdlib.h> - -#include "runtime.h" - -String getgoroot (void) __asm__ (GOSYM_PREFIX "runtime.getgoroot"); - -String -getgoroot () -{ - const char *p; - String ret; - - p = getenv ("GOROOT"); - ret.str = (const byte *) p; - if (ret.str == NULL) - ret.len = 0; - else - ret.len = __builtin_strlen (p); - return ret; -} |