Commit eb910b5a by Richard Kenner

Don't include times.h for winnt.

(get_run_time): Just return zero for winnt.
(main): Don't print memory usage for OS/2 or winnt.

From-SVN: r8182
parent 369404d9
...@@ -36,6 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -36,6 +36,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <ctype.h> #include <ctype.h>
#include <sys/stat.h> #include <sys/stat.h>
#ifndef WINNT
#ifdef USG #ifdef USG
#undef FLOAT #undef FLOAT
#include <sys/param.h> #include <sys/param.h>
...@@ -50,6 +51,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -50,6 +51,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif
#endif #endif
#endif
#include "input.h" #include "input.h"
#include "tree.h" #include "tree.h"
...@@ -853,6 +855,9 @@ int dump_time; ...@@ -853,6 +855,9 @@ int dump_time;
int int
get_run_time () get_run_time ()
{ {
#ifdef WINNT
return 0;
#else
#ifdef USG #ifdef USG
struct tms tms; struct tms tms;
#else #else
...@@ -885,6 +890,7 @@ get_run_time () ...@@ -885,6 +890,7 @@ get_run_time ()
return (vms_times.proc_user_time + vms_times.proc_system_time) * 10000; return (vms_times.proc_user_time + vms_times.proc_system_time) * 10000;
#endif #endif
#endif #endif
#endif
} }
#define TIMEVAR(VAR, BODY) \ #define TIMEVAR(VAR, BODY) \
...@@ -3943,8 +3949,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! ...@@ -3943,8 +3949,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
compile_file (filename); compile_file (filename);
#ifndef OS2 #if !defined(OS2) && !defined(VMS) && !defined(WINNT)
#ifndef VMS
if (flag_print_mem) if (flag_print_mem)
{ {
#ifdef __alpha #ifdef __alpha
...@@ -3962,8 +3967,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! ...@@ -3962,8 +3967,7 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
system ("ps v"); system ("ps v");
#endif /* not USG */ #endif /* not USG */
} }
#endif /* not VMS */ #endif /* not OS2 and not VMS and not WINNT */
#endif /* not OS2 */
if (errorcount) if (errorcount)
exit (FATAL_EXIT_CODE); exit (FATAL_EXIT_CODE);
......
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