Author: sebor
Date: Mon Aug 7 14:17:58 2006
New Revision: 429481
URL: http://svn.apache.org/viewvc?rev=429481&view=rev
Log:
2006-08-07 Martin Sebor <[EMAIL PROTECTED]>
* cmdopt.h (show_usage, eval_options): Removed redundant const
qualifier from function parameter types to avoid running into
bugs in Sun and Compaq/HP C++ compilers (see STDCXX-266 and
STDCXX-267).
* cmdopt.cpp (show_usage, eval_options): Made definitions
consistent with declarations.
Modified:
incubator/stdcxx/trunk/util/cmdopt.cpp
incubator/stdcxx/trunk/util/cmdopt.h
Modified: incubator/stdcxx/trunk/util/cmdopt.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/cmdopt.cpp?rev=429481&r1=429480&r2=429481&view=diff
==============================================================================
--- incubator/stdcxx/trunk/util/cmdopt.cpp (original)
+++ incubator/stdcxx/trunk/util/cmdopt.cpp Mon Aug 7 14:17:58 2006
@@ -194,7 +194,7 @@
@see exe_opts
*/
int
-eval_options (const int argc, char* const argv [])
+eval_options (int argc, char **argv)
{
const char opt_timeout[] = "-t";
const char opt_data_dir[] = "-d";
Modified: incubator/stdcxx/trunk/util/cmdopt.h
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/cmdopt.h?rev=429481&r1=429480&r2=429481&view=diff
==============================================================================
--- incubator/stdcxx/trunk/util/cmdopt.h (original)
+++ incubator/stdcxx/trunk/util/cmdopt.h Mon Aug 7 14:17:58 2006
@@ -36,12 +36,12 @@
extern const char* target_name; /**< Alias for current target name. */
void
-show_usage(const int status);
+show_usage (int status);
int
-eval_options (int argc, char* const argv[]);
+eval_options (int argc, char** argv);
char**
-split_opt_string(const char* opts);
+split_opt_string (const char* opts);
#endif // RW_PARSE_OPTS_H