summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-20 11:17:09 +0100
committerBruno Haible <bruno@clisp.org>2009-12-20 11:17:09 +0100
commita343f956096d23d0384510a6616ff0a36c22a691 (patch)
tree894062215d8094be7394db3259b92fc6eaf61d7d /src
parente2adb5825803e2a3b72eae3eadb75e34ffc56a78 (diff)
downloadgperf-a343f956096d23d0384510a6616ff0a36c22a691.tar.gz
Change the default language to ANSI-C.
Diffstat (limited to 'src')
-rw-r--r--src/options.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/options.cc b/src/options.cc
index a60446d..c69d922 100644
--- a/src/options.cc
+++ b/src/options.cc
@@ -120,7 +120,7 @@ Options::long_usage (FILE * stream)
" -L, --language=LANGUAGE-NAME\n"
" Generates code in the specified language. Languages\n"
" handled are currently C++, ANSI-C, C, and KR-C. The\n"
- " default is C.\n");
+ " default is ANSI-C.\n");
fprintf (stream, "\n");
fprintf (stream,
"Details in the output code:\n");
@@ -448,7 +448,7 @@ PositionStringParser::nextPosition ()
/* Sets the default Options. */
Options::Options ()
- : _option_word (C),
+ : _option_word (ANSIC),
_input_file_name (NULL),
_output_file_name (NULL),
_language (NULL),
@@ -574,9 +574,10 @@ Options::set_language (const char *language)
_option_word |= CPLUSPLUS;
else
{
- fprintf (stderr, "unsupported language option %s, defaulting to C\n",
+ fprintf (stderr,
+ "unsupported language option %s, defaulting to ANSI-C\n",
language);
- _option_word |= C;
+ _option_word |= ANSIC;
}
}
}