Commit ee77eda5 by Mumit Khan Committed by Mumit Khan

protoize.c: Conditionally include unistd.h.

2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>

	* protoize.c: Conditionally include unistd.h.
	(IS_SAME_PATH_CHAR): New macro.
	(IS_SAME_PATH): New macro.
	(CPLUS_FILE_SUFFIX): New macro.
	(cplus_suffix): New static variable.
	(is_abspath): New static function.
	(in_system_include_dir): Handle DOS style pathnames.
	(file_could_be_converted): Likewise.
	(file_normally_convertible): Likewise.
	(directory_specified_p): Likewise.
	(file_excluded_p): Likewise.
	(abspath): Likewise.
	(shortpath): Likewise.
	(referenced_file_is_newer): Likewise.
	(save_def_or_dec): Likewise.
	(do_processing): Likewise.
	(main): Likewise.
	(edit_file): Likewise. Use rename instead of link.
	(rename_c_file): Likewise. Don't rename syscalls file.
	(munge_compile_params): Define null device for DOS based systems.
	(process_aux_info_file): Use binary mode if appliable.
	(edit_file): Likewise.
	* invoke.texi (Running Protoize): Document C++ suffixes used.

From-SVN: r31265
parent d5b6516d
2000-01-06 Mumit Khan <khan@xraylith.wisc.edu> 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
* protoize.c: Conditionally include unistd.h.
(IS_SAME_PATH_CHAR): New macro.
(IS_SAME_PATH): New macro.
(CPLUS_FILE_SUFFIX): New macro.
(cplus_suffix): New static variable.
(is_abspath): New static function.
(in_system_include_dir): Handle DOS style pathnames.
(file_could_be_converted): Likewise.
(file_normally_convertible): Likewise.
(directory_specified_p): Likewise.
(file_excluded_p): Likewise.
(abspath): Likewise.
(shortpath): Likewise.
(referenced_file_is_newer): Likewise.
(save_def_or_dec): Likewise.
(do_processing): Likewise.
(main): Likewise.
(edit_file): Likewise. Use rename instead of link.
(rename_c_file): Likewise. Don't rename syscalls file.
(munge_compile_params): Define null device for DOS based systems.
(process_aux_info_file): Use binary mode if appliable.
(edit_file): Likewise.
* invoke.texi (Running Protoize): Document C++ suffixes used.
* cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and * cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
IS_DIR_SEPARATOR macros. IS_DIR_SEPARATOR macros.
* collect2.c: Likewise. * collect2.c: Likewise.
......
...@@ -7429,9 +7429,9 @@ would produce the wrong kind of output. These include @samp{-g}, ...@@ -7429,9 +7429,9 @@ would produce the wrong kind of output. These include @samp{-g},
the @var{compilation-options}, they are ignored. the @var{compilation-options}, they are ignored.
@item -C @item -C
Rename files to end in @samp{.C} instead of @samp{.c}. Rename files to end in @samp{.C}, or @samp{.cc} for DOS-based file
This is convenient if you are converting a C program to C++. systems, instead of @samp{.c}. This is convenient if you are converting
This option applies only to @code{protoize}. a C program to C++. This option applies only to @code{protoize}.
@item -g @item -g
Add explicit global declarations. This means inserting explicit Add explicit global declarations. This means inserting explicit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment