summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/goc2c.c
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-01-17 12:40:45 +0100
committerOndřej Surý <ondrej@sury.org>2011-01-17 12:40:45 +0100
commit3e45412327a2654a77944249962b3652e6142299 (patch)
treebc3bf69452afa055423cbe0c5cfa8ca357df6ccf /src/pkg/runtime/goc2c.c
parentc533680039762cacbc37db8dc7eed074c3e497be (diff)
downloadgolang-upstream/2011.01.12.tar.gz
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'src/pkg/runtime/goc2c.c')
-rw-r--r--src/pkg/runtime/goc2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/runtime/goc2c.c b/src/pkg/runtime/goc2c.c
index a4489213f..826ceff3a 100644
--- a/src/pkg/runtime/goc2c.c
+++ b/src/pkg/runtime/goc2c.c
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-/* Translate a .cgo file into a .c file. A .cgo file is a combination
+/* Translate a .goc file into a .c file. A .goc file is a combination
of a limited form of Go with C. */
/*
@@ -28,7 +28,7 @@ static int gcc;
/* File and line number */
static const char *file;
-static unsigned int lineno;
+static unsigned int lineno = 1;
/* List of names and types. */
struct params {
@@ -669,7 +669,7 @@ process_file(void)
static void
usage(void)
{
- fprintf(stderr, "Usage: cgo2c [--6g | --gc] [file]\n");
+ fprintf(stderr, "Usage: goc2c [--6g | --gc] [file]\n");
exit(1);
}