annotate Mac/Python/macgetmtime.c @ 2394:fa8cdd3cc545 legacy-trunk

use PyMac_GetArgv (in macgetargv.c) for applet inits
author Guido van Rossum <guido@python.org>
date Sun, 19 Feb 1995 15:52:17 +0000
parents c57b5c50a2d2
children d6b292a33cfe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1822
76d0f2b3b9ee Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
Guido van Rossum <guido@python.org>
parents: 1795
diff changeset
1 #include "macstat.h"
2136
c57b5c50a2d2 rename2 changes
Guido van Rossum <guido@python.org>
parents: 1822
diff changeset
2 #include "rename2.h"
1495
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
3
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
4 /* Interfaced used by import.c */
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
5
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
6 long
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 getmtime(path)
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 char *path;
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
9 {
1822
76d0f2b3b9ee Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
Guido van Rossum <guido@python.org>
parents: 1795
diff changeset
10 struct macstat st;
76d0f2b3b9ee Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
Guido van Rossum <guido@python.org>
parents: 1795
diff changeset
11 if (macstat(path, &st) != 0)
1495
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 return -1L;
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 return st.st_mtime;
877073b9f8c3 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 }