diff options
| author | YAMAMOTO Mitsuharu | 2007-01-05 08:29:51 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2007-01-05 08:29:51 +0000 |
| commit | 31cfeedea934754338282147df8db3e1b27f4c21 (patch) | |
| tree | d3dcf95fac8103fc4c0ae9f1eec1932beec9fdbf /src/mac.c | |
| parent | bcda42c8fd19e385ee4b5abd03ac330ee2824db0 (diff) | |
| download | emacs-31cfeedea934754338282147df8db3e1b27f4c21.tar.gz emacs-31cfeedea934754338282147df8db3e1b27f4c21.zip | |
(Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
instead of 'EMAx'.
[!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
Diffstat (limited to 'src/mac.c')
| -rw-r--r-- | src/mac.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -2261,7 +2261,7 @@ sys_open (const char *path, int oflag) | |||
| 2261 | int res = open (mac_pathname, oflag); | 2261 | int res = open (mac_pathname, oflag); |
| 2262 | /* if (oflag == O_WRONLY || oflag == O_RDWR) */ | 2262 | /* if (oflag == O_WRONLY || oflag == O_RDWR) */ |
| 2263 | if (oflag & O_CREAT) | 2263 | if (oflag & O_CREAT) |
| 2264 | fsetfileinfo (mac_pathname, 'EMAx', 'TEXT'); | 2264 | fsetfileinfo (mac_pathname, MAC_EMACS_CREATOR_CODE, 'TEXT'); |
| 2265 | return res; | 2265 | return res; |
| 2266 | #else /* not __MRC__ */ | 2266 | #else /* not __MRC__ */ |
| 2267 | return open (mac_pathname, oflag); | 2267 | return open (mac_pathname, oflag); |
| @@ -2287,7 +2287,7 @@ sys_creat (const char *path, mode_t mode) | |||
| 2287 | { | 2287 | { |
| 2288 | #ifdef __MRC__ | 2288 | #ifdef __MRC__ |
| 2289 | int result = creat (mac_pathname); | 2289 | int result = creat (mac_pathname); |
| 2290 | fsetfileinfo (mac_pathname, 'EMAx', 'TEXT'); | 2290 | fsetfileinfo (mac_pathname, MAC_EMACS_CREATOR_CODE, 'TEXT'); |
| 2291 | return result; | 2291 | return result; |
| 2292 | #else /* not __MRC__ */ | 2292 | #else /* not __MRC__ */ |
| 2293 | return creat (mac_pathname, mode); | 2293 | return creat (mac_pathname, mode); |
| @@ -2415,7 +2415,7 @@ sys_fopen (const char *name, const char *mode) | |||
| 2415 | { | 2415 | { |
| 2416 | #ifdef __MRC__ | 2416 | #ifdef __MRC__ |
| 2417 | if (mode[0] == 'w' || mode[0] == 'a') | 2417 | if (mode[0] == 'w' || mode[0] == 'a') |
| 2418 | fsetfileinfo (mac_pathname, 'EMAx', 'TEXT'); | 2418 | fsetfileinfo (mac_pathname, MAC_EMACS_CREATOR_CODE, 'TEXT'); |
| 2419 | #endif /* not __MRC__ */ | 2419 | #endif /* not __MRC__ */ |
| 2420 | return fopen (mac_pathname, mode); | 2420 | return fopen (mac_pathname, mode); |
| 2421 | } | 2421 | } |
| @@ -4316,7 +4316,7 @@ assumed. Return non-nil if successful. */) | |||
| 4316 | OSType cCode; | 4316 | OSType cCode; |
| 4317 | CHECK_STRING (filename); | 4317 | CHECK_STRING (filename); |
| 4318 | 4318 | ||
| 4319 | cCode = mac_get_code_from_arg(code, 'EMAx'); | 4319 | cCode = mac_get_code_from_arg(code, MAC_EMACS_CREATOR_CODE); |
| 4320 | 4320 | ||
| 4321 | if (NILP(Ffile_exists_p(filename)) || !NILP(Ffile_directory_p(filename))) { | 4321 | if (NILP(Ffile_exists_p(filename)) || !NILP(Ffile_directory_p(filename))) { |
| 4322 | return Qnil; | 4322 | return Qnil; |