Mercurial > hg > octave-nkf
comparison src/variables.cc @ 3162:7c96e85c76db
[project @ 1998-04-08 18:19:35 by jwe]
author | jwe |
---|---|
date | Wed, 08 Apr 1998 18:21:04 +0000 |
parents | 02766207b74c |
children | e4bbfc196e53 |
comparison
equal
deleted
inserted
replaced
3161:2837d1701fd9 | 3162:7c96e85c76db |
---|---|
24 #include <config.h> | 24 #include <config.h> |
25 #endif | 25 #endif |
26 | 26 |
27 #include <cstdio> | 27 #include <cstdio> |
28 #include <cstring> | 28 #include <cstring> |
29 #include <ctime> | |
29 | 30 |
30 #include <string> | 31 #include <string> |
31 | 32 |
32 #include "file-stat.h" | 33 #include "file-stat.h" |
33 #include "oct-env.h" | 34 #include "oct-env.h" |
511 { | 512 { |
512 time_t tp = tmp->time_parsed (); | 513 time_t tp = tmp->time_parsed (); |
513 | 514 |
514 string fname = fcn_file_in_path (ff); | 515 string fname = fcn_file_in_path (ff); |
515 | 516 |
516 int status = file_stat::is_newer (fname, tp); | 517 file_stat fs (fname); |
517 | 518 |
518 if (status > 0) | 519 if (fs && fs.is_newer (tp)) |
519 retval = true; | 520 retval = true; |
520 } | 521 } |
521 } | 522 } |
522 } | 523 } |
523 | 524 |