]> code.delx.au - gnu-emacs/commitdiff
(TYPE_FILE_NAME): New define.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 24 Dec 2005 02:51:04 +0000 (02:51 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 24 Dec 2005 02:51:04 +0000 (02:51 +0000)
(posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.

src/ChangeLog
src/macterm.h

index 69bc634be0662b4f1c02431682eb6528a3d32ae7..a32ed4158f64aafdd08a0886cd2a2719899ceec0 100644 (file)
@@ -1,3 +1,27 @@
+2005-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * macterm.h (TYPE_FILE_NAME): New define.
+       (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
+
+       * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Add
+       prototypes.  Make static.
+       (mac_aedesc_to_lisp): Initialize err to noErr.
+       (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
+       (init_coercion_handler): New functions.
+       (Fmac_coerce_ae_data): Use coercion of Apple event data for
+       translation from/to file names.
+
+       * macterm.c: Don't include sys/param.h.
+       (init_coercion_handler): Add extern.
+       [MAC_OS8] (main): Call init_coercion_handler.
+       (mac_initialize) [MAC_OSX]: Likewise.
+       [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
+       Apple event data for translation from/to file names.
+
+       * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
+
+       * image.c [MAC_OS] (find_image_fsspec): Likewise.
+
 2005-12-23  Martin Rudalics  <rudalics@gmx.at>  (tiny change)
 
        * insdel.c (insert, insert_and_inherit, insert_before_markers)
index fb9651312cddddcf4e668b2e4fc62fa69845ae28..458fe63e5dfb7dcf6e5bf6106216637a94ace537 100644 (file)
@@ -569,14 +569,14 @@ extern Lisp_Object mac_make_lispy_event_code P_ ((int));
 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0
 
+#define TYPE_FILE_NAME 'fNam'
+
 /* Defined in macselect.c */
 
 extern void x_clear_frame_selections P_ ((struct frame *));
 
 /* Defined in mac.c.  */
 
-extern OSErr posix_pathname_to_fsspec P_ ((const char *, FSSpec *));
-extern OSErr fsspec_to_posix_pathname P_ ((const FSSpec *, char *, int));
 extern void mac_clear_font_name_table P_ ((void));
 extern Lisp_Object mac_aedesc_to_lisp P_ ((AEDesc *));
 #if TARGET_API_MAC_CARBON